创建和使用 Oracle® Solaris 区域

退出打印视图

更新时间: 2015 年 5 月
 
 

zpool 资源

zpool 资源描述 ZFS 存储池,该存储池包含委托给 Oracle Solaris 区域的共享存储资源。zpool 资源将指定至少一个存储属性。可以指定多个存储属性以描述冗余 ZFS 存储池配置。可以为区域配置定义多个 zpool 资源。

指定 zpool 资源的 ZFS 存储池名称的方式如下:将区域名称和指定的名称属性合并,即 zonename_name。对于名称属性,zonecfg 将检验该字符串是否符合 ZFS 存储名称和 ZFS 数据集名称的条件。不允许使用字符串 rpool,并且该字符串不能用于此属性。

zpool 资源使用全局资源范围中的以下 zonecfg 子命令进行管理。

zonecfg:zonename> add zpool
zonecfg:zonename:zpool> add storage URI string
zonecfg:zonename:zpool> set name=name string
zonecfg:zonename:zpool> end

zonecfg:zonename> remove zpool
zonecfg:zonename> remove zpool name=name string
zonecfg:zonename> remove zpool storage=URI string

zonecfg:zonename> select zpool storage=URI string

zonecfg:zonename> info zpool
zonecfg:zonename> info zpool name=name string
zonecfg:zonename> info zpool storage=URI string