gnt-instance move works only to zfs
[ganeti-extstorage-zfs] / defaults.sh
index 7c44b7e..7d8ab66 100644 (file)
@@ -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'