list clone filesystem so that destroy can find it,
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 16 May 2009 12:35:09 +0000 (12:35 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 16 May 2009 12:35:09 +0000 (12:35 +0000)
display available OpenVZ VEs on the end

git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@70 191e9f34-6774-4a6d-acfc-7664dacd4a2a

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

index c50a841..0d839d3 100755 (executable)
@@ -17,6 +17,7 @@ clone=$pool/clone/$orig-$veid
 
 vzctl stop $veid && (
        umount /$clone
+       zfs list | grep ^$clone
        zfs destroy $clone
 )
 
@@ -24,3 +25,4 @@ zfs clone $fs $pool/clone/$orig-$veid
 
 vzctl start 60017
 
+vzlist -a