From: Anthony PERARD Date: Thu, 26 Oct 2023 16:42:09 +0000 (+0100) Subject: ts-nested-setup, setup l1 lvm volume groupe in guest X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=562871f51beee978f9a15111c9f12d371ffdcf83;p=osstest.git ts-nested-setup, setup l1 lvm volume groupe in guest LVM in l0 doesn't let us run pvcreate on the host LV, `pvcreate $outer_lvdev` fails with: Cannot use /dev/$l0-vg/l1_gueststorage_outer_lv: device is an LV Signed-off-by: Anthony PERARD Acked-by: Roger Pau Monné --- diff --git a/ts-nested-setup b/ts-nested-setup index be3d373..7fc8bee 100755 --- a/ts-nested-setup +++ b/ts-nested-setup @@ -80,14 +80,14 @@ sub guest_storage () { target_cmd_root($l0, "vgremove -f $inner_vg ||:"); my $outer_lvdev = lv_create($l0, $outer_vg, $outer_lv, $size); - target_cmd_root($l0, <block_attach($l1, "$outer_lvdev,raw,sdb,rw"); # NB this does not update the l1 guest config so if the l1 is shut # down and recreated in the l0, this will vanish. + + target_cmd_root($l1, <