gnt-instance modify -t drbd works from plain (on zfs)
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 25 Jun 2014 03:10:21 +0000 (05:10 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 25 Jun 2014 03:10:21 +0000 (05:10 +0200)
README
sbin/lvrename [new file with mode: 0755]

diff --git a/README b/README
index 612f13c..b0ba03a 100644 (file)
--- a/README
+++ b/README
@@ -75,6 +75,13 @@ NAME                                                                      USED
 tmp500g/block@etckeeper                                                      0      -    30K  -
 tmp500g/block/af1a90e8-0566-4cbf-bc8c-99fc82b67ce3.ext.disk0@2014-06-24  2.64M      -   610M  -
 
+
+DRBD disk replication
+
+Ganti's extstorage provider doesn't support drbd target. But, lvm emulation scripts are sufficiant enough
+to create -t drdb instance or convert plain (created on zfs thanks to wrappers ;-) to drdb.
+
+
 KNOWN BUGS
 
 - in current ganeti, gnt-backup export doesn't work because extstorage
diff --git a/sbin/lvrename b/sbin/lvrename
new file mode 100755 (executable)
index 0000000..c51e734
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh -x
+
+. /usr/share/ganeti/extstorage/zfs/defaults.sh
+
+# lvrename ffzgvg cc9b16d9-7d14-452a-9150-74521bd8e721.disk0 d275c91f-70a7-4270-972c-b020fde9580b.disk0_data
+
+if [ "$EXTP_VG" = "$1" ] ; then
+       zfs rename $EXTP_ZFS/$2 $EXTP_ZFS/$3
+else
+       /sbin/lvm lvrename $*
+fi