X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=defaults.sh;h=7d8ab66af545d94afc6bed6361d7c59001df73c1;hb=c4be5618a6eb1b7b9e19016f02e71871050e3b8c;hp=7c44b7ef4dd979837f32457cc35ee4460ec8f835;hpb=a44200e81ab5bd12d2c43da52f9711688adab96c;p=ganeti-extstorage-zfs diff --git a/defaults.sh b/defaults.sh index 7c44b7e..7d8ab66 100644 --- a/defaults.sh +++ b/defaults.sh @@ -1,6 +1,18 @@ +# debugging options +#set -x +#set >&2 -# pool and path where to create block devices -test -z "$EXTP_BLOCK" && EXTP_BLOCK=tmp500g/block +# zfs pool and file system (existing) where to create block devices +test -z "$EXTP_ZFS" && EXTP_ZFS=tmp500g/block -# parameters for zfs create -test -z "$EXTP_VOL_PARAM" && EXTP_VOL_PARAM="-s -b 4k -o compression=lz4" +# parameters for zfs create, by default +# -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_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'