如果您具有先前的 Solaris 发行版(如 Solaris 10 10/09 发行版)的 ZFS 存储池,则可使用 zpool upgrade 命令升级池,以利用当前发行版中的池功能。此外,zpool status 命令已经修改,可在池运行较早的版本时发出通知。例如:
# zpool status pool: tank 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 tank 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 22. 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 6 bootfs pool property 7 Separate intent log devices 8 Delegated administration 9 refquota and refreservation properties 10 Cache devices 11 Improved scrub performance 12 Snapshot properties 13 snapused property 14 passthrough-x aclinherit 15 user/group space accounting 16 stmf property support 17 Triple-parity RAID-Z 18 Snapshot user holds 19 Log device removal 20 Compression using zle (zero-length encoding) 21 Reserved 22 Received properties For more information on a particular version, including supported releases, see the ZFS Administration Guide. |
然后,可通过运行 zpool upgrade 命令来升级所有池。例如:
# zpool upgrade -a |
如果将池升级到更高的 ZFS 版本,则在运行较早 ZFS 版本的系统中将无法访问该池。