如何在 Solaris 中查找 zpool 版本和文件系统版本

升级 ZFS 文件系统和 zpool 版本是一种单向操作。
升级后,版本不能降级。
如果在这些引导环境中不支持升级的 zpool/filesystem 版本,这将阻止从较旧的引导环境引导。
因此,在升级之前检查 zpool 版本很重要。

可以使用以下任一命令检查当前 zpool 版本:

# zpool upgrade
# zpool get version [zpool name]

例如:

# zpool upgrade
This system is currently running ZFS pool version 29.
All pools are formatted using this version.
# zpool get version datapool
NAME      PROPERTY  VALUE    SOURCE
datapool  version   29       default

当前的 ZFS 文件系统版本可以通过以下方式检查:

# zfs upgrade
# zfs get version [ZFS filesystem name]

例如:

# zfs upgrade
This system is currently running ZFS filesystem version 5.
All filesystems are formatted with the current version.
# zfs get version datapool/datafs
NAME             PROPERTY  VALUE    SOURCE
datapool/datafs  version   5

可用版本列表可以通过以下方式获得:

# zpool upgrade -v
This system is currently running ZFS pool version 29.
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
 23  Slim ZIL
 24  System attributes
 25  Improved scrub stats
 26  Improved snapshot deletion performance
 27  Improved snapshot creation performance
 28  Multiple vdev replacements
 29  RAID-Z/mirror hybrid allocator
For more information on a particular version, including supported releases,
see the ZFS Administration Guide.

  1 初始 ZFS 版本
  2 同上块(复制的元数据)
  3 个热备件和双奇偶校验 RAID-Z
  4 zpool 历史
  5 使用gzip算法压缩
  6 bootfs 池属性
  7 独立的意图日志设备
  8 委托管理
  9 refquota 和 refreservation 属性
  10个缓存设备
  11 改进的擦洗性能
  12 快照属性
  13 快照属性
  14 passthrough-x aclinherit
  15 个用户/组空间记帐
  16 stmf 属性支持
  17 三重奇偶校验 RAID-Z
  18 个快照用户持有
  19 日志设备移除
  20 使用 zle 压缩(零长度编码)
  21 保留
  22 收到的属性
  23 Slim ZIL
  24 系统属性
  25 改进的擦洗统计
  26 改进快照删除性能
  27 改进快照创建性能
  28 多个 vdev 替换
  29 RAID-Z/镜像混合分配器
有关特定版本的更多信息,包括支持的版本,
请参阅 ZFS 管理教程。
# zfs upgrade -v
The following filesystem versions are supported:
VER  DESCRIPTION
---  -------------------------------------------------------
 1   Initial ZFS filesystem version
 2   Enhanced directory entries
 3   Case insensitive and File system unique identifier (FUID)
 4   userquota, groupquota properties
 5   System attributes
For more information on a particular version, including supported releases,
see the ZFS Administration Guide.

1 初始 ZFS 文件系统版本
  2 增强的目录条目
  3 不区分大小写和文件系统唯一标识符 (FUID)
  4 userquota, groupquota 属性
  5 系统属性
有关特定版本的更多信息,包括支持的版本,
请参阅 ZFS 管理教程。
日期:2020-09-17 00:15:10 来源:oir作者:oir