创建iSCSI target 示例 示例1 单机版:创建targetc,允许建立的最多3个会话数,开启CHAP认证。 plaintext [root@hblockserver CTYUNHBlockPlus3.10.0x64] ./stor target add n targetc maxsessions 3 c chaptest p s on Created target targetc successfully. iqn iqn.201208.cn.ctyunapi.oos:targetc.2(192.168.0.32:3260) 示例2 集群版:创建target02,允许建立的最多6个会话数,开启CHAP认证,指定服务器ID为hblock1、hblock2、hblock3。 plaintext [root@hblockserver CTYUNHBlockPlus3.10.0x64] ./stor target add n target02 maxsessions 6 c chaptest p s on num 3 server hblock1,hblock2,hblock3 Created target target02 successfully. iqn iqn.201208.cn.ctyunapi.oos:target02.5(192.168.0.110:3260) iqn iqn.201208.cn.ctyunapi.oos:target02.6(192.168.0.192:3260) iqn iqn.201208.cn.ctyunapi.oos:target02.7(192.168.0.102:3260) 示例3 集群版:创建target05,并为其创建允许访问列表。 plaintext [root@hblockserver CTYUNHBlockPlus3.10.0x64] ./stor target add n target05 initiator 192.168.0.70:iqn.199105.com.microsoft:songt0001 192.168.0.64 Created target target05 successfully. iqn iqn.201208.cn.ctyunapi.oos:target05.7 (192.168.0.67:3260) iqn iqn.201208.cn.ctyunapi.oos:target05.8 (192.168.0.65:3260)