168大数据

标题: EMC LUN ON HP UNIX盘符不一致的解决方法 [打印本页]

作者: dbadoudou    时间: 2014-8-21 08:31
标题: EMC LUN ON HP UNIX盘符不一致的解决方法
EMC LUN ON HP UNIX盘符不一致的解决方法
1.同一块LUN;找出对应盘符的唯一ID,并找出其WWN
cd /dev/rdisk
节点1
# ls -l /dev/rdisk/disk161
crw-r--r--   1 root       sys         13 0x000030 Aug 20 13:53 /dev/rdisk/disk161
节点2
# ls -l /dev/rdisk/disk162
crw-r--r--   1 root       sys         13 0x000034 Aug 20 13:53 /dev/rdisk/disk162

2.创建新的盘符,并设置成双节点一致
cd /dev/rdisk
节点1
mknod /dev/rdisk/disk163 c 13 0x000030 <=唯一的
节点2
mknod /dev/rdisk/disk163 c 13 0x000034 <=唯一的

3.验证盘符是否一致
节点1
# ioscan -funN -C disk
Class     I  H/W Path  Driver S/W State   H/W Type     Description
===================================================================
disk    161  64000/0xfa00/0x30  esdisk   CLAIMED     DEVICE       DGC     RAID 5
                      /dev/disk/disk161    /dev/rdisk/disk163  

节点2
# ioscan -funN -C disk
Class     I  H/W Path  Driver S/W State   H/W Type     Description
===================================================================
disk    162  64000/0xfa00/0x34  esdisk   CLAIMED     DEVICE       DGC     RAID 5
                      /dev/disk/disk162   /dev/rdisk/disk163
##注意:2个节点的/dev/disk是有所有不同的,一个是disk161,一个是disk162,所以如果需要使用/dev/disk一定要注意哦。##

3-1.使用powermt验证
命令: powermt display dev=all
节点1
# powermt display dev=all
Pseudo name=disk163
VNX ID=FCN00114900102 [collection_sg]
Logical device ID=6006016045D02E00FA8E1E687A26E411 [cdc_hp]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP A, current=SP A       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   1 0/6/0/0/0/0/2/0/0/1.0x5006016c47200986.0x7000000000000 c9t0d7      SP B4    active   alive      0      0
   1 0/6/0/0/0/0/2/0/0/1.0x5006016447200986.0x7000000000000 c7t0d7      SP A4    active   alive      0      0
   0 0/6/0/0/0/0/2/0/0/0.0x5006016847200986.0x7000000000000 c5t0d7      SP B0    active   alive      0      0
   0 0/6/0/0/0/0/2/0/0/0.0x5006016047200986.0x7000000000000 c3t0d7      SP A0    active   alive      0      0
节点2
# powermt display dev=all
Pseudo name=disk163
VNX ID=FCN00114900102 [collection_sg]
Logical device ID=6006016045D02E00FA8E1E687A26E411 [cdc_hp]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP A, current=SP A       Array failover mode: 4
==============================================================================
--------------- Host ---------------   - Stor -  -- I/O Path --   -- Stats ---
###  HW Path               I/O Paths    Interf.  Mode     State   Q-IOs Errors
==============================================================================
   1 0/6/0/0/0/0/2/0/0/1.0x5006016c47200986.0x7000000000000 c9t0d7      SP B4    active   alive      0      0
   1 0/6/0/0/0/0/2/0/0/1.0x5006016447200986.0x7000000000000 c7t0d7      SP A4    active   alive      0      0
   0 0/6/0/0/0/0/2/0/0/0.0x5006016847200986.0x7000000000000 c5t0d7      SP B0    active   alive      0      0
   0 0/6/0/0/0/0/2/0/0/0.0x5006016047200986.0x7000000000000 c3t0d7      SP A0    active   alive      0      0

##注意:千万不要使用这个命令insf -e,此命令会继续使用系统默认的重命名,如果重命名后盘符就又不一致了。##







欢迎光临 168大数据 (http://www.bi168.cn/) Powered by Discuz! X3.2