Go to main content

Oracle® ZFS Storage Appliance 管理指南,发行版 OS8.8.0

退出打印视图

更新时间: 2018 年 11 月
 
 

配置 SRP 目标 (CLI)

以下示例说明如何使用 configuration san targets srp groups 上下文创建名为 targetSRPgroup 的 SRP 目标组:

  • 要配置 SRP 目标,请使用以下 CLI 命令:
    swallower:configuration san targets srp groups> create
    swallower:configuration san targets srp group (uncommitted)> set name=targetSRPgroup
                             name = targetSRPgroup (uncommitted)
    swallower:configuration san targets srp group (uncommitted)> 
    set targets=eui.0002C903000489A4
                          targets = eui.0002C903000489A4 (uncommitted)
    swallower:configuration san targets srp group (uncommitted)> commit
    swallower:configuration san targets srp groups> list
    GROUP     NAME
    group-000 targetSRPgroup
             |
             +-> TARGETS
                 eui.0002C903000489A4
    
示例 1  使用 CLI 创建与目标 SRP 组关联的 LUN

以下示例演示了如何使用 CLI shares CLI 上下文创建 LUN 并将其与 targetSRPgroup 关联:

swallower:shares default> lun mylun
swallower:shares default/mylun (uncommitted)> set targetgroup=targetSRPgroup
                  targetgroup = targetSRPgroup (uncommitted)
swallower:shares default/mylun (uncommitted)> set volsize=10
                      volsize = 10 (uncommitted)
swallower:shares default/mylun (uncommitted)> commit
swallower:shares default> list
Filesystems:
NAME             SIZE    MOUNTPOINT
test             38K     /export/test
LUNs:
NAME              SIZE    GUID
mylun             10G     600144F0E9D19FFB00004B82DF490001

相关主题