Commit 2fbfc5dd authored by Mike Hibler's avatar Mike Hibler

Add a variable to control what space is included in the xen_vg VG.

Setting LVM_FULLDISKONLY will effectively tell it to not use extra
space on the system disk when constructing the VG used for vnode disk
creation. This can affect performace for everybody, especially if it
uses multiple little partitions on the system disk. However, this is
turned off by default since, on our d710 nodes, most of the extra
space is on the system disk. Setting this should be plumbed through
to the user somehow so they can choose.
parent fdd6dd30
......@@ -222,6 +222,9 @@ my $RTTABLES = "/etc/iproute2/rt_tables";
# Temporary; later kernel version increases this.
my $MAXROUTETTABLE = 255;
# Whether or not to use only unpartitioned (unused) disks to form the Xen VG.
my $LVM_FULLDISKONLY = 0;
# LVM snapshots suck.
my $DOSNAP = 0;
......@@ -482,7 +485,7 @@ sub rootPreConfig($)
$blockdevs .= " /dev/$dev";
$totalSize += $devs{$dev}{"size"};
}
else {
elsif ($LVM_FULLDISKONLY == 0) {
foreach my $part (keys(%{$devs{$dev}})) {
$blockdevs .= " /dev/${dev}${part}";
$totalSize += $devs{$dev}{$part}{"size"};
......
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