From: Alan J. Pippin Date: Sat, 8 Mar 2008 16:26:08 +0000 (-0700) Subject: Added code to poweron the destpool and import it. X-Git-Url: http://git.pippins.net/embedvideo/.git/static/%22%22.%24thumbnail.%22/%7Bdone_action%7D?a=commitdiff_plain;h=59139f41987ad571014f898e7750269aeaedf9c6;p=zfs-nexenta%2F.git Added code to poweron the destpool and import it. Added code to export the destpool and power it down. --- diff --git a/zfs-replicate-wrapper b/zfs-replicate-wrapper index 4d7ff14..cd81593 100755 --- a/zfs-replicate-wrapper +++ b/zfs-replicate-wrapper @@ -41,18 +41,29 @@ done date=`date`; echo "$date ZFS admin lock obtained" >> $logfile +# Poweron the destpool and import it +/usr/local/bin/br -x /dev/ttyd0 A3 ON +sleep 10 +zpool import $destpool + # List the filesystems to replicate # The parent filesystems MUST be listed ahead # of the children filesystems. # Pool root filesystems must end with a slash. $replicate tank/ $destpool +$replicate tank/var $destpool $replicate tank/usr $destpool $replicate tank/usr/home $destpool $replicate tank/usr/videos $destpool $replicate tank/usr/local $destpool $replicate tank/usr/local/etc $destpool +$replicate tank/usr/local/var $destpool $replicate tank/backup $destpool +# Export the destpool and power it down +zpool export $destpool +/usr/local/bin/br -x /dev/ttyd0 A3 OFF + # Release our lock released_lock_date=1 echo `date` ZFS admin lock released >> $logfile