gnt-instance recreate-disks doesn't touch existing volumes
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 24 Jun 2014 22:44:26 +0000 (00:44 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 24 Jun 2014 22:44:26 +0000 (00:44 +0200)
create

diff --git a/create b/create
index 0eb7ca5..bd6f35b 100755 (executable)
--- a/create
+++ b/create
@@ -2,4 +2,5 @@
 
 . /usr/share/ganeti/extstorage/zfs/defaults.sh
 
+test -e /dev/zvol/$EXTP_ZFS/$VOL_NAME || \
 zfs create -V ${VOL_SIZE}M $EXTP_CREATE $EXTP_ZFS/$VOL_NAME