05-vm-profile: added 20G base partition size

Physical disks larger than say 100 gibberishbytes tend to be
used with larger sets of software, data, backups etc; let's
bump the base partition size to 20Gb then as proposed by dubrsl@
within #29483.
This commit is contained in:
Michael Shigorin 2013-10-17 16:43:11 +04:00
parent e43aa1ab02
commit bc428675ec

View File

@ -23,13 +23,14 @@ else
methods='raid plain' methods='raid plain'
fi fi
# less than 10G, choose 1G partitions
if [ "$max_disk" -le 20971520 ]; then if [ "$max_disk" -le 20971520 ]; then
base=1048576 base=1048576 # less than 10G HDD, choose 1G partitions
elif [ "$max_disk" -le 52428800 ]; then elif [ "$max_disk" -le 52428800 ]; then
base=2097152 base=2097152 # 2G up to 25G HDD
elif [ "$max_disk" -le 209715200 ]; then
base=10485760 # 10G up to 100G HDD
else else
base=10485760 base=20971520 # 20G otherwise
fi fi
message "mem=$mem k" message "mem=$mem k"