Really allocate all the needed space.
Change-Id: Ia1da8c6c9f0965d54fbcbfef1fbfc0e04c0d53ad
This commit is contained in:
parent
86e48b31d3
commit
9408d5365d
|
@ -83,7 +83,7 @@ function _drbd_make_vg {
|
|||
|
||||
# if the file exists, don't destroy it...
|
||||
if [[ ! -f "${FILES}/${vg_name}" ]]; then
|
||||
sudo truncate -s "${vg_size}" "${FILES}/${vg_name}"
|
||||
sudo dd if=/dev/zero bs=1G count="${vg_size}" of="${FILES}/${vg_name}"
|
||||
fi
|
||||
|
||||
# if the loop device is present, don't recreate it...
|
||||
|
|
Loading…
Reference in New Issue