Really allocate all the needed space.

Change-Id: Ia1da8c6c9f0965d54fbcbfef1fbfc0e04c0d53ad
This commit is contained in:
Philipp Marek 2017-01-18 14:28:38 +01:00
parent 86e48b31d3
commit 9408d5365d
1 changed files with 1 additions and 1 deletions

View File

@ -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...