一、功能需求
Linux 系统下Veritas Storage Foundation识别的dmpdev磁盘如何和存储LUN进行对应?
[root@cent6u8 /]# vxdmpadm list dmpnode aluadisk0_0 dmpdev = aluadisk0_0 state = enabled enclosure = aluadisk0 cab-sno = 0x00b3420f-0f8d0000- asl = jbod vid = MacroSAN pid = LU array-name = aluadisk array-type = ALUA iopolicy = MinimumQ avid = - lun-sno = f9f9a445-fbf udid = MacroSAN%5FLU%5F0x00b3420f-0f8d0000-%5Ff9f9a445-fbf dev-attr = - lun_type = - scsi3_vpd = - replicated = no num_paths = 4 ###path = name state type transport ctlr hwpath aportID aportWWN attr path = sdmq enabled secondary FC c3 c3 - 50:0b:34:20:0f:0f:8b:09 - path = sdla enabled(a) primary FC c3 c3 - 50:0b:34:20:0f:0f:8d:09 - path = sdhu enabled(a) primary FC c2 c2 - 50:0b:34:20:0f:0f:8d:0b - path = sdjk enabled secondary FC c2 c2 - 50:0b:34:20:0f:0f:8b:0b -
二、问题分析
DMP在添加VID为宏杉存储作JBOD设备时,未添加serialnum参数,需要删除重新添加。
# vxddladm addjbod vid=MacroSAN cabinetnum=18/-1/96/20
三、配置步骤
1.删除存储已识别的所有dmpnode磁盘
# vxdisk rm aluadisk0_0
2.删除vid=MacroSAN的JBOD磁盘类型
# vxddladm rmjbod vid=MacroSAN3.重新添加vid=MacroSAN的JBOD磁盘类型 ,添加 serialnum参数
# vxddladm addjbod vid=MacroSAN cabinetnum=18/-1/96/20 serialnum=18/131/8/16
4.结果确认,dmpdev磁盘的lun-sno与存储LUN WWN对应
[root@cent6u8 /]# vxdmpadm list dmpnode aluadisk0_0 dmpdev = aluadisk0_0 state = enabled enclosure = aluadisk0 cab-sno = 0x00b3420f-0f8d0000- asl = jbod vid = MacroSAN pid = LU array-name = aluadisk array-type = ALUA iopolicy = MinimumQ avid = - lun-sno = 600B34202B5C107D42CCD9D89D0000D0 udid = MacroSAN%5FLU%5F0x00b3420f-0f8d0000-%5F600B34202B5C107D42CCD9D89D0000D0 dev-attr = - lun_type = - scsi3_vpd = - replicated = no num_paths = 4 ###path = name state type transport ctlr hwpath aportID aportWWN attr path = sdmq enabled secondary FC c3 c3 - 50:0b:34:20:0f:0f:8b:09 - path = sdla enabled(a) primary FC c3 c3 - 50:0b:34:20:0f:0f:8d:09 - path = sdhu enabled(a) primary FC c2 c2 - 50:0b:34:20:0f:0f:8d:0b - path = sdjk enabled secondary FC c2 c2 - 50:0b:34:20:0f:0f:8b:0b -
五、风险提示
如果存储已运行业务,需要停止业务运行并卸载磁盘后再操作。
六、关键字
Veritas Storage Foundation ,vxdmpadm
修改日期 | 修改人 | 备注 |
2018-11-07 23:15:01[当前版本] | 刘渊 | 3步骤操作流程修正 |
2018-11-08 16:44:48 | 刘渊 | 3步骤操作流程及命令行和字体修正 |
2018-11-07 22:59:45 | 刘渊 | CREAT |