X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=defaults.sh;h=a72495080ea2437d2d93ef2c231684c2ed34f21c;hb=01eb5eb5ad2552e89ec4cbdc23508c86a7f596a7;hp=28c317348c68d3ed6daa0779630fe56b5b843071;hpb=c2088f86938412377e0c5cc900982221381094a0;p=ganeti-extstorage-zfs diff --git a/defaults.sh b/defaults.sh index 28c3173..a724950 100644 --- a/defaults.sh +++ b/defaults.sh @@ -1,9 +1,15 @@ +# debugging options +#set -x +#set >&2 # zfs pool and file system (existing) where to create block devices -test -z "$EXTP_BLOCK" && EXTP_BLOCK=tmp500g/block +test -z "$EXTP_ZFS" && EXTP_ZFS=tmp500g/block # 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_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"