$ zpool import pool: system1 id: 4715259469716913940 state: DEGRADED status: One or more devices are unavailable. action: The pool can be imported despite missing or damaged devices. The fault tolerance of the pool may be compromised if imported. config: system1 DEGRADED mirror-0 DEGRADED c0t5000C500335E106Bd0 ONLINE c0t5000C500335FC3E7d0 UNAVAIL cannot open device details: c0t5000C500335FC3E7d0 UNAVAIL cannot open status: ZFS detected errors on this device. The device was missing.
$ zpool import pool: mothership id: 3702878663042245922 state: UNAVAIL status: One or more devices are unavailable. action: The pool cannot be imported due to unavailable devices or data. config: mothership UNAVAIL insufficient replicas raidz1-0 UNAVAIL insufficient replicas c8t0d0 UNAVAIL cannot open c8t1d0 UNAVAIL cannot open c8t2d0 ONLINE c8t3d0 ONLINE device details: c8t0d0 UNAVAIL cannot open status: ZFS detected errors on this device. The device was missing. c8t1d0 UNAVAIL cannot open status: ZFS detected errors on this device. The device was missing.
cannot import 'pool': pool may be in use on another system use '-f' to import anyway
$ zpool import dozer The devices below are missing, use '-m' to import the pool anyway: mirror-1 [log] c3t3d0 c3t4d0 cannot import 'dozer': one or more devices is currently unavailable $ zpool import -m dozer $ zpool status dozer pool: dozer state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: URL to My Oracle Support knowledge article scan: scrub repaired 0 in 0h0m with 0 errors on Fri Oct 15 16:51:39 2010 config: NAME STATE READ WRITE CKSUM dozer DEGRADED 0 0 0 mirror-0 ONLINE 0 0 0 c3t1d0 ONLINE 0 0 0 c3t2d0 ONLINE 0 0 0 logs mirror-1 UNAVAIL 0 0 0 insufficient replicas 13514061426445294202 UNAVAIL 0 0 0 was c3t3d0 16839344638582008929 UNAVAIL 0 0 0 was c3t4d0
$ zpool import -o readonly=on system1 $ zpool scrub system1 cannot scrub system1: pool is read-only
$ zpool export system1 $ zpool import system1 $ zpool scrub system1
$ zpool create mpool mirror /file/a /file/b $ zpool export mpool $ zpool import -d /file pool: mpool id: 7318163511366751416 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: mpool ONLINE mirror-0 ONLINE /file/a ONLINE /file/b ONLINE $ zpool import -d /file mpool
$ zpool import -d /dev/etc/c2t3d0 mpool $ zpool status mpool pool: mpool state: ONLINE scan: resilvered 952K in 0h0m with 0 errors on Fri Jun 29 16:22:06 2012 config: NAME STATE READ WRITE CKSUM mpool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 c2t3d0 ONLINE 0 0 0 c2t1d0 ONLINE 0 0 0
$ zpool import -D pool: system1 id: 5154272182900538157 state: ONLINE (DESTROYED) action: The pool can be imported using its name or numeric identifier. config: system1 ONLINE mirror-0 ONLINE c1t0d0 ONLINE c1t1d0 ONLINE
$ zpool import -D system1 $ zpool status system1 pool: system1 state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM system1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 c1t0d0 ONLINE 0 0 0 c1t1d0 ONLINE 0 0 0 errors: No known data errors
$ zpool import -D pool: dozer id: 4107023015970708695 state: DEGRADED (DESTROYED) status: One or more devices are unavailable. action: The pool can be imported despite missing or damaged devices. The fault tolerance of the pool may be compromised if imported. config: dozer DEGRADED raidz2-0 DEGRADED c8t0d0 ONLINE c8t1d0 ONLINE c8t2d0 ONLINE c8t3d0 UNAVAIL cannot open c8t4d0 ONLINE device details: c8t3d0 UNAVAIL cannot open status: ZFS detected errors on this device. The device was missing. $ zpool import -Df dozer $ zpool status -x pool: dozer state: DEGRADED status: One or more devices are unavailable in response to persistent errors. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Determine if the device needs to be replaced, and clear the errors using 'zpool clear' or 'fmadm repaired', or replace the device with 'zpool replace'. Run 'zpool status -v' to see device specific details. scan: none requested config: NAME STATE READ WRITE CKSUM dozer DEGRADED 0 0 0 raidz2-0 DEGRADED 0 0 0 c8t0d0 ONLINE 0 0 0 c8t1d0 ONLINE 0 0 0 c8t2d0 ONLINE 0 0 0 4881130428504041127 UNAVAIL 0 0 0 c8t4d0 ONLINE 0 0 0 errors: No known data errors $ zpool online dozer c8t3d0 $ zpool status -x all pools are healthy
$ zpool status pool: system1 state: ONLINE status: The pool is formatted using an older on-disk format. The pool can still be used, but some features are unavailable. action: Upgrade the pool using 'zpool upgrade'. Once this is done, the pool will no longer be accessible on older software versions. scrub: none requested config: NAME STATE READ WRITE CKSUM system1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 c1t0d0 ONLINE 0 0 0 c1t1d0 ONLINE 0 0 0 errors: No known data errors $ zpool upgrade -v This system is currently running ZFS pool version version-number. The following versions are supported: VER DESCRIPTION --- -------------------------------------------------------- 1 Initial ZFS version 2 Ditto blocks (replicated metadata) 3 Hot spares and double parity RAID-Z 4 zpool history 5 Compression using the gzip algorithm . . Additional features $ zpool upgrade -a
# zpool upgrade This system is currently running ZFS pool version 47. The following pools are out of date, and can be upgraded. After being upgraded, these pools will no longer be accessible by older software versions. VER POOL --- ------------ 44 rpool Use 'zpool upgrade -v' for a list of available versions and their associated features. # zpool upgrade rpool This system is currently running ZFS pool version 47. rpool is on version 44 and will not upgrade without making BEs un-bootable # zpool upgrade -n -V 47 rpool This system is currently running ZFS pool version 47. Upgrading to version 47 will make these BEs un-bootable FMRI Pool Version -------------- ------------ be://rpool/BE1 44 be://rpool/BE2 45 be://rpool/BE3 46 use "zpool upgrade -f -V 47 rpool" to force the upgrade. # zpool upgrade -V 45 rpool This system is currently running ZFS pool version 47. Upgrading to version 45 will make this BE un-bootable FMRI Pool Version -------------- ------------ be://rpool/BE1 44 use "zpool upgrade -f -V 45 rpool" to force the upgrade. # zpool upgrade -f -V 45 rpool This system is currently running ZFS pool version 47. Upgrading to version 45 will make this BE un-bootable FMRI Pool Version -------------- ------------ be://rpool/BE1 44 Pool 'rpool' upgraded from version 44 to version 45
# beadm activate BE1 Unable to activate BE BE1: BE BE1 supports version 44, pool version is 45 # beadm activate BE2 # beadm list -o name,pool_version,flags BE Name Pool Version Flags ---------------- ------------ ----- BE1 44 ! BE2 45 R BE3 46 - beadm 47 N solaris 47 - solaris-backup-1 47 - # zpool upgrade -V 46 rpool This system is currently running ZFS pool version 47. Upgrading to pool version 46 would make the active on boot BE 'BE2' un-bootable # zpool upgrade -V 46 -f rpool This system is currently running ZFS pool version 47. Upgrading to pool version 46 would make the active on boot BE 'BE2' un-bootable # zpool upgrade -V 46 rpool2 This system is currently running ZFS pool version 47. Upgrading to version 46 will make these BEs un-bootable FMRI Pool Version ---------------- ------------ TestBE 45 use "zpool upgrade -f -V 46 rpool2" to force the upgrade. # beadm destroy -F TestBE Warning: BE to be destroyed is the active on boot BE. Making current active BE, be://rpool/beadm, to be the active on boot BE. # zpool upgrade -V 46 rpool2 This system is currently running ZFS pool version 47. Pool 'rpool2' upgraded from version 45 to version 46 # zpool upgrade rpool2 This system is currently running ZFS pool version 47. rpool2 is on version 46 and will not upgrade without making more BEs un-bootable
2021/12/14