# uname -v snv_125 # zoneadm -z oracle-1 halt # zoneadm -z oracle-1 detach # zfs snapshot -r rpool/var/zones/oracl...@move # zfs send -R rpool/var/zones/oracl...@move >/var/tmp/oracle-1.snapshot
# uname -v snv_127 # zfs receive -d rpool </var/tmp/oracle-1.snapshot # zonecfg -z oracle-1 zonecfg:oracle-1> create -a /var/opt/zones/oracle-1 zonecfg:oracle-1> export create -b set zonepath=/var/opt/zones/oracle-1 set brand=ipkg set autoboot=false set bootargs=-m verbose set ip-type=exclusive add fs set dir=/export/home set special=rpool/var/zones/oracle-1/home set type=zfs end add net set physical=vnic2 end add attr set name=comment set type=string set value="oracle-1 (local zone)" end # zfs list -r rpool/var/zones/oracle-1 NAME USED AVAIL REFER MOUNTPOINT rpool/var/zones/oracle-1 18.6G 80.9G 23K /var/opt/zones/oracle-1 rpool/var/zones/oracle-1/ROOT 11.7G 80.9G 19K legacy rpool/var/zones/oracle-1/ROOT/zbe 11.7G 80.9G 11.7G /var/opt/zones/oracle-1/root rpool/var/zones/oracle-1/home 6.96G 80.9G 6.96G legacy # mount |grep /var/opt/zones /var/opt/zones on rpool/var/zones read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=2d9000b on Sun Nov 29 13:21:05 2009 /var/opt/zones/oracle-1 on rpool/var/zones/oracle-1 read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=2d90038 on Sun Nov 29 21:53:10 2009 # zoneadm -z oracle-1 attach Log File: /var/tmp/oracle-1.attach_log.wOa4am ERROR: no active dataset. # zfs mount rpool/var/zones/oracle-1/ROOT/zbe # mount |grep /var/opt/zones /var/opt/zones on rpool/var/zones read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=2d9000b on Sun Nov 29 13:21:05 2009 /var/opt/zones/oracle-1 on rpool/var/zones/oracle-1 read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=2d90038 on Sun Nov 29 21:53:10 2009 /var/opt/zones/oracle-1/root on rpool/var/zones/oracle-1/ROOT/zbe read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=2d9003f on Sun Nov 29 21:58:16 2009 # zoneadm -z oracle-1 attach Log File: /var/tmp/oracle-1.attach_log.SWaqXY Attaching... Global zone version: ent...@0.5.11,5.11-0.127:20091111T131831Z Non-Global zone version: ent...@0.5.11,5.11-0.125:20091014T044127Z Evaluation: oracle-1 is downrev of the global zone. ERROR: Zone is downrev of global zone. Specify -u to update it. Hoorah! attach -u succeeds! But why isn't the ZBE automatically mounted on the ZFS receive? Or why doesn't zoneadm(1M) find the it? John groenv...@acm.org _______________________________________________ zones-discuss mailing list zones-discuss@opensolaris.org