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

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")) {
fatal("xen_vnodeCreate: ".
Supports Markdown
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