电脑技术学习

ZFS 中的新增功能

dn001

  改进的 zpool status 输出

  Solaris 10 8/07 发行版:使用 zpool status -v 命令可显示包含持久性错误的文件的列表。以前,必须使用 find -inum 命令从显示的 inode 列表中标识文件名。

  ZFS 和 Solaris iSCSI 改进

  Solaris 10 8/07 发行版:在此 Solaris 发行版中,可以通过对 ZFS 卷设置 shareiscsi 属性将 ZFS 卷创建为 Solaris iSCSI 目标设备。此方法是快速设置 Solaris iSCSI 目标的便捷途径。例如:

# zfs create -V 2g tank/volumes/v2
# zfs set shareiscsi=on tank/volumes/v2
# iscsitadm list target
Target: tank/volumes/v2
  iSCSI Name: iqn.1986-03.com.sun:02:984fe301-c412-ccc1-cc80-cf9a72aa062a
  Connections: 0

  创建 iSCSI 目标后,应设置 iSCSI 启动器。

  ZFS 命令历史记录 (zpool history)

  Solaris 10 8/07 发行版:在此 Solaris 发行版中,ZFS 会自动记录成功修改池状态信息的 zfs 和 zpool 命令。例如:

# zpool history
History for 'newpool':
2007-04-25.11:37:31 zpool create newpool mirror c0t8d0 c0t10d0
2007-04-25.11:37:46 zpool replace newpool c0t10d0 c0t9d0
2007-04-25.11:38:04 zpool attach newpool c0t9d0 c0t11d0
2007-04-25.11:38:09 zfs create newpool/user1
2007-04-25.11:38:15 zfs destroy newpool/user1
History for 'tank':
2007-04-25.11:46:28 zpool create tank mirror c1t0d0 c2t0d0 mirror c3t0d0 c4t0d0

  借助此功能,用户或 Sun 技术支持人员可以精确确定已执行的 ZFS 命令集,来排除错误情况。

标签: