use configured veid all over
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 6 Jun 2009 16:57:37 +0000 (16:57 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 6 Jun 2009 16:57:37 +0000 (16:57 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@109 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/zfs/zfs-snapshot-to-ve.sh

index 0d839d3..715ded2 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh -x
 
-veid=60017
+veid=60018
 
-fs=`zfs list | grep @ | iselect -t 'select snapshot to clone' -a | sed 's/ .*$//'`
+fs=`zfs list | grep @ | iselect -t "select snapshot to clone into $veid" -a | sed 's/ .*$//'`
 
 if [ -z "$fs" ] ; then
        exit;
@@ -23,6 +23,6 @@ vzctl stop $veid && (
 
 zfs clone $fs $pool/clone/$orig-$veid
 
-vzctl start 60017
+vzctl start $veid
 
 vzlist -a