creation of instace now saves ganeti:originstname
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 25 Jun 2014 14:51:26 +0000 (16:51 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 25 Jun 2014 14:51:26 +0000 (16:51 +0200)
sbin/lvchange
t/plain.sh

index 2760a0a..59b2c5f 100755 (executable)
@@ -17,6 +17,8 @@ if echo $* | grep -q $EXTP_VG ; then
        --addtag)
                VOL_NAME=`echo $3 | cut -d/ -f4`
                zfs set lv:tag=$2 $EXTP_ZFS/$VOL_NAME # FIXME duplicate?
+               export EXTP_ZFS
+               export VOL_NAME
                VOL_METADATA=$2 /usr/share/ganeti/extstorage/zfs/setinfo
        ;;
        esac
index 5f005fd..f66ff71 100755 (executable)
@@ -2,6 +2,6 @@ ssh `gnt-cluster getmaster` \
   gnt-instance add -t plain --disk=0:size=10G \
        -o debootstrap+default \
        --no-name-check --no-ip-check \
-       -B maxmem=1G -n arh-hw t-plain
+       -B maxmem=512M -n arh-hw t-plain