X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=defaults.sh;h=7d8ab66af545d94afc6bed6361d7c59001df73c1;hb=505edcb3f8391a5d0f4509a55508eb33aa742a53;hp=670d57f2261be887e511370fa20970ca1c1319ec;hpb=8b3e5cb7b7cd29e79c313609ca87968471468e33;p=ganeti-extstorage-zfs diff --git a/defaults.sh b/defaults.sh index 670d57f..7d8ab66 100644 --- a/defaults.sh +++ b/defaults.sh @@ -1,3 +1,6 @@ +# debugging options +#set -x +#set >&2 # zfs pool and file system (existing) where to create block devices test -z "$EXTP_ZFS" && EXTP_ZFS=tmp500g/block @@ -6,4 +9,10 @@ test -z "$EXTP_ZFS" && EXTP_ZFS=tmp500g/block # -s sparse # -b 4k block size sutable for ext4 filesystem which ganeti uses # lz4 compression with low cpu operhead which always helps -test -z "$EXTP_VOL_PARAM" && EXTP_VOL_PARAM="-s -b 4k -o compression=lz4" +test -z "$EXTP_CREATE" && EXTP_CREATE="-s -b 4k -o compression=lz4" + +# on zfs destroy remove snapshots of instance disks +test -z "$EXTP_DESTROY" && EXTP_DESTROY="-r" + +# emulate VG configured in cluster for wrapper scripts in sbin +test -z "$EXTP_VG" && EXTP_VG='ffzgvg'