everywhere(~)[1]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 08:34:25 2011 from 10.1.1.6 OpenIndiana (powered by illumos) SunOS 5.11 oi_151a September 2011 # zpool get all rpool NAME PROPERTY VALUE SOURCE rpool size 15.9G - rpool capacity 49% - rpool altroot - default rpool health ONLINE - rpool guid 12628010599729654200 default rpool version 28 default rpool bootfs rpool/ROOT/oi-current local rpool delegation on default rpool autoreplace off default rpool cachefile - default rpool failmode wait default rpool listsnapshots off default rpool autoexpand off default rpool dedupditto 0 default rpool dedupratio 1.00x - rpool free 7.99G - rpool allocated 7.89G - rpool readonly off - # beadm activate zfs-comment ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 09:56:53 2011 from 10.1.1.6 The Illumos Project SunOS 5.11 zfs-comment Nov. 10, 2011 SunOS Internal Development: danmcd 2011-Nov-09 [zfs-comment] # zpool get all rpool NAME PROPERTY VALUE SOURCE rpool size 15.9G - rpool capacity 49% - rpool altroot - default rpool health ONLINE - rpool guid 12628010599729654200 default rpool version 28 default rpool bootfs rpool/ROOT/zfs-comment local rpool delegation on default rpool autoreplace off default rpool cachefile - default rpool failmode wait default rpool listsnapshots off default rpool autoexpand off default rpool dedupditto 0 default rpool dedupratio 1.00x - rpool free 7.98G - rpool allocated 7.90G - rpool readonly off - rpool comment - default # mdb -k Loading modules: [ unix genunix specfs mac cpu.generic uppc pcplusmp scsi_vhci zfs sata sd ip hook neti sockfs arp usba stmf stmf_sbd lofs random idm sppp crypto ptm ] > ::spa ADDR STATE NAME ffffff014eb66000 ACTIVE rpool > ffffff014eb66000::print spa_t spa_comment spa_comment = 0 > # beadm activate oi-current ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 10:00:06 2011 from 10.1.1.6 OpenIndiana (powered by illumos) SunOS 5.11 oi_151a September 2011 # zpool get all rpool NAME PROPERTY VALUE SOURCE rpool size 15.9G - rpool capacity 49% - rpool altroot - default rpool health ONLINE - rpool guid 12628010599729654200 default rpool version 28 default rpool bootfs rpool/ROOT/oi-current local rpool delegation on default rpool autoreplace off default rpool cachefile - default rpool failmode wait default rpool listsnapshots off default rpool autoexpand off default rpool dedupditto 0 default rpool dedupratio 1.00x - rpool free 7.98G - rpool allocated 7.90G - rpool readonly off - # echo "This concludes Test 1" ; echo "Beginning Test 2"; beadm activate zfs-comment ; reboot This concludes Test 1 Beginning Test 2 Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Password: Last login: Thu Nov 10 10:01:51 2011 from 10.1.1.6 The Illumos Project SunOS 5.11 zfs-comment Nov. 10, 2011 SunOS Internal Development: danmcd 2011-Nov-09 [zfs-comment] # zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT rpool 15.9G 7.90G 7.98G 49% 1.00x ONLINE - # zpool get comment rpool NAME PROPERTY VALUE SOURCE rpool comment - default # zpool set comment="Hello Cleveland" rpool # zpool get comment rpool NAME PROPERTY VALUE SOURCE rpool comment Hello Cleveland local # mdb -k Loading modules: [ unix genunix specfs mac cpu.generic uppc pcplusmp scsi_vhci zfs sata sd ip hook neti sockfs arp usba stmf stmf_sbd lofs idm sppp crypto ptm ] > ::spa ADDR STATE NAME ffffff014eb66000 ACTIVE rpool > ffffff014eb66000::print spa_t spa_comment spa_comment = 0xffffff014fdb0378 "Hello Cleveland" > # reboot Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 12:55:43 2011 from 10.1.1.6 The Illumos Project SunOS 5.11 zfs-comment Nov. 10, 2011 SunOS Internal Development: danmcd 2011-Nov-09 [zfs-comment] # zpool get comment rpool NAME PROPERTY VALUE SOURCE rpool comment Hello Cleveland local # beadm activate oi-current ;reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 10:04:07 2011 from 10.1.1.6 OpenIndiana (powered by illumos) SunOS 5.11 oi_151a September 2011 # zpool get all rpool NAME PROPERTY VALUE SOURCE rpool size 15.9G - rpool capacity 49% - rpool altroot - default rpool health ONLINE - rpool guid 12628010599729654200 default rpool version 28 default rpool bootfs rpool/ROOT/oi-current local rpool delegation on default rpool autoreplace off default rpool cachefile - default rpool failmode wait default rpool listsnapshots off default rpool autoexpand off default rpool dedupditto 0 default rpool dedupratio 1.00x - rpool free 7.97G - rpool allocated 7.90G - rpool readonly off - # beadm activate zfs-comment ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 13:02:03 2011 from 10.1.1.6 The Illumos Project SunOS 5.11 zfs-comment Nov. 10, 2011 SunOS Internal Development: danmcd 2011-Nov-09 [zfs-comment] # zpool get comment rpool NAME PROPERTY VALUE SOURCE rpool comment - default # echo "This concludes Test 2." This concludes Test 2. # beadm activate oi-current ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 13:07:52 2011 from 10.1.1.6 OpenIndiana (powered by illumos) SunOS 5.11 oi_151a September 2011 # echo "Beginning Test 3." Beginning Test 3. # zpool create -f datapool c1t2d0s2 # beadm activate zfs-comment ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% zpool status pool: rpool state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 c2t0d0s0 ONLINE 0 0 0 errors: No known data errors everywhere(~)[0]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 13:10:32 2011 from 10.1.1.6 The Illumos Project SunOS 5.11 zfs-comment Nov. 10, 2011 SunOS Internal Development: danmcd 2011-Nov-09 [zfs-comment] # zpool get comment datapool cannot open 'datapool': no such pool # zpool import pool: datapool id: 284752828038975218 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: datapool ONLINE c1t2d0s2 ONLINE # zpool import datapool # zpool get comment datapool NAME PROPERTY VALUE SOURCE datapool comment - default # echo "This concludes Test 3." This concludes Test 3. # echo "Beginning Test 4." Beginning Test 4. # zpool set comment="The numbers all go to 11" datapool # zpool get comment datapool NAME PROPERTY VALUE SOURCE datapool comment The numbers all go to 11 local # mdb -k Loading modules: [ unix genunix specfs mac cpu.generic uppc pcplusmp scsi_vhci zfs sata sd ip hook neti sockfs arp usba stmf stmf_sbd fctl lofs idm sppp ptm cpc fcip nfs ufs logindmux ] > ::spa ADDR STATE NAME ffffff016974b000 ACTIVE datapool ffffff014eb66000 ACTIVE rpool > ffffff016974b000::print spa_t spa_comment spa_comment = 0xffffff01664c4188 "The numbers all go to 11" > # reboot Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 13:22:16 2011 from 10.1.1.6 The Illumos Project SunOS 5.11 zfs-comment Nov. 10, 2011 SunOS Internal Development: danmcd 2011-Nov-09 [zfs-comment] # zpool get comment datapool NAME PROPERTY VALUE SOURCE datapool comment The numbers all go to 11 local # beadm activate oi-current ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 13:14:25 2011 from 10.1.1.6 OpenIndiana (powered by illumos) SunOS 5.11 oi_151a September 2011 # zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT datapool 50.5G 92.5K 50.5G 0% 1.00x ONLINE - rpool 15.9G 7.91G 7.97G 49% 1.00x ONLINE - # zpool get all datapool NAME PROPERTY VALUE SOURCE datapool size 50.5G - datapool capacity 0% - datapool altroot - default datapool health ONLINE - datapool guid 284752828038975218 default datapool version 28 default datapool bootfs - default datapool delegation on default datapool autoreplace off default datapool cachefile - default datapool failmode wait default datapool listsnapshots off default datapool autoexpand off default datapool dedupditto 0 default datapool dedupratio 1.00x - datapool free 50.5G - datapool allocated 92.5K - datapool readonly off - # beadm activate zfs-comment ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 13:44:51 2011 from 10.1.1.6 The Illumos Project SunOS 5.11 zfs-comment Nov. 10, 2011 SunOS Internal Development: danmcd 2011-Nov-09 [zfs-comment] # zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT datapool 50.5G 92.5K 50.5G 0% 1.00x ONLINE - rpool 15.9G 7.92G 7.96G 49% 1.00x ONLINE - # zpool get comment datapool NAME PROPERTY VALUE SOURCE datapool comment The numbers all go to 11 local # echo "Wow, it preserves unless the old kernel actually writes something new" Wow, it preserves unless the old kernel actually writes something new # zpool export datapool # echo "Beginning Test 5. (NOTE: Test 4 isn't done yet.)" Beginning Test 5. (NOTE: Test 4 isn't done yet.) # zpool import pool: datapool id: 284752828038975218 state: ONLINE action: The pool can be imported using its name or numeric identifier. comment: The numbers all go to 11 config: datapool ONLINE c1t2d0s2 ONLINE # zpool import datapool # zpool get comment datapool NAME PROPERTY VALUE SOURCE datapool comment The numbers all go to 11 local # zpool export datapool # echo "This concludes Test 5. We will now resume Test 4" This concludes Test 5. We will now resume Test 4 # beadm activate oi-current ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 13:49:53 2011 from 10.1.1.6 OpenIndiana (powered by illumos) SunOS 5.11 oi_151a September 2011 # zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT rpool 15.9G 7.91G 7.97G 49% 1.00x ONLINE - # zpool import datapool # zpool export datapool # beadm activate zfs-comment ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 \Password: Last login: Thu Nov 10 13:51:12 2011 from 10.1.1.6 The Illumos Project SunOS 5.11 zfs-comment Nov. 10, 2011 SunOS Internal Development: danmcd 2011-Nov-09 [zfs-comment] # zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT rpool 15.9G 7.91G 7.97G 49% 1.00x ONLINE - # zpool import pool: datapool id: 284752828038975218 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: datapool ONLINE c1t2d0s2 ONLINE # zpool import datapool zpo# zpool get comment datapool NAME PROPERTY VALUE SOURCE datapool comment - default # echo "This concludes Test 4." This concludes Test 4. # echo "Beginning Test 6." Beginning Test 6. # zpool set comment="Shark Sandwich" datapool # zpool export datapool # zpool import pool: datapool id: 284752828038975218 state: ONLINE action: The pool can be imported using its name or numeric identifier. comment: Shark Sandwich config: datapool ONLINE c1t2d0s2 ONLINE # beadm activate oi-current ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 13:59:23 2011 from 10.1.1.6 OpenIndiana (powered by illumos) SunOS 5.11 oi_151a September 2011 # zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT rpool 15.9G 7.91G 7.97G 49% 1.00x ONLINE - # zpool import b pool: datapool id: 284752828038975218 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: datapool ONLINE c1t2d0s2 ONLINE # beadm activate zfs-comment ; reboot Activated successfully Connection to 10.1.1.137 closed by remote host. Connection to 10.1.1.137 closed. everywhere(~)[255]% ssh troot@10.1.1.137 Password: Last login: Thu Nov 10 14:01:31 2011 from 10.1.1.6 The Illumos Project SunOS 5.11 zfs-comment Nov. 10, 2011 SunOS Internal Development: danmcd 2011-Nov-09 [zfs-comment] # zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT rpool 15.9G 7.91G 7.97G 49% 1.00x ONLINE - # zpool import pool: datapool id: 284752828038975218 state: ONLINE action: The pool can be imported using its name or numeric identifier. comment: Shark Sandwich config: datapool ONLINE c1t2d0s2 ONLINE # echo "This concludes Test 6." This concludes Test 6. # echo "Beginning Test 7." Beginning Test 7. # zpool import -o comment="Intravenus de Milo" datapool # zpool get comment datapool NAME PROPERTY VALUE SOURCE datapool comment Intravenus de Milo local # echo "This concludes Test 7." This concludes Test 7. # echo "Beginning Test 8." Beginning Test 8. # zpool destroy datapool # zpool create -o comment="Rock and Roll Creation" datapool missing vdev specification usage: create [-fn] [-o property=value] ... [-O file-system-property=value] ... [-m mountpoint] [-R root] ... # zpool create -f -o comment="Rock and Roll Creation" datapool c1t2d0s2 # zpool get comment datapool NAME PROPERTY VALUE SOURCE datapool comment Rock and Roll Creation local # echo "This concludes Test 8." This concludes Test 8. # echo "Beginning Test 9." Beginning Test 9. # zpool set comment="Why don't you make 10 louder? These go to 11." datapool cannot set property for 'datapool': comment must not exceed 32 characters # zpool set comment="These go \ ? to 11." datapool cannot set property for 'datapool': comment may only have printable characters # echo "Oops. I forgot to mark the end of Test 9 and the beginning of Test 10." Oops. I forgot to mark the end of Test 9 and the beginning of Test 10. # echo "This concludes Test 10." This concludes Test 10. # echo "Beginning Test 11" Beginning Test 11 # zpool get comment datapool NAME PROPERTY VALUE SOURCE datapool comment Rock and Roll Creation local # zpool export datapool # zpool import -o comment="Stonehenge \ ? trampled by a dwarf" datapool cannot import pool 'datapool': comment may only have printable characters # zpool import datapool ; zpool destroy datapool # echo "This concludes Test 11." This concludes Test 11. # echo "Beginning Test 12." Beginning Test 12. # zpool create -f -o comment="As clueless \ ? as Nigel" datapool c1t2d0s2 cannot create 'datapool': comment may only have printable characters # echo "This concludes Test 12." This concludes Test 12. #