当设备映射器目标挂起时,可以更改该表,从而导致新表进入 INACTIVE 状态。当目标恢复时,INACTIVE 表将更改为 LIVE:
# dmsetup info test | grep -E '^(State|Tables present): '
State: ACTIVE
Tables present: LIVE
# dmsetup suspend test
# dmsetup info test | grep -E '^(State|Tables present): '
State: SUSPENDED
Tables present: LIVE
# dmsetup reload --table "$newtable" test
# dmsetup info test | grep -E '^(State|Tables present): '
State: SUSPENDED
Tables present: LIVE & INACTIVE
# dmsetup resume test
# dmsetup info test | grep -E '^(State|Tables present): '
State: ACTIVE
Tables present: LIVE
有没有办法将INACTIVE表切换为LIVE没有取消暂停目标?