ZFS - RAIDZ1 Recovery

esamorokov esamorokov at gmail.com
Thu May 26 22:26:30 UTC 2016


Hello All,

     My name is Evgeny and I have 3 x 3TB in RAIDZ1, where one drive is 
gone and I accidentally
     screwed the other two. The data should be fine, just need to revert
     uberblock in point of time, where i started doing changes.

     I AM KINDLY ASKING FOR HELP! The pool had all of the family 
memories for many years :( Thanks in advance!

     I am not a FreeBSD guru and have been using ZFS for a couple of 
years, but I know Linux and do some programming/scripting.
     Since I got that incident I started learning the depth of the ZFS, 
but I definitely need help on it at this point.
     Please don't ask me why I did not have backups, I was building 
backup server in my garage, when it happened

History:
     I was using WEB GUI of FreeNas and it reported a failed drive
     I shutdown the computer and replaced the drive, but I did not 
noticed that I accidentally disconnected power of another drive
     I powered on the server and expanded the pool where there only one 
drive of the pool was active
     Then I began to really learn ZFS and messing up with bits
     At some point I created a backup bit-to-bit images of the two 
drives from the pool (using R-Studio)


Specs:
     OS: FreeBSD 9.2-RELEASE (FREENAS.amd64) #0 r+2315ea3: Fri Dec 20 
12:48:50 PST 2013
     RAID:   [root at juicy] ~# camcontrol devlist
     <ST3000DM001-1CH166 CC29>          at scbus1 target 0 lun 0 
(pass1,ada1)
     <ST3000DM001-1CH166 CC29>          at scbus2 target 0 lun 0 
(ada2,pass2)
     <ST3000DM001-9YN166 CC4H>          at scbus3 target 0 lun 0 
(pass3,ada3)
     [root at juicy] ~# zdb
zh_vol:
     version: 5000
     name: 'zh_vol'
     state: 0
     txg: 14106447
     pool_guid: 2918670121059000644
     hostid: 1802987710
     hostname: ''
     vdev_children: 1
     vdev_tree:
         type: 'root'
         id: 0
         guid: 2918670121059000644
         create_txg: 4
         children[0]:
             type: 'raidz'
             id: 0
             guid: 14123440993587991088
             nparity: 1
             metaslab_array: 34
             metaslab_shift: 36
             ashift: 12
             asize: 8995321675776
             is_log: 0
             create_txg: 4
             children[0]:
                 type: 'disk'
                 id: 0
                 guid: 17624020450804741401
                 path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                 whole_disk: 1
                 DTL: 137
                 create_txg: 4
             children[1]:
                 type: 'disk'
                 id: 1
                 guid: 3253299067537287428
                 path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                 whole_disk: 1
                 DTL: 133
                 create_txg: 4
             children[2]:
                 type: 'disk'
                 id: 2
                 guid: 17999524418015963258
                 path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                 whole_disk: 1
                 DTL: 134
                 create_txg: 4
     features_for_read:
-------------- next part --------------

[root at juicy] ~# zdb
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 14106447
    pool_guid: 2918670121059000644
    hostid: 1802987710
    hostname: ''
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 2918670121059000644
        create_txg: 4
        children[0]:
            type: 'raidz'
            id: 0
            guid: 14123440993587991088
            nparity: 1
            metaslab_array: 34
            metaslab_shift: 36
            ashift: 12
            asize: 8995321675776
            is_log: 0
            create_txg: 4
            children[0]:
                type: 'disk'
                id: 0
                guid: 17624020450804741401
                path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                whole_disk: 1
                DTL: 137
                create_txg: 4
            children[1]:
                type: 'disk'
                id: 1
                guid: 3253299067537287428
                path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                whole_disk: 1
                DTL: 133
                create_txg: 4
            children[2]:
                type: 'disk'
                id: 2
                guid: 17999524418015963258
                path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                whole_disk: 1
                DTL: 134
                create_txg: 4
    features_for_read:
 #############//--END OF STDOUT--//#############


[root at juicy] ~# zpool detach zh_vol 17999524418015963258
#############//--START OF STDOUT--//#############
cannot open 'zh_vol': no such pool
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool list
#############//--START OF STDOUT--//#############
no pools available
#############//--END OF STDOUT--//#############


[root at juicy] ~# zfs mount
#############//--START OF STDOUT--//#############
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool status
#############//--START OF STDOUT--//#############
no pools available
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool list
#############//--START OF STDOUT--//#############
no pools available
#############//--END OF STDOUT--//#############

[root at juicy] ~# zfs mount 2918670121059000644
#############//--START OF STDOUT--//#############
cannot open '2918670121059000644': dataset does not exist
#############//--END OF STDOUT--//#############

[root at juicy] ~# zfs mount zh_vol
#############//--START OF STDOUT--//#############
cannot open 'zh_vol': dataset does not exist
#############//--END OF STDOUT--//#############

[root at juicy] ~# zfs list
#############//--START OF STDOUT--//#############
no datasets available
#############//--END OF STDOUT--//#############

[root at juicy] ~# man zdb
#############//--START OF STDOUT--//#############
man: Command not found.
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import
#############//--START OF STDOUT--//#############
   pool: zh_vol
     id: 2918670121059000644
  state: FAULTED
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
	devices and try again.
	The pool may be active on another system, but can be imported using
	the '-f' flag.
   see: http://illumos.org/msg/ZFS-8000-3C
 config:

	zh_vol                                          FAULTED  corrupted data
	  raidz1-0                                      DEGRADED
	    17624020450804741401                        UNAVAIL  cannot open
	    gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587  ONLINE
	    gptid/5dacd737-18ac-11e6-9c25-001b7859b93e  ONLINE
	    #############//--END OF STDOUT--//#############

[root at juicy] ~# zpool offline -t zh_vol /dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587 
#############//--START OF STDOUT--//#############
cannot open 'zh_vol': no such pool
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool offline -t 2918670121059000644 /dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587
#############//--START OF STDOUT--//#############
cannot open '2918670121059000644': name must begin with a letter
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 14106447
    pool_guid: 2918670121059000644
    hostid: 1802987710
    hostname: ''
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 2918670121059000644
        create_txg: 4
        children[0]:
            type: 'raidz'
            id: 0
            guid: 14123440993587991088
            nparity: 1
            metaslab_array: 34
            metaslab_shift: 36
            ashift: 12
            asize: 8995321675776
            is_log: 0
            create_txg: 4
            children[0]:
                type: 'disk'
                id: 0
                guid: 17624020450804741401
                path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                whole_disk: 1
                DTL: 137
                create_txg: 4
            children[1]:
                type: 'disk'
                id: 1
                guid: 3253299067537287428
                path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                whole_disk: 1
                DTL: 133
                create_txg: 4
            children[2]:
                type: 'disk'
                id: 2
                guid: 17999524418015963258
                path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                whole_disk: 1
                DTL: 134
                create_txg: 4
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -F zh_vol
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -F /boot
#############//--START OF STDOUT--//#############
boot.config  boot/        
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -F /boot/zfs
#############//--START OF STDOUT--//#############
zfs/       zfsboot    zfsloader* 
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -F /boot/zfs
#############//--START OF STDOUT--//#############
zfs/       zfsboot    zfsloader* 
#############//--END OF STDOUT--//#############

[root at juicy] ~# less /boot/zfs/zpool.cache 
#############//--START OF STDOUT--//#############
"/boot/zfs/zpool.cache" may be a binary file.  See it anyway? 
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 14106447
    pool_guid: 2918670121059000644
    hostid: 1802987710
    hostname: ''
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 2918670121059000644
        create_txg: 4
        children[0]:
            type: 'raidz'
            id: 0
            guid: 14123440993587991088
            nparity: 1
            metaslab_array: 34
            metaslab_shift: 36
            ashift: 12
            asize: 8995321675776
            is_log: 0
            create_txg: 4
            children[0]:
                type: 'disk'
                id: 0
                guid: 17624020450804741401
                path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                whole_disk: 1
                DTL: 137
                create_txg: 4
            children[1]:
                type: 'disk'
                id: 1
                guid: 3253299067537287428
                path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                whole_disk: 1
                DTL: 133
                create_txg: 4
            children[2]:
                type: 'disk'
                id: 2
                guid: 17999524418015963258
                path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                whole_disk: 1
                DTL: 134
                create_txg: 4
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~#                                                                                
#############//--START OF STDOUT--//#############
*** FINAL System shutdown message from root at juicy.zhelana.local ***          

System going down IMMEDIATELY                                                  

                                                                               
packet_write_wait: Connection to 172.20.4.5: Broken pipe
evgen at QWEBook:~$ ssh root at juicy
root at juicy's password: 
FreeBSD 9.2-RELEASE (FREENAS.amd64) #0 r+2315ea3: Fri Dec 20 12:48:50 PST 2013

	FreeNAS (c) 2009-2013, The FreeNAS Development Team
	All rights reserved.
	FreeNAS is released under the modified BSD license.

	For more information, documentation, help or support, go here:
 	http://freenas.org
Welcome to FreeNAS
            .
             |~
            /|\
           |-.-|
           '-:-'
            [|]
            [|]
            [|]
            [|]
            [|]
           .[|].
           :/|\:
           [/|\]
           [/|\]
         .:_#|#_:.
         |_ '-' _|
         /\:-.-:/\
        /\|_[|]_|/\
      _/\|~ [|] ~|/\_
      [''=-.[|].-='']
      :-._   |   _.-:
      //\;::-:-::;/\\
     /\.'-\\/|\//-'./\
   .'\/'   :\|/:   '\/'.
 .//\('    [\|/]    ')/\\.
'':][\.'  .[\|/].  './][:''
    ''    :/\|/\:    ''
         .[\/|\/].
           '.|.'
             '

#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool history
#############//--START OF STDOUT--//#############
no pools available
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 14106447
    pool_guid: 2918670121059000644
    hostid: 1802987710
    hostname: ''
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 2918670121059000644
        create_txg: 4
        children[0]:
            type: 'raidz'
            id: 0
            guid: 14123440993587991088
            nparity: 1
            metaslab_array: 34
            metaslab_shift: 36
            ashift: 12
            asize: 8995321675776
            is_log: 0
            create_txg: 4
            children[0]:
                type: 'disk'
                id: 0
                guid: 17624020450804741401
                path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                whole_disk: 1
                DTL: 137
                create_txg: 4
            children[1]:
                type: 'disk'
                id: 1
                guid: 3253299067537287428
                path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                whole_disk: 1
                DTL: 133
                create_txg: 4
            children[2]:
                type: 'disk'
                id: 2
                guid: 17999524418015963258
                path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                whole_disk: 1
                DTL: 134
                create_txg: 4
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~# mount -uw /
#############//--START OF STDOUT--//#############
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool history
#############//--START OF STDOUT--//#############
no pools available
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool history zh_vol
#############//--START OF STDOUT--//#############
cannot open 'zh_vol': no such pool
#############//--END OF STDOUT--//#############


[root at juicy] ~# zpool status zh_vol
#############//--START OF STDOUT--//#############
cannot open 'zh_vol': no such pool
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool status 
#############//--START OF STDOUT--//#############
no pools available
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 14106447
    pool_guid: 2918670121059000644
    hostid: 1802987710
    hostname: ''
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 2918670121059000644
        create_txg: 4
        children[0]:
            type: 'raidz'
            id: 0
            guid: 14123440993587991088
            nparity: 1
            metaslab_array: 34
            metaslab_shift: 36
            ashift: 12
            asize: 8995321675776
            is_log: 0
            create_txg: 4
            children[0]:
                type: 'disk'
                id: 0
                guid: 17624020450804741401
                path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                whole_disk: 1
                DTL: 137
                create_txg: 4
            children[1]:
                type: 'disk'
                id: 1
                guid: 3253299067537287428
                path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                whole_disk: 1
                DTL: 133
                create_txg: 4
            children[2]:
                type: 'disk'
                id: 2
                guid: 17999524418015963258
                path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                whole_disk: 1
                DTL: 134
                create_txg: 4
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -u zh_vol
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -u -d /dev/
#############//--START OF STDOUT--//#############
acpi%       ada0%       audit%      fido%       mdctl%      stdout@     ttyvc%
ad10@       ada0s1%     bpf%        geom.ctl%   mem%        sysmouse%   ttyvd%
ad10p1@     ada0s1a%    bpf0@       ggctl%      nfslock%    ttyu0%      ttyve%
ad4@        ada0s2%     bpsm0%      gpt/        ntfs/       ttyu0.init% ttyvf%
ad4s1@      ada0s3%     cam/        gptid/      null%       ttyu0.lock% ufs/
ad4s1a@     ada0s4%     console%    io%         pass0%      ttyv0%      ufssuspend%
ad4s2@      ada1%       consolectl% iscsi%      pass1%      ttyv1%      urandom@
ad4s3@      ada1p1%     crypto%     kbd0@       pass2%      ttyv2%      usbctl%
ad4s4@      ada1p1.eli% ctty%       kbd1@       pass3%      ttyv3%      xpt0%
ad6@        ada1p2%     cuau0%      kbdmux0%    pci%        ttyv4%      zero%
ad6p1.eli@  ada2%       cuau0.init% klog%       psm0%       ttyv5%      zfs%
ad6p1@      ada2p1%     cuau0.lock% kmem%       ptmx%       ttyv6%      
ad6p2@      ada2p1.eli% devctl%     led/        pts/        ttyv7%      
ad8@        ada2p2%     devstat%    log@        random%     ttyv8%      
ad8p1.eli@  ada3%       dtrace/     md0%        snp%        ttyv9%      
ad8p1@      ada3p1%     dumpdev@    md1%        stderr@     ttyva%      
ad8p2@      atkbd0%     fd/         md2%        stdin@      ttyvb%      
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -u -d /dev/ufs
#############//--START OF STDOUT--//#############
ufs/        ufssuspend% 
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -u -d /dev/ufs
#############//--START OF STDOUT--//#############
zdb: can't open '/dev/ufs': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -u -d /dev/ufs/FreeNASs
#############//--START OF STDOUT--//#############
FreeNASs1a% FreeNASs3%  FreeNASs4%  
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -u -d /dev/ufs/FreeNASs
#############//--START OF STDOUT--//#############
zdb: can't open '/dev/ufs/FreeNASs': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -u -d /dev/ufs/FreeNASs
#############//--START OF STDOUT--//#############
FreeNASs1a% FreeNASs3%  FreeNASs4%  
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb 
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 14106447
    pool_guid: 2918670121059000644
    hostid: 1802987710
    hostname: ''
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 2918670121059000644
        create_txg: 4
        children[0]:
            type: 'raidz'
            id: 0
            guid: 14123440993587991088
            nparity: 1
            metaslab_array: 34
            metaslab_shift: 36
            ashift: 12
            asize: 8995321675776
            is_log: 0
            create_txg: 4
            children[0]:
                type: 'disk'
                id: 0
                guid: 17624020450804741401
                path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                whole_disk: 1
                DTL: 137
                create_txg: 4
            children[1]:
                type: 'disk'
                id: 1
                guid: 3253299067537287428
                path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                whole_disk: 1
                DTL: 133
                create_txg: 4
            children[2]:
                type: 'disk'
                id: 2
                guid: 17999524418015963258
                path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                whole_disk: 1
                DTL: 134
                create_txg: 4
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~# zdb zh_vol
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb 'zh_vol'
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import
#############//--START OF STDOUT--//#############
   pool: zh_vol
     id: 2918670121059000644
  state: UNAVAIL
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
	devices and try again.
   see: http://illumos.org/msg/ZFS-8000-3C
 config:

	zh_vol                                          UNAVAIL  insufficient replicas
	  raidz1-0                                      UNAVAIL  insufficient replicas
	    17624020450804741401                        UNAVAIL  cannot open
	    3253299067537287428                         UNAVAIL  cannot open
	    gptid/5dacd737-18ac-11e6-9c25-001b7859b93e  ONLINE
	    #############//--END OF STDOUT--//#############

[root at juicy] ~# zpool -f import
#############//--START OF STDOUT--//#############
unrecognized command '-f'
usage: zpool command args ...

[root at juicy] ~# zpool import -f zh_vol
#############//--START OF STDOUT--//#############
cannot import 'zh_vol': no such pool or dataset
	Destroy and re-create the pool from
	a backup source.
	#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import
#############//--START OF STDOUT--//#############
   pool: zh_vol
     id: 2918670121059000644
  state: UNAVAIL
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
	devices and try again.
   see: http://illumos.org/msg/ZFS-8000-3C
 config:

	zh_vol                                          UNAVAIL  insufficient replicas
	  raidz1-0                                      UNAVAIL  insufficient replicas
	    17624020450804741401                        UNAVAIL  cannot open
	    3253299067537287428                         UNAVAIL  cannot open
	    gptid/5dacd737-18ac-11e6-9c25-001b7859b93e  ONLINE
	    #############//--END OF STDOUT--//#############

[root at juicy] ~# py
#############//--START OF STDOUT--//#############
pydoc                   python-shared           python-shared2.7-config
pydoc2                  python-shared-config    python2
pydoc2.7                python-shared2          python2-config
python                  python-shared2-config   python2.7
python-config           python-shared2.7        python2.7-config
#############//--END OF STDOUT--//#############


[root at juicy] ~# chmod +x zfs_revert.py
#############//--START OF STDOUT--//#############
#############//--END OF STDOUT--//#############

[root at juicy] ~# ll
#############//--START OF STDOUT--//#############
total 42
drwxr-xr-x   3 root  wheel    512 May 13 13:42 ./
drwxr-xr-x  20 root  wheel    512 Apr 14 08:24 ../
-rw-------   1 root  wheel    427 Sep 29  2015 .bash_history
-rw-r--r--   1 root  wheel   1128 Dec  7  2013 .bashrc
-rw-r--r--   1 root  wheel    919 Dec  7  2013 .cshrc
-rw-------   1 root  wheel  14382 Oct  8  2015 .history
-rw-r--r--   1 root  wheel     80 Dec 20  2013 .k5login
-rw-r--r--   1 root  wheel    229 Dec 20  2013 .login
-rw-r--r--   1 root  wheel    489 Dec  7  2013 .profile
-rw-r--r--   1 root  wheel   1128 Dec  7  2013 .shrc
drwx------   2 root  wheel    512 Mar 27  2014 .ssh/
-rwxr-xr-x   1 root  wheel   1677 Dec  7  2013 change_password*
-rwxr-xr-x   1 root  wheel   1630 Dec  7  2013 save_cfg*
-rwxr-xr-x   1 root  wheel    901 Dec  7  2013 save_rrds.sh*
-rwxr-xr-x   1 root  wheel   1591 Dec  7  2013 save_sshkeys*
-rwxr-xr-x   1 root  wheel   1607 Dec  7  2013 update*
-rwxr-xr-x   1 root  wheel   2821 Dec  7  2013 updatep1*
-rwxr-xr-x   1 root  wheel   3097 Dec  7  2013 updatep2*
-rwxr-xr-x   1 root  wheel   4297 May 13 13:42 zfs_revert.py*
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool history -il zh_vol
#############//--START OF STDOUT--//#############
cannot open 'zh_vol': no such pool
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool history -il 
#############//--START OF STDOUT--//#############
no pools available
#############//--END OF STDOUT--//#############

[root at juicy] ~# echo 0 > /sys/module/zfs/parameters/spa_load_verify_metadata
#############//--START OF STDOUT--//#############
/sys/module/zfs/parameters/spa_load_verify_metadata: No such file or directory.
#############//--END OF STDOUT--//#############

[root at juicy] ~# echo 0 > /sys/module/
#############//--START OF STDOUT--//#############
/sys/module/ not found

#############//--END OF STDOUT--//#############

[root at juicy] ~# echo 0 > /
#############//--START OF STDOUT--//#############
COPYRIGHT*   boot/        data/        etc/         libexec/     proc/        sbin/        usr/
bin/         cfg/         dev/         home@        media/       rescue/      sys@         var/
boot.config  conf/        entropy      lib/         mnt/         root/        tmp@         
#############//--END OF STDOUT--//#############

[root at juicy] ~# echo 0 > /
#############//--START OF STDOUT--//#############
COPYRIGHT*   boot/        data/        etc/         libexec/     proc/        sbin/        usr/
bin/         cfg/         dev/         home@        media/       rescue/      sys@         var/
boot.config  conf/        entropy      lib/         mnt/         root/        tmp@         
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -u V1 | grep txg
#############//--START OF STDOUT--//#############
zdb: can't open 'V1': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e v1 | grep txg
#############//--START OF STDOUT--//#############
zdb: can't open 'v1': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e zh_vol | grep txg
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': File exists
                create_txg: 4
                    create_txg: 4
                    create_txg: 4
                    create_txg: 4
                    #############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -u zh_vol | grep txg
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb --help
#############//--START OF STDOUT--//#############
......
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -u zh_vol 
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e zh_vol
#############//--START OF STDOUT--//#############

Configuration for import:
        vdev_children: 1
        version: 5000
        pool_guid: 2918670121059000644
        name: 'zh_vol'
        state: 0
        hostid: 1802987710
        hostname: 'juicy.zhelana.local'
        vdev_tree:
            type: 'root'
            id: 0
            guid: 2918670121059000644
            children[0]:
                type: 'raidz'
                id: 0
                guid: 14123440993587991088
                nparity: 1
                metaslab_array: 34
                metaslab_shift: 36
                ashift: 12
                asize: 8995321675776
                is_log: 0
                create_txg: 4
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 17624020450804741401
                    path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                    whole_disk: 1
                    DTL: 137
                    create_txg: 4
                children[1]:
                    type: 'disk'
                    id: 1
                    guid: 3253299067537287428
                    path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                    whole_disk: 1
                    DTL: 133
                    create_txg: 4
                children[2]:
                    type: 'disk'
                    id: 2
                    guid: 17999524418015963258
                    whole_disk: 1
                    DTL: 134
                    create_txg: 4
                    path: '/dev/gptid/5dacd737-18ac-11e6-9c25-001b7859b93e'
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e -b zh_vol
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e -bbb zh_vol
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e -bbbbbb zh_vol
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e -ddddd zh_vol
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -c zh_vol
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e zh_vol -c
#############//--START OF STDOUT--//#############

Configuration for import:
        vdev_children: 1
        version: 5000
        pool_guid: 2918670121059000644
        name: 'zh_vol'
        state: 0
        hostid: 1802987710
        hostname: 'juicy.zhelana.local'
        vdev_tree:
            type: 'root'
            id: 0
            guid: 2918670121059000644
            children[0]:
                type: 'raidz'
                id: 0
                guid: 14123440993587991088
                nparity: 1
                metaslab_array: 34
                metaslab_shift: 36
                ashift: 12
                asize: 8995321675776
                is_log: 0
                create_txg: 4
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 17624020450804741401
                    path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                    whole_disk: 1
                    DTL: 137
                    create_txg: 4
                children[1]:
                    type: 'disk'
                    id: 1
                    guid: 3253299067537287428
                    path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                    whole_disk: 1
                    DTL: 133
                    create_txg: 4
                children[2]:
                    type: 'disk'
                    id: 2
                    guid: 17999524418015963258
                    whole_disk: 1
                    DTL: 134
                    create_txg: 4
                    path: '/dev/gptid/5dacd737-18ac-11e6-9c25-001b7859b93e'
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /etc/zfs/
#############//--START OF STDOUT--//#############
cases/   exports  
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /etc/zfs/
#############//--START OF STDOUT--//#############
./       ../      cases/   exports
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /etc/zfs/cases/
#############//--START OF STDOUT--//#############
./  ../
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /etc/zfs/exports 
#############//--START OF STDOUT--//#############
/etc/zfs/exports
#############//--END OF STDOUT--//#############

[root at juicy] ~# les /etc/zfs/exports
#############//--START OF STDOUT--//#############

CORRECT>less /etc/zfs/exports (y|n|e|a)? yes
#############//--END OF STDOUT--//#############

[root at juicy] ~# mc
#############//--START OF STDOUT--//#############

CORRECT>mcd (y|n|e|a)? no
mc: Command not found.
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /var/
#############//--START OF STDOUT--//#############
./        account/  audit/    cache/    db/       games/    mail/     named/    preserve/ spool/
../       agentx/   authpf/   crash/    empty/    heimdal/  md_size   netatalk/ run/      tmp/
.snap/    at/       backups/  cron/     etc/      log/      msgs/     pbi/      rwho/     yp/
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /var/db/
#############//--START OF STDOUT--//#############
./                     freebsd-update/        ntpd.drift             samba/
../                    ipf/                   nut/                   statd.status
collectd/              locate.database        pbi/                   zoneinfo
dbus/                  mountdtab              pkg/
entropy/               nfs-stablerestart      ports/
fontconfig/            nfs-stablerestart.bak  portsnap/
#############//--END OF STDOUT--//#############



[root at juicy] ~# zdb -h -e zh_vol
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# pf
#############//--START OF STDOUT--//#############
pfbtops pfctl   pflogd  pftp    
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -F zh_vol
#############//--START OF STDOUT--//#############
cannot import 'zh_vol': no such pool or dataset
	Destroy and re-create the pool from
	a backup source.
	#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -F zh_vol
#############//--START OF STDOUT--//#############
cannot import 'zh_vol': no such pool or dataset
	Destroy and re-create the pool from
	a backup source.
	#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -h -e zh_vol
#############//--START OF STDOUT--//#############
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e zh_vol
#############//--START OF STDOUT--//#############

Configuration for import:
        vdev_children: 1
        version: 5000
        pool_guid: 2918670121059000644
        name: 'zh_vol'
        state: 0
        hostid: 1802987710
        hostname: ''
        vdev_tree:
            type: 'root'
            id: 0
            guid: 2918670121059000644
            children[0]:
                type: 'raidz'
                id: 0
                guid: 14123440993587991088
                nparity: 1
                metaslab_array: 34
                metaslab_shift: 36
                ashift: 12
                asize: 8995321675776
                is_log: 0
                create_txg: 4
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 17624020450804741401
                    path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                    whole_disk: 1
                    DTL: 137
                    create_txg: 4
                children[1]:
                    type: 'disk'
                    id: 1
                    guid: 3253299067537287428
                    whole_disk: 1
                    DTL: 133
                    create_txg: 4
                    path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                children[2]:
                    type: 'disk'
                    id: 2
                    guid: 17999524418015963258
                    path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                    whole_disk: 1
                    DTL: 134
                    create_txg: 4
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# camcontrol devlist
#############//--START OF STDOUT--//#############
<Patriot Pyro SE 332ABBF0>         at scbus0 target 0 lun 0 (ada0,pass0)
<ST3000DM001-1CH166 CC29>          at scbus1 target 0 lun 0 (pass1,ada1)
<ST3000DM001-1CH166 CC29>          at scbus2 target 0 lun 0 (ada2,pass2)
<ST3000DM001-9YN166 CC4H>          at scbus3 target 0 lun 0 (pass3,ada3)
#############//--END OF STDOUT--//#############

[root at juicy] ~# camcontrol devlist
#############//--START OF STDOUT--//#############
<Patriot Pyro SE 332ABBF0>         at scbus0 target 0 lun 0 (ada0,pass0)
<ST3000DM001-1CH166 CC29>          at scbus1 target 0 lun 0 (pass1,ada1)
<ST3000DM001-1CH166 CC29>          at scbus2 target 0 lun 0 (ada2,pass2)
<ST3000DM001-9YN166 CC4H>          at scbus3 target 0 lun 0 (pass3,ada3)
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool list
#############//--START OF STDOUT--//#############
no pools available
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -F zh_vol
#############//--START OF STDOUT--//#############
cannot import 'zh_vol': no such pool or dataset
	Destroy and re-create the pool from
	a backup source.
	#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e zh_vol
#############//--START OF STDOUT--//#############

Configuration for import:
        vdev_children: 1
        version: 5000
        pool_guid: 2918670121059000644
        name: 'zh_vol'
        state: 0
        hostid: 1802987710
        hostname: ''
        vdev_tree:
            type: 'root'
            id: 0
            guid: 2918670121059000644
            children[0]:
                type: 'raidz'
                id: 0
                guid: 14123440993587991088
                nparity: 1
                metaslab_array: 34
                metaslab_shift: 36
                ashift: 12
                asize: 8995321675776
                is_log: 0
                create_txg: 4
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 17624020450804741401
                    path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                    whole_disk: 1
                    DTL: 137
                    create_txg: 4
                children[1]:
                    type: 'disk'
                    id: 1
                    guid: 3253299067537287428
                    whole_disk: 1
                    DTL: 133
                    create_txg: 4
                    path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                children[2]:
                    type: 'disk'
                    id: 2
                    guid: 17999524418015963258
                    path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                    whole_disk: 1
                    DTL: 134
                    create_txg: 4
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# reboot
#############//--START OF STDOUT--//#############
packet_write_wait: Connection to 172.20.4.5: Broken pipe
evgen at QWEBook:~$ ssh root at juicy
root at juicy's password: 
FreeBSD 9.2-RELEASE (FREENAS.amd64) #0 r+2315ea3: Fri Dec 20 12:48:50 PST 2013

	FreeNAS (c) 2009-2013, The FreeNAS Development Team
	All rights reserved.
	FreeNAS is released under the modified BSD license.

	For more information, documentation, help or support, go here:
 	http://freenas.org
Welcome to FreeNAS
            .
             |~
            /|\
           |-.-|
           '-:-'
            [|]
            [|]
            [|]
            [|]
            [|]
           .[|].
           :/|\:
           [/|\]
           [/|\]
         .:_#|#_:.
         |_ '-' _|
         /\:-.-:/\
        /\|_[|]_|/\
      _/\|~ [|] ~|/\_
      [''=-.[|].-='']
      :-._   |   _.-:
      //\;::-:-::;/\\
     /\.'-\\/|\//-'./\
   .'\/'   :\|/:   '\/'.
 .//\('    [\|/]    ')/\\.
'':][\.'  .[\|/].  './][:''
    ''    :/\|/\:    ''
         .[\/|\/].
           '.|.'
             '

#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -F zh_vol
#############//--START OF STDOUT--//#############
cannot import 'zh_vol': I/O error
	Destroy and re-create the pool from
	a backup source.
	#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool list
#############//--START OF STDOUT--//#############
no pools available
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e zh_vol
#############//--START OF STDOUT--//#############

Configuration for import:
        vdev_children: 1
        version: 5000
        pool_guid: 2918670121059000644
        name: 'zh_vol'
        state: 0
        hostid: 1802987710
        hostname: 'juicy.zhelana.local'
        vdev_tree:
            type: 'root'
            id: 0
            guid: 2918670121059000644
            children[0]:
                type: 'raidz'
                id: 0
                guid: 14123440993587991088
                nparity: 1
                metaslab_array: 34
                metaslab_shift: 36
                ashift: 12
                asize: 8995321675776
                is_log: 0
                create_txg: 4
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 17624020450804741401
                    path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                    whole_disk: 1
                    DTL: 137
                    create_txg: 4
                children[1]:
                    type: 'disk'
                    id: 1
                    guid: 3253299067537287428
                    whole_disk: 1
                    DTL: 133
                    create_txg: 4
                    path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                children[2]:
                    type: 'disk'
                    id: 2
                    guid: 17999524418015963258
                    whole_disk: 1
                    DTL: 134
                    create_txg: 4
                    path: '/dev/gptid/5dacd737-18ac-11e6-9c25-001b7859b93e'
zdb: can't open 'zh_vol': File exists
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /boot/zfs/zpool.cache 
#############//--START OF STDOUT--//#############
/boot/zfs/zpool.cache@
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -C -U /boot/zfs/zpool.cache
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 14106447
    pool_guid: 2918670121059000644
    hostid: 1802987710
    hostname: ''
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 2918670121059000644
        create_txg: 4
        children[0]:
            type: 'raidz'
            id: 0
            guid: 14123440993587991088
            nparity: 1
            metaslab_array: 34
            metaslab_shift: 36
            ashift: 12
            asize: 8995321675776
            is_log: 0
            create_txg: 4
            children[0]:
                type: 'disk'
                id: 0
                guid: 17624020450804741401
                path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                whole_disk: 1
                DTL: 137
                create_txg: 4
            children[1]:
                type: 'disk'
                id: 1
                guid: 3253299067537287428
                path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                whole_disk: 1
                DTL: 133
                create_txg: 4
            children[2]:
                type: 'disk'
                id: 2
                guid: 17999524418015963258
                path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                whole_disk: 1
                DTL: 134
                create_txg: 4
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -D
#############//--START OF STDOUT--//#############
no pools available to import
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol ada0 ada1
#############//--START OF STDOUT--//#############
cannot create 'zh_vol': no such pool or dataset
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create
#############//--START OF STDOUT--//#############
missing pool name argument
usage:
	create [-fnd] [-o property=value] ... 
	    [-O file-system-property=value] ... 
	    [-m mountpoint] [-R root] <pool> <vdev> ...
	    #############//--END OF STDOUT--//#############

[root at juicy] ~# gpart list -l
#############//--START OF STDOUT--//#############
gpart: illegal option -- l
usage: gpart add -t type [-a alignment] [-b start] [-s size] [-i index] [-l label] [-f flags] geom
       gpart backup geom
       gpart bootcode [-b bootcode] [-p partcode -i index] [-f flags] geom
       gpart commit geom
       gpart create -s scheme [-n entries] [-f flags] provider
       gpart delete -i index [-f flags] geom
       gpart destroy [-F] [-f flags] geom
       gpart modify -i index [-l label] [-t type] [-f flags] geom
       gpart set -a attrib -i index [-f flags] geom
       gpart show [-l | -r] [-p] [geom ...]
       gpart undo geom
       gpart unset -a attrib -i index [-f flags] geom
       gpart resize -i index [-a alignment] [-s size] [-f flags] geom
       gpart restore [-lF] [-f flags] provider [...]
       gpart recover [-f flags] geom
       gpart help
       gpart list [-a] [name ...]
       gpart status [-ags] [name ...]
       gpart load [-v]
       gpart unload [-v]
       #############//--END OF STDOUT--//#############

[root at juicy] ~# gpart list -a
#############//--START OF STDOUT--//#############
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 117231407
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: ada0s1
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 32256
   Mode: r1w0e1
   attrib: active
   rawtype: 165
   length: 988291584
   offset: 32256
   type: freebsd
   index: 1
   end: 1930319
   start: 63
2. Name: ada0s2
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988356096
   Mode: r0w0e0
   rawtype: 165
   length: 988291584
   offset: 988356096
   type: freebsd
   index: 2
   end: 3860639
   start: 1930383
3. Name: ada0s3
   Mediasize: 1548288 (1.5M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1976647680
   Mode: r0w0e0
   rawtype: 165
   length: 1548288
   offset: 1976647680
   type: freebsd
   index: 3
   end: 3863663
   start: 3860640
4. Name: ada0s4
   Mediasize: 21159936 (20M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1978195968
   Mode: r1w1e2
   rawtype: 165
   length: 21159936
   offset: 1978195968
   type: freebsd
   index: 4
   end: 3904991
   start: 3863664
Consumers:
1. Name: ada0
   Mediasize: 60022480896 (55G)
   Sectorsize: 512
   Mode: r2w1e4

Geom name: ada0s1
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1930256
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: ada0s1a
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 40448
   Mode: r1w0e1
   rawtype: 0
   length: 988283392
   offset: 8192
   type: !0
   index: 1
   end: 1930256
   start: 16
Consumers:
1. Name: ada0s1
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 32256
   Mode: r1w0e1

Geom name: ada1
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 5860533134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada1p1
   Mediasize: 3221225472 (3.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   rawuuid: 5d985baa-18ac-11e6-9c25-001b7859b93e
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 3221225472
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 6291583
   start: 128
2. Name: ada1p2
   Mediasize: 2997371670528 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   rawuuid: 5dacd737-18ac-11e6-9c25-001b7859b93e
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2997371670528
   offset: 3221291008
   type: freebsd-zfs
   index: 2
   end: 5860533127
   start: 6291584
Consumers:
1. Name: ada1
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2

Geom name: ada2
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 5860533134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada2p1
   Mediasize: 3221225472 (3.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   rawuuid: 5e164720-18ac-11e6-9c25-001b7859b93e
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 3221225472
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 6291583
   start: 128
2. Name: ada2p2
   Mediasize: 2997371670528 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   rawuuid: 5e2ab04c-18ac-11e6-9c25-001b7859b93e
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2997371670528
   offset: 3221291008
   type: freebsd-zfs
   index: 2
   end: 5860533127
   start: 6291584
Consumers:
1. Name: ada2
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2

Geom name: ada3
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 5860533134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada3p1
   Mediasize: 3221225472 (3.0G)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e1
   rawuuid: 2b570bb9-8e40-11e3-aa1c-d43d7ed5b587
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 3221225472
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 6291583
   start: 128
2. Name: ada3p2
   Mediasize: 2997371670528 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r0w0e0
   rawuuid: 2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2997371670528
   offset: 3221291008
   type: freebsd-zfs
   index: 2
   end: 5860533127
   start: 6291584
Consumers:
1. Name: ada3
   Mediasize: 3000592982016 (2.7T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2

#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol ada03p1 ada3p2
#############//--START OF STDOUT--//#############
cannot open 'ada03p1': no such GEOM provider
must be a full path or shorthand device name
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol ada0p1 ada1p1 
#############//--START OF STDOUT--//#############
cannot open 'ada0p1': no such GEOM provider
must be a full path or shorthand device name
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol ada0p2
#############//--START OF STDOUT--//#############
cannot open 'ada0p2': no such GEOM provider
must be a full path or shorthand device name
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol /dev/
#############//--START OF STDOUT--//#############
acpi%       ad8@        ada2p1%     crypto%     iscsi%      pass0%      ttyu0.init% ttyvd%
ad10@       ad8p1.eli@  ada2p1.eli% ctty%       kbd0@       pass1%      ttyu0.lock% ttyve%
ad10p1.eli@ ad8p1@      ada2p2%     cuau0%      kbd1@       pass2%      ttyv0%      ttyvf%
ad10p1@     ad8p2@      ada3%       cuau0.init% kbdmux0%    pass3%      ttyv1%      ufs/
ad10p2@     ada0%       ada3p1%     cuau0.lock% klog%       pci%        ttyv2%      ufssuspend%
ad4@        ada0s1%     ada3p1.eli% devctl%     kmem%       psm0%       ttyv3%      urandom@
ad4s1@      ada0s1a%    ada3p2%     devstat%    led/        ptmx%       ttyv4%      usbctl%
ad4s1a@     ada0s2%     atkbd0%     dtrace/     log@        pts/        ttyv5%      xpt0%
ad4s2@      ada0s3%     audit%      dumpdev@    md0%        random%     ttyv6%      zero%
ad4s3@      ada0s4%     bpf%        fd/         md1%        snp%        ttyv7%      zfs%
ad4s4@      ada1%       bpf0@       fido%       md2%        stderr@     ttyv8%      
ad6@        ada1p1%     bpsm0%      geom.ctl%   mdctl%      stdin@      ttyv9%      
ad6p1.eli@  ada1p1.eli% cam/        ggctl%      mem%        stdout@     ttyva%      
ad6p1@      ada1p2%     console%    gptid/      nfslock%    sysmouse%   ttyvb%      
ad6p2@      ada2%       consolectl% io%         null%       ttyu0%      ttyvc%      
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol /dev/ada
#############//--START OF STDOUT--//#############
ada0%       ada0s2%     ada1%       ada1p2%     ada2p1.eli% ada3p1%     
ada0s1%     ada0s3%     ada1p1%     ada2%       ada2p2%     ada3p1.eli% 
ada0s1a%    ada0s4%     ada1p1.eli% ada2p1%     ada3%       ada3p2%     
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol /dev/ada0
#############//--START OF STDOUT--//#############
ada0%    ada0s1%  ada0s1a% ada0s2%  ada0s3%  ada0s4%  
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol /dev/ada0
#############//--START OF STDOUT--//#############
ada0%    ada0s1%  ada0s1a% ada0s2%  ada0s3%  ada0s4%  
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol /dev/ada0 /dev/ada1
#############//--START OF STDOUT--//#############
cannot create 'zh_vol': no such pool or dataset
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol /dev/ada0s /dev/ada1
#############//--START OF STDOUT--//#############
ada0s1%  ada0s1a% ada0s2%  ada0s3%  ada0s4%  
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol /dev/ada0s2 /dev/ada1s2
#############//--START OF STDOUT--//#############
cannot open '/dev/ada1s2': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol /dev/ada0s2 
#############//--START OF STDOUT--//#############
change_password* save_rrds.sh*    update*          updatep2*        
save_cfg*        save_sshkeys*    updatep1*        zfs_revert.py*   
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool create zh_vol /dev/ada0s2 
#############//--START OF STDOUT--//#############
cannot mount '/zh_vol': failed to create mountpoint
#############//--END OF STDOUT--//#############

[root at juicy] ~# gpart show -l
#############//--START OF STDOUT--//#############
=>       63  117231345  ada0  MBR  (55G)
         63    1930257     1  (null)  [active]  (942M)
    1930320         63        - free -  (31k)
    1930383    1930257     2  (null)  (942M)
    3860640       3024     3  (null)  (1.5M)
    3863664      41328     4  (null)  (20M)
    3904992  113326416        - free -  (54G)

=>      0  1930257  ada0s1  BSD  (942M)
        0       16          - free -  (8.0k)
       16  1930241       1  (null)  (942M)

=>        34  5860533101  ada1  GPT  (2.7T)
          34          94        - free -  (47k)
         128     6291456     1  (null)  (3.0G)
     6291584  5854241544     2  (null)  (2.7T)
  5860533128           7        - free -  (3.5k)

=>        34  5860533101  ada2  GPT  (2.7T)
          34          94        - free -  (47k)
         128     6291456     1  (null)  (3.0G)
     6291584  5854241544     2  (null)  (2.7T)
  5860533128           7        - free -  (3.5k)

=>        34  5860533101  ada3  GPT  (2.7T)
          34          94        - free -  (47k)
         128     6291456     1  (null)  (3.0G)
     6291584  5854241544     2  (null)  (2.7T)
  5860533128           7        - free -  (3.5k)

#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -l /dev/ada0s2
#############//--START OF STDOUT--//#############
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 51
    pool_guid: 10149654347507244742
    hostid: 1802987710
    hostname: 'juicy.zhelana.local'
    top_guid: 5892508334691495384
    guid: 5892508334691495384
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 5892508334691495384
        path: '/dev/ada0s2'
        whole_disk: 1
        metaslab_array: 33
        metaslab_shift: 23
        ashift: 12
        asize: 983564288
        is_log: 0
        create_txg: 4
    features_for_read:
--------------------------------------------
LABEL 1
--------------------------------------------
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 51
    pool_guid: 10149654347507244742
    hostid: 1802987710
    hostname: 'juicy.zhelana.local'
    top_guid: 5892508334691495384
    guid: 5892508334691495384
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 5892508334691495384
        path: '/dev/ada0s2'
        whole_disk: 1
        metaslab_array: 33
        metaslab_shift: 23
        ashift: 12
        asize: 983564288
        is_log: 0
        create_txg: 4
    features_for_read:
--------------------------------------------
LABEL 2
--------------------------------------------
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 51
    pool_guid: 10149654347507244742
    hostid: 1802987710
    hostname: 'juicy.zhelana.local'
    top_guid: 5892508334691495384
    guid: 5892508334691495384
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 5892508334691495384
        path: '/dev/ada0s2'
        whole_disk: 1
        metaslab_array: 33
        metaslab_shift: 23
        ashift: 12
        asize: 983564288
        is_log: 0
        create_txg: 4
    features_for_read:
--------------------------------------------
LABEL 3
--------------------------------------------
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 51
    pool_guid: 10149654347507244742
    hostid: 1802987710
    hostname: 'juicy.zhelana.local'
    top_guid: 5892508334691495384
    guid: 5892508334691495384
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 5892508334691495384
        path: '/dev/ada0s2'
        whole_disk: 1
        metaslab_array: 33
        metaslab_shift: 23
        ashift: 12
        asize: 983564288
        is_log: 0
        create_txg: 4
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import
#############//--START OF STDOUT--//#############
   pool: zh_vol
     id: 2918670121059000644
  state: FAULTED
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
	devices and try again.
	The pool may be active on another system, but can be imported using
	the '-f' flag.
   see: http://illumos.org/msg/ZFS-8000-3C
 config:

	zh_vol                                          FAULTED  corrupted data
	  raidz1-0                                      DEGRADED
	    17624020450804741401                        UNAVAIL  cannot open
	    gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587  ONLINE
	    gptid/5dacd737-18ac-11e6-9c25-001b7859b93e  ONLINE
	    #############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -f
#############//--START OF STDOUT--//#############
   pool: zh_vol
     id: 2918670121059000644
  state: FAULTED
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
	devices and try again.
	The pool may be active on another system, but can be imported using
	the '-f' flag.
   see: http://illumos.org/msg/ZFS-8000-3C
 config:

	zh_vol                                          FAULTED  corrupted data
	  raidz1-0                                      DEGRADED
	    17624020450804741401                        UNAVAIL  cannot open
	    gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587  ONLINE
	    gptid/5dacd737-18ac-11e6-9c25-001b7859b93e  ONLINE
	    #############//--END OF STDOUT--//#############

[root at juicy] ~# zdb
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 14106447
    pool_guid: 2918670121059000644
    hostid: 1802987710
    hostname: ''
    vdev_children: 1
    vdev_tree:
        type: 'root'
        id: 0
        guid: 2918670121059000644
        create_txg: 4
        children[0]:
            type: 'raidz'
            id: 0
            guid: 14123440993587991088
            nparity: 1
            metaslab_array: 34
            metaslab_shift: 36
            ashift: 12
            asize: 8995321675776
            is_log: 0
            create_txg: 4
            children[0]:
                type: 'disk'
                id: 0
                guid: 17624020450804741401
                path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                whole_disk: 1
                DTL: 137
                create_txg: 4
            children[1]:
                type: 'disk'
                id: 1
                guid: 3253299067537287428
                path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                whole_disk: 1
                DTL: 133
                create_txg: 4
            children[2]:
                type: 'disk'
                id: 2
                guid: 17999524418015963258
                path: '/dev/gptid/1e898758-9488-11e3-a86e-d43d7ed5b587'
                whole_disk: 1
                DTL: 134
                create_txg: 4
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -f -o readonly=on zh_vol mnt
#############//--START OF STDOUT--//#############
cannot import 'zh_vol' as 'mnt': I/O error
	Destroy and re-create the pool from
	a backup source.
	#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /mnt
#############//--START OF STDOUT--//#############
./       ../      .snap/   md_size
#############//--END OF STDOUT--//#############

[root at juicy] ~# mount -o rw /
#############//--START OF STDOUT--//#############
#############//--END OF STDOUT--//#############

[root at juicy] ~# mkdir /mnt/zh_vol
#############//--START OF STDOUT--//#############
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -N -f -o readonly=on zh_vol /mnt/zhvol
#############//--START OF STDOUT--//#############
cannot import '/mnt/zhvol': invalid character '/' in pool name
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -N -f -o readonly=on -R /mnt/zh_vol zh_vol
#############//--START OF STDOUT--//#############
cannot import 'zh_vol': a pool with that name already exists
use the form 'zpool import <pool | id> <newpool>' to give it a new name
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -f -o readonly=on -R /mnt/zh_vol zh_vol
#############//--START OF STDOUT--//#############
cannot import 'zh_vol': a pool with that name already exists
use the form 'zpool import <pool | id> <newpool>' to give it a new name
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -f -o readonly=on /mnt/zh_vol zh_vol
#############//--START OF STDOUT--//#############
cannot import '/mnt/zh_vol': no such pool available
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -f -o readonly=on zh_vol
#############//--START OF STDOUT--//#############
cannot import 'zh_vol': a pool with that name already exists
use the form 'zpool import <pool | id> <newpool>' to give it a new name
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -f -o readonly=on zh_vol newpool
#############//--START OF STDOUT--//#############
cannot import 'zh_vol' as 'newpool': I/O error
	Destroy and re-create the pool from
	a backup source.
	#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -eh zh_vol
#############//--START OF STDOUT--//#############
zh_vol
        vdev_children: 1
        version: 5000
        pool_guid: 2918670121059000644
        name: 'zh_vol'
        state: 0
        hostid: 1802987710
        hostname: 'juicy.zhelana.local'
        vdev_tree:
            type: 'root'
            id: 0
            guid: 2918670121059000644
            children[0]:
                type: 'raidz'
                id: 0
                guid: 14123440993587991088
                nparity: 1
                metaslab_array: 34
                metaslab_shift: 36
                ashift: 12
                asize: 8995321675776
                is_log: 0
                create_txg: 4
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 17624020450804741401
                    path: '/dev/gptid/6e5cea27-7f52-11e3-9cd8-d43d7ed5b587'
                    whole_disk: 1
                    DTL: 137
                    create_txg: 4
                children[1]:
                    type: 'disk'
                    id: 1
                    guid: 3253299067537287428
                    whole_disk: 1
                    DTL: 133
                    create_txg: 4
                    path: '/dev/gptid/2b70d9c0-8e40-11e3-aa1c-d43d7ed5b587'
                children[2]:
                    type: 'disk'
                    id: 2
                    guid: 17999524418015963258
                    whole_disk: 1
                    DTL: 134
                    create_txg: 4
                    path: '/dev/gptid/5dacd737-18ac-11e6-9c25-001b7859b93e'
zh_vol
        vdev_children: 1
        version: 5000
        pool_guid: 10149654347507244742
        name: 'zh_vol'
        state: 0
        hostid: 1802987710
        hostname: 'juicy.zhelana.local'
        vdev_tree:
            type: 'root'
            id: 0
            guid: 10149654347507244742
            children[0]:
                type: 'disk'
                id: 0
                guid: 5892508334691495384
                whole_disk: 1
                metaslab_array: 33
                metaslab_shift: 23
                ashift: 12
                asize: 983564288
                is_log: 0
                create_txg: 4
                path: '/dev/ada0s2'
zdb: 	Matched 2 pools - use pool GUID instead of pool name or 
	pool name part of a dataset name to select pool
	#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool status
#############//--START OF STDOUT--//#############
  pool: zh_vol
 state: ONLINE
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	zh_vol      ONLINE       0     0     0
	  ada0s2    ONLINE       0     0     0

errors: No known data errors
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool add zh_vol /dev/ada1s2
#############//--START OF STDOUT--//#############
cannot open '/dev/ada1s2': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool add zh_vol /dev/ada2s2
#############//--START OF STDOUT--//#############
cannot open '/dev/ada2s2': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool add zh_vol ada1s2
#############//--START OF STDOUT--//#############
cannot open 'ada1s2': no such GEOM provider
must be a full path or shorthand device name
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool add zh_vol /dev/ada2s2
#############//--START OF STDOUT--//#############
cannot open '/dev/ada2s2': No such file or directory
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool add zh_vol /dev/ada2
#############//--START OF STDOUT--//#############
ada2%       ada2p1%     ada2p1.eli% ada2p2%     
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool add zh_vol /dev/ada2p2
#############//--START OF STDOUT--//#############
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool status
#############//--START OF STDOUT--//#############
  pool: zh_vol
 state: ONLINE
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	zh_vol      ONLINE       0     0     0
	  ada0s2    ONLINE       0     0     0
	  ada2p2    ONLINE       0     0     0

errors: No known data errors
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool add zh_vol /dev/ada1p2
#############//--START OF STDOUT--//#############
invalid vdev specification
use '-f' to override the following errors:
/dev/ada1p2 is part of potentially active pool 'zh_vol'
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool status
#############//--START OF STDOUT--//#############
  pool: zh_vol
 state: ONLINE
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	zh_vol      ONLINE       0     0     0
	  ada0s2    ONLINE       0     0     0
	  ada2p2    ONLINE       0     0     0

errors: No known data errors
#############//--END OF STDOUT--//#############



[root at juicy] ~# zpool history zh_vol
#############//--START OF STDOUT--//#############
History for 'zh_vol'
2016-05-13.16:59:44 zpool add zh_vol /dev/ada2p2

#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -f -o readonly=on zh_vol 
#############//--START OF STDOUT--//#############
cannot import 'zh_vol': a pool with that name already exists
use the form 'zpool import <pool | id> <newpool>' to give it a new name
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool import -f zh_vol
#############//--START OF STDOUT--//#############
cannot import 'zh_vol': a pool with that name already exists
use the form 'zpool import <pool | id> <newpool>' to give it a new name
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 1491
    pool_guid: 10149654347507244742
    hostid: 1802987710
    hostname: 'juicy.zhelana.local'
    vdev_children: 2
    vdev_tree:
        type: 'root'
        id: 0
        guid: 10149654347507244742
        create_txg: 4
        children[0]:
            type: 'disk'
            id: 0
            guid: 5892508334691495384
            path: '/dev/ada0s2'
            whole_disk: 1
            metaslab_array: 33
            metaslab_shift: 23
            ashift: 12
            asize: 983564288
            is_log: 0
            create_txg: 4
        children[1]:
            type: 'disk'
            id: 1
            guid: 296669430778697937
            path: '/dev/ada2p2'
            whole_disk: 1
            metaslab_array: 37
            metaslab_shift: 34
            ashift: 12
            asize: 2997366816768
            is_log: 0
            create_txg: 1489
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~# z
#############//--START OF STDOUT--//#############
zcat          zdump         zfs           zic           zmore         ztest         
zcmp          zegrep        zfs_revert.py zilstat       znew          zzz           
zdb           zfgrep        zgrep         zinject       zpool         
zdiff         zforce        zhack         zless         zstreamdump   
#############//--END OF STDOUT--//#############


[root at juicy] ~# zfs get mountpoint pool/filesystem
#############//--START OF STDOUT--//#############
cannot open 'pool/filesystem': dataset does not exist
#############//--END OF STDOUT--//#############

[root at juicy] ~# zfs get mountpoint zh_vol
#############//--START OF STDOUT--//#############
NAME    PROPERTY    VALUE       SOURCE
zh_vol  mountpoint  /zh_vol     default
#############//--END OF STDOUT--//#############


[root at juicy] ~# ls /mnt/
#############//--START OF STDOUT--//#############
./       ../      .snap/   md_size  zh_vol/
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /mnt/zh_vol/
#############//--START OF STDOUT--//#############
./  ../
#############//--END OF STDOUT--//#############

[root at juicy] ~# df -h
#############//--START OF STDOUT--//#############
Filesystem             Size    Used   Avail Capacity  Mounted on
/dev/ufs/FreeNASs1a    926M    596M    255M    70%    /
devfs                  1.0k    1.0k      0B   100%    /dev
/dev/md0               4.6M    3.7M    485k    89%    /etc
/dev/md1               823k    2.0k    756k     0%    /mnt
/dev/md2               2.3G     24M    2.1G     1%    /var
/dev/ufs/FreeNASs4      19M      2M     16M    11%    /data
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /dev/ufs/FreeNASs4
#############//--START OF STDOUT--//#############
/dev/ufs/FreeNASs4
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls -a /dev/ufs/FreeNASs4
#############//--START OF STDOUT--//#############
/dev/ufs/FreeNASs4
#############//--END OF STDOUT--//#############

[root at juicy] ~# less /dev/ufs/FreeNASs4
#############//--START OF STDOUT--//#############
/dev/ufs/FreeNASs4 is not a regular file (use -f to see it)
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /data
#############//--START OF STDOUT--//#############
./               .snap/           factory-v1.db    rrd_dir.tar.bz2  zfs/
../              crash/           freenas-v1.db    ssh/
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /data/zfs/
#############//--START OF STDOUT--//#############
./                 ../                zpool.cache        zpool.cache.saved
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls -l /data/zfs/
#############//--START OF STDOUT--//#############
total 5
drwxr-xr-x  2 root  wheel   512 May 13 15:00 ./
drwxr-xr-x  6 root  wheel   512 May 13 17:00 ../
-rw-r--r--  1 root  wheel  1940 Apr 14 23:09 zpool.cache
-rw-r--r--  1 root  wheel  1940 May 13 15:00 zpool.cache.saved
#############//--END OF STDOUT--//#############

[root at juicy] ~# cp /data/zfs/zpool.cache /data/zfs/zpool.cache.ES001
#############//--START OF STDOUT--//#############
#############//--END OF STDOUT--//#############

[root at juicy] ~# cp /data/zfs/zpool.cache.saved  /data/zfs/zpool.cache.saved.ES001
#############//--START OF STDOUT--//#############
#############//--END OF STDOUT--//#############

[root at juicy] ~# zfs mount
#############//--START OF STDOUT--//#############
#############//--END OF STDOUT--//#############

[root at juicy] ~# mount
#############//--START OF STDOUT--//#############
/dev/ufs/FreeNASs1a on / (ufs, local, soft-updates)
devfs on /dev (devfs, local, multilabel)
/dev/md0 on /etc (ufs, local)
/dev/md1 on /mnt (ufs, local)
/dev/md2 on /var (ufs, local)
/dev/ufs/FreeNASs4 on /data (ufs, local, noatime, soft-updates)
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 1491
    pool_guid: 10149654347507244742
    hostid: 1802987710
    hostname: 'juicy.zhelana.local'
    vdev_children: 2
    vdev_tree:
        type: 'root'
        id: 0
        guid: 10149654347507244742
        create_txg: 4
        children[0]:
            type: 'disk'
            id: 0
            guid: 5892508334691495384
            path: '/dev/ada0s2'
            whole_disk: 1
            metaslab_array: 33
            metaslab_shift: 23
            ashift: 12
            asize: 983564288
            is_log: 0
            create_txg: 4
        children[1]:
            type: 'disk'
            id: 1
            guid: 296669430778697937
            path: '/dev/ada2p2'
            whole_disk: 1
            metaslab_array: 37
            metaslab_shift: 34
            ashift: 12
            asize: 2997366816768
            is_log: 0
            create_txg: 1489
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~# zdb -e zh_vol | grep txg
#############//--START OF STDOUT--//#############
zdb: 	Matched 2 pools - use pool GUID instead of pool name or 
	pool name part of a dataset name to select pool
                create_txg: 4
                    create_txg: 4
                    create_txg: 4
                    create_txg: 4
                create_txg: 4
                create_txg: 1489
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool remove zh_vol /dev/ada1p2
#############//--START OF STDOUT--//#############
cannot remove /dev/ada1p2: no such device in pool
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool remove zh_vol /dev/ada1p
#############//--START OF STDOUT--//#############
ada1p1%     ada1p1.eli% ada1p2%     
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool remove zh_vol /dev/ada1p
#############//--START OF STDOUT--//#############
ada1p1%     ada1p1.eli% ada1p2%     
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool remove zh_vol /dev/ada1p2
#############//--START OF STDOUT--//#############
cannot remove /dev/ada1p2: no such device in pool
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool remove zh_vol /dev/ada0p2
#############//--START OF STDOUT--//#############
cannot remove /dev/ada0p2: no such device in pool
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool remove zh_vol /dev/ada2p2
#############//--START OF STDOUT--//#############
cannot remove /dev/ada2p2: only inactive hot spares, cache, top-level, or log devices can be removed
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool remove zh_vol /dev/ada1p2
#############//--START OF STDOUT--//#############
cannot remove /dev/ada1p2: no such device in pool
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool remove zh_vol /dev/ada0p2
#############//--START OF STDOUT--//#############
cannot remove /dev/ada0p2: no such device in pool
#############//--END OF STDOUT--//#############

[root at juicy] ~# zpool status
#############//--START OF STDOUT--//#############
  pool: zh_vol
 state: ONLINE
  scan: none requested
config:

	NAME        STATE     READ WRITE CKSUM
	zh_vol      ONLINE       0     0     0
	  ada0s2    ONLINE       0     0     0
	  ada2p2    ONLINE       0     0     0

errors: No known data errors
#############//--END OF STDOUT--//#############


[root at juicy] ~# zpool detach zh_vol /dev/ada2p2

#############//--START OF STDOUT--//#############
cannot detach /dev/ada2p2: only applicable to mirror and replacing vdevs
#############//--END OF STDOUT--//#############


[root at juicy] ~# zfs get all

#############//--START OF STDOUT--//#############
NAME    PROPERTY              VALUE                  SOURCE
zh_vol  type                  filesystem             -
zh_vol  creation              Fri May 13 15:34 2016  -
zh_vol  used                  540K                   -
zh_vol  available             2.68T                  -
zh_vol  referenced            144K                   -
zh_vol  compressratio         1.00x                  -
zh_vol  mounted               no                     -
zh_vol  quota                 none                   default
zh_vol  reservation           none                   default
zh_vol  recordsize            128K                   default
zh_vol  mountpoint            /zh_vol                default
zh_vol  sharenfs              off                    default
zh_vol  checksum              on                     default
zh_vol  compression           off                    default
zh_vol  atime                 on                     default
zh_vol  devices               on                     default
zh_vol  exec                  on                     default
zh_vol  setuid                on                     default
zh_vol  readonly              off                    default
zh_vol  jailed                off                    default
zh_vol  snapdir               hidden                 default
zh_vol  aclmode               discard                default
zh_vol  aclinherit            restricted             default
zh_vol  canmount              on                     default
zh_vol  xattr                 on                     default
zh_vol  copies                1                      default
zh_vol  version               5                      -
zh_vol  utf8only              off                    -
zh_vol  normalization         none                   -
zh_vol  casesensitivity       sensitive              -
zh_vol  vscan                 off                    default
zh_vol  nbmand                off                    default
zh_vol  sharesmb              off                    default
zh_vol  refquota              none                   default
zh_vol  refreservation        none                   default
zh_vol  primarycache          all                    default
zh_vol  secondarycache        all                    default
zh_vol  usedbysnapshots       0                      -
zh_vol  usedbydataset         144K                   -
zh_vol  usedbychildren        396K                   -
zh_vol  usedbyrefreservation  0                      -
zh_vol  logbias               latency                default
zh_vol  dedup                 off                    default
zh_vol  mlslabel                                     -
zh_vol  sync                  standard               default
zh_vol  refcompressratio      1.00x                  -
zh_vol  written               144K                   -
zh_vol  logicalused           104K                   -
zh_vol  logicalreferenced     43.5K                  -
#############//--END OF STDOUT--//#############


[root at juicy] ~# zfs set mountpoint=/mnt/zh_vol zh_vol
#############//--START OF STDOUT--//#############
#############//--END OF STDOUT--//#############

[root at juicy] ~# ls /mnt/zh_vol/
#############//--START OF STDOUT--//#############
./  ../
#############//--END OF STDOUT--//#############

[root at juicy] ~# zdb
#############//--START OF STDOUT--//#############
zh_vol:
    version: 5000
    name: 'zh_vol'
    state: 0
    txg: 1491
    pool_guid: 10149654347507244742
    hostid: 1802987710
    hostname: 'juicy.zhelana.local'
    vdev_children: 2
    vdev_tree:
        type: 'root'
        id: 0
        guid: 10149654347507244742
        create_txg: 4
        children[0]:
            type: 'disk'
            id: 0
            guid: 5892508334691495384
            path: '/dev/ada0s2'
            whole_disk: 1
            metaslab_array: 33
            metaslab_shift: 23
            ashift: 12
            asize: 983564288
            is_log: 0
            create_txg: 4
        children[1]:
            type: 'disk'
            id: 1
            guid: 296669430778697937
            path: '/dev/ada2p2'
            whole_disk: 1
            metaslab_array: 37
            metaslab_shift: 34
            ashift: 12
            asize: 2997366816768
            is_log: 0
            create_txg: 1489
    features_for_read:
    #############//--END OF STDOUT--//#############

[root at juicy] ~# munt
#############//--START OF STDOUT--//#############

CORRECT>mount (y|n|e|a)? yes
/dev/ufs/FreeNASs1a on / (ufs, local, soft-updates)
devfs on /dev (devfs, local, multilabel)
/dev/md0 on /etc (ufs, local)
/dev/md1 on /mnt (ufs, local)
/dev/md2 on /var (ufs, local)
/dev/ufs/FreeNASs4 on /data (ufs, local, noatime, soft-updates)
#############//--END OF STDOUT--//#############


[root at juicy] ~# reboot

#############//--START OF STDOUT--//#############

352  12:50   zpool history
353  12:51   zdb
354  12:51   zpool create
355  12:55   mount -uw /
356  12:55   zpool history
357  12:55   zpool history zh_vol
358  12:59   zmore
359  13:01   zpool status zh_vol
360  13:01   zpool status
361  13:01   zdb
362  13:01   zdb -d
363  13:01   zdb -u
364  13:02   zdb -u zh_vol
365  13:02   zdb -u -d /dev/ufs
366  13:02   zdb -u -d /dev/ufs/FreeNASs
367  13:04   zdb
368  13:04   zdb zh_vol
369  13:05   zdb 'zh_vol'
370  13:05   zdb -b
371  13:06   zpool
372  13:08   zpool import
373  13:37   zpool -f import
374  13:37   zpool import -f zh_vol
375  13:38   zpool import
376  13:41   vi zfs_revert.py
377  13:42   chmod +x zfs_revert.py
378  13:42   ll
379  13:46   zpool history -il zh_vol
380  13:46   zpool history -il
381  14:02   echo 0 > /sys/module/zfs/parameters/spa_load_verify_metadata
382  14:02   zdb -u V1 | grep txg
383  14:04   zdb -e v1 | grep txg
384  14:04   zdb -e zh_vol | grep txg
385  14:04   zdb -u zh_vol | grep txg
386  14:06   zdb --help
387  14:09   zdb -u zh_vol
388  14:09   zdb -e zh_vol
389  14:23   zdb -e -b zh_vol
390  14:24   zdb -e -bbb zh_vol
391  14:24   zdb -e -bbbbbb zh_vol
392  14:25   zdb -e -ddddd zh_vol
393  14:27   zdb -c zh_vol
394  14:27   zdb -e zh_vol -c
395  14:27   ls /etc/zfs/
396  14:27   ls /etc/zfs/cases/
397  14:27   ls /etc/zfs/exports
398  14:28   less /etc/zfs/exports
399  14:28   mc
400  14:28   ls /var/
401  14:28   ls /var/db/
402  14:30   zdb -h
403  14:30   zdb -h -e zh_vol
404  14:32   zpool import -F zh_vol
405  14:38   zpool import -F zh_vol
406  14:38   zdb -h
407  14:39   zdb -h -e zh_vol
408  14:39   zdb -e zh_vol
409  14:40   camcontrol devlist
410  14:54   camcontrol devlist
411  14:55   zpool list
412  14:55   zpool import -F zh_vol
413  14:56   zdb -e zh_vol
414  14:56   reboot
415  15:04   zpool import -F zh_vol
416  15:07   zpool list
417  15:07   zdb -e zh_vol
418  15:11   ls /boot/zfs/zpool.cache
419  15:15   zdb -C -U /boot/zfs/zpool.cache
420  15:15   zpool import -D
421  15:16   zpool create zh_vol ada0 ada1
422  15:16   zpool create
423  15:17   gpart list -l
424  15:17   gpart list -a
425  15:18   zpool create zh_vol ada03p1 ada3p2
426  15:21   zpool create zh_vol ada0p1 ada1p1
427  15:33   zpool create zh_vol ada0p2
428  15:33   zpool create zh_vol /dev/ada0 /dev/ada1
429  15:34   zpool create zh_vol /dev/ada0s2 /dev/ada1s2
430  15:34   zpool create zh_vol /dev/ada0s2
431  15:34   gpart show -l
432  15:35   zdb -l /dev/ada0p2
433  15:35   zdb -l /dev/ada0s2
434  15:40   zpool import
435  15:41   zpool import -f
436  15:42   zdb
437  15:52   zpool import -f -o readonly=on zh_vol mnt
438  15:53   ls /mnt
439  15:54   mount -o rw /
440  15:54   mkdir /mnt/zh_vol
441  15:54   zpool import -N -f -o readonly=on zh_vol /mnt/zhvol
442  15:56   zpool import -N -f -o readonly=on -R /mnt/zh_vol zh_vol
443  15:56   zpool import -f -o readonly=on -R /mnt/zh_vol zh_vol
444  15:57   zpool import -f -o readonly=on /mnt/zh_vol zh_vol
445  15:58   zpool import -f -o readonly=on zh_vol
446  15:58   zpool import -f -o readonly=on zh_vol newpool
447  15:59   zdb -eh zh_vol
448  16:11   zpool
449  16:57   zpool status
450  16:58   zpool add zh_vol /dev/ada1s2
451  16:59   zpool add zh_vol /dev/ada2s2
452  16:59   zpool add zh_vol ada1s2
453  16:59   zpool add zh_vol /dev/ada2s2
454  16:59   zpool add zh_vol /dev/ada2p2
455  16:59   zpool status
456  16:59   zpool add zh_vol /dev/ada1p2
457  17:00   zpool status
458  17:01   zpool mount
459  17:01   zpool -h
460  17:01   zpool hostory
461  17:01   zpool hostory zh_vol
462  17:01   zpool history zh_vol
463  17:03   zpool import -f -o readonly=on zh_vol
464  17:03   zpool import -f zh_vol
465  17:03   zdb
466  17:04   zpool --help
467  17:05   zfs get mountpoint pool/filesystem
468  17:06   zfs get mountpoint zh_vol
469  17:06   ls /
470  17:06   ls /mnt/
471  17:06   ls /mnt/zh_vol/
472  17:06   df -h
473  17:06   ls /dev/ufs/FreeNASs4
474  17:06   ls -a /dev/ufs/FreeNASs4
475  17:07   less /dev/ufs/FreeNASs4
476  17:07   ls /data
477  17:07   ls /data/zfs/
478  17:07   ls -l /data/zfs/
479  17:08   cp /data/zfs/zpool.cache /data/zfs/zpool.cache.ES001
480  17:09   cp /data/zfs/zpool.cache.saved /data/zfs/zpool.cache.saved.ES001
481  17:09   zfs mount
482  17:09   mount
483  17:16   zdb
484  17:21   zdb -e zh_vol | grep txg
485  17:28   zpool remove zh_vol /dev/ada1p2
486  17:28   zpool remove zh_vol /dev/ada1p2
487  17:28   zpool remove zh_vol /dev/ada0p2
488  17:28   zpool remove zh_vol /dev/ada2p2
489  17:29   zpool remove zh_vol /dev/ada1p2
490  17:29   zpool remove zh_vol /dev/ada0p2
491  17:29   zpool status
492  17:29   zpool
493  17:30   zpool detach zh_vol /dev/ada2p2
494  17:31   zfs get all
495  17:32   zfs set mountpoint=/mnt/zh_vol
496  17:33   zfs set mountpoint=/mnt/zh_vol zh_vol
497  17:33   ls /mnt/zh_vol/
498  17:34   zdb
499  17:34   mount
500  17:34   reboot
501  17:51   zdb
502  17:51   mount
503  17:52   zpool destroy zh_vol
504  17:52   mount
505  17:52   zdb
506  17:52   zpool status
507  17:52   history | less


More information about the freebsd-fs mailing list