Skip to content

Commit efabcc9

Browse files
committed
CA-413899: Rescan LVs whilst activating
There is a small window where, if a VM is leaf coalesced whilst it is shutdown, that a subsequent atempt to activate the VDI will fail with `SR_BACKEND_FAILURE_46 (The VDI is not available)`. This appears to be due to the GC process not issuing a `_updateSlavesOnRename` request because the VDI is not active. To avoid this ensure that the `--refresh` is performed when attempting to attach/activate. Signed-off-by: Mark Syms <mark.syms@cloud.com>
1 parent 26b147f commit efabcc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/sm/lvmcache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def activate(self, ns, ref, lvName, binary):
144144
count = RefCounter.get(ref, binary, ns)
145145
if count == 1:
146146
try:
147-
self.activateNoRefcount(lvName)
147+
self.activateNoRefcount(lvName, True)
148148
except util.CommandException:
149149
RefCounter.put(ref, binary, ns)
150150
raise

0 commit comments

Comments
 (0)