Actually fix LVM with 6.4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16144 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f8d8231255
commit
715e42d86c
@ -326,7 +326,13 @@ sub get_filepath_by_url { #at the end of the day, the libvirt storage api gives
|
||||
# 4) qemu-img was so much more transparent and easy to figure out than this
|
||||
# additionally, when mastering a powered down node, we should rebase the node to be a cow clone of the master it just spawned
|
||||
} else {
|
||||
my $vol = $poolobj->create_volume("<volume><name>".$desiredname."</name><target><format type='$format'/></target><capacity>".getUnits($create,"G",1)."</capacity><allocation>1</allocation></volume>");
|
||||
my $vol;
|
||||
if ($format eq 'raw') { #skip allocation specification for now
|
||||
#currently, LV can have reduced allocation, but *cannot* grow.....
|
||||
$vol = $poolobj->create_volume("<volume><name>".$desiredname."</name><target><format type='$format'/></target><capacity>".getUnits($create,"G",1)."</capacity></volume>");
|
||||
} else {
|
||||
$vol = $poolobj->create_volume("<volume><name>".$desiredname."</name><target><format type='$format'/></target><capacity>".getUnits($create,"G",1)."</capacity><allocation>0</allocation></volume>");
|
||||
}
|
||||
if ($vol) { return $vol->get_path(); }
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user