SAN 光交简单命令
SAN 光交简单命令
FC1
步骤 |
命令 |
1,新建主机别名 |
alicreate "cspower1","10:00:00:10:9b:ba:XX:XX" |
2,新建存储别名 |
alicreate "SAN1_L0_IOM0_P0","20:00:00:20:5b:bc:XX:XX" |
3,新建zone |
zonecreate "cspower1_SAN1_L0_IOM0_P0"," cspower1; SAN1_L0_IOM0_P0" |
4,加入zone |
cfgadd "zonecfg","cspower1_SAN1_L0_IOM0_P0" |
5,配置保存 |
cfgsave |
6,配置生效 |
cfgenable "zonecfg" |
FC2
步骤 |
命令 |
1,新建主机别名 |
alicreate "cspower1","10:00:00:10:9b:ba:XX:XX" |
2,新建存储别名 |
alicreate "SAN1_R0_IOM0_P0","20:00:00:20:5b:bc:XX:XX" |
3,新建zone |
zonecreate "cspower1_SAN1_R0_IOM0_P0"," cspower1; SAN1_R0_IOM0_P0" |
4,加入zone |
cfgadd "zonecfg","cspower1_SAN1_R0_IOM0_P0" |
5,配置保存 |
cfgsave |
6,配置生效 |
cfgenable "zonecfg" |
SAN光交基本命令汇总
步骤 |
命令 |
1,查看链路连接情况 |
#switchshow |
2,端口速率调整 |
1,查看端口对应的index(port_index ) #switchshow 2,SAN光交上将小机FC口的速率从32G调整为16G #portcfgspeed -i port_index 16 |
3,配置导出 |
#cfgshow |
4,删除别名 |
#alidelete "cspower1" |
5,删除zone |
#zonedelete "cspower1_SAN1_R0_IOM0_P0" |
6,删除zone配置 |
#cfgremove "zonecfg","cspower1_SAN1_R0_IOM0_P0" |
7,整条链路断开,关闭SAN光纤交换机,所有端口 |
#switchdisable |
8,开启SAN光纤交换机1所有端口 |
#switchenable |
9,查看电源模块 |
#psshow |
10,查看板块状态 |
#slotshow |
11,查看管理板 |
#hashow |
12,查看模块 |
#sfpshow 3/1 (3为槽位,1为端口号) |
13,查看端口状态 | #portshow -i 1 (-i 索引号) |
14,查看端口err 计数 | #porterrshow |
15,查看风扇状态 | #fanshow |
16,查看温度 | #tempshow |
17,修改ntp配置 |
>help tsclockserver #查看帮助 |
1 回退环境: 2 1,ssh登录SAN光交后, 3 (1)删除zone配置 4 #cfgremove "zonecfg","esxi1_fcs1_SAN1_R0_IOM0_P0" 5 (2)删除zone, 6 #zonedelete "esxi1_fcs1_SAN1_R0_IOM0_P0" 7 (3)保存 cfgsave 8 (4)生效 cfgenable "zonecfg" 9 (5) 验证 zone --validate esxi1_fcs1_SAN1_R0_IOM0_P0 10 (6)删除别名: 11 #alidelete "esxi1_fcs1"