Commit 4a49f89c authored by Leigh B Stoller's avatar Leigh B Stoller

Make sure to kpartx -d before lvremove.

parent 7f0b35a0
......@@ -710,6 +710,7 @@ sub vnodeCreate($$$$)
if (findLVMLogicalVolume($vnode_id)) {
my $olvname = findLVMOrigin($vnode_id);
if ($olvname ne $lvname) {
mysystem2("kpartx -dv $rootvndisk");
if (mysystem2("lvremove -f $VGNAME/$vnode_id")) {
TBScriptUnlock();
fatal("xen_vnodeCreate: ".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment