Solaris10上如何识别新增加的HDLM LUN

先在磁盘阵列上将新加LUN映射给主机组,然后在光纤交换机上增加相关zone信息。以下是Solaris10上需要执行的操作步骤。

  • 在Solaris10上重新扫描磁盘

-bash-3.2# cfgadm -al

-bash-3.2# devfsadm -Cv

  • format命令显示操作系统已经识别出新加lun

-bash-3.2# format Searching for disks...done c2t50060E80102A00F0d1: configured with capacity of 9.96GB c2t50060E80102A00F3d1: configured with capacity of 9.96GB c3t50060E80102A00F1d1: configured with capacity of 9.96GB c3t50060E80102A00F2d1: configured with capacity of 9.96GB AVAILABLE DISK SELECTIONS: 0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> /pci@0/pci@0/pci@2/scsi@0/sd@0,0 1. c1t1d0 <HITACHI-H101414SCSUN146G-SA25 cyl 14087 alt 2 hd 24 sec 848> /pci@0/pci@0/pci@2/scsi@0/sd@1,0 2. c1t2d0 <HITACHI-H101414SCSUN146G-SA25 cyl 14087 alt 2 hd 24 sec 848> /pci@0/pci@0/pci@2/scsi@0/sd@2,0 3. c2t50060E80102A00F0d1 <HITACHI-DF600F-0000 cyl 544 alt 2 hd 50 sec 768> /pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e80102a00f0,1 4. c2t50060E80102A00F3d1 <HITACHI-DF600F-0000 cyl 544 alt 2 hd 50 sec 768> /pci@0/pci@0/pci@8/pci@0/pci@1/QLGC,qlc@0/fp@0,0/ssd@w50060e80102a00f3,1 5. c3t50060E80102A00F1d1 <HITACHI-DF600F-0000 cyl 544 alt 2 hd 50 sec 768> /pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e80102a00f1,1 6. c3t50060E80102A00F2d1 <HITACHI-DF600F-0000 cyl 544 alt 2 hd 50 sec 768> /pci@0/pci@0/pci@9/QLGC,qlc@0/fp@0,0/ssd@w50060e80102a00f2,1 7. c4t50060E80102A00F0d0 <HITACHI-DF600F-0000 cyl 48820 alt 2 hd 255 sec 189> /pseudo/dlmndrv@1/dlmfdrv@w50060e80102a00f0,0 Specify disk (enter its number):

红色部分是新识别出来的lun信息。

  • 重新生成HDLM配置文件

重新生成前最好备份一下原配置文件dlmfdrv.conf和dlmndrv.conf

-bash-3.2# dlmsetconf
KAPL10242-I To configure HDLM, device files of sd/ssd devices managed by HDLM are removed after reboot.
            Do you want to continue? [y/n]:y
KAPL10204-I dlmsetconf completed successfully.
  • 检查HDLM配置文件

-bash-3.2# more /kernel/drv/dlmfdrv.conf
新加lun的信息已经自动加入到配置文件中。
  • 使新HDLM配置文件生效

-bash-3.2# dlmcfgmgr -a
KAPL10373-I This operation will change the configuration of HDLM devices, and delete device files of sd/ssd devices managed by HDLM.
            Do you want to continue? [y/n]:y
KAPL10378-I The LU (LDEV = AMS.75040975.0050) was successfully added.
KAPL10370-I dlmcfgmgr completed successfully.
  • 检查LUN信息

-bash-3.2# dlnkmgr view -lu
Product       : AMS
SerialNumber  : 75040975
LUs           : 2

iLU  HDevName              Device PathID Status
0049 c4t50060E80102A00F0d0 ssd0   000000 Online
                           ssd1   000001 Online
                           ssd3   000002 Online
                           ssd2   000003 Online
0050 c5t50060E80102A00F0d1 ssd4   000004 Online(E)
                           ssd5   000005 Offline(E)
                           ssd6   000006 Offline(E)
                           ssd7   000007 Offline(E)
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/14 10:30:02

新增加的lun号是50。注意此处LUN50的第一条路径显示为"Online(E)"状态,其它路径均为“Offline(E)”。这并不表示LUN50路径有问题。在做完分区或创建文件系统后,路径会自动恢复为Online状态。
  • 分区并label新加lun

在做完分区并label后路径状态正常

-bash-3.2# dlnkmgr view -lu
Product       : AMS
SerialNumber  : 75040975
LUs           : 2

iLU  HDevName              Device PathID Status
0049 c4t50060E80102A00F0d0 ssd0   000000 Online
                           ssd1   000001 Online
                           ssd3   000002 Online
                           ssd2   000003 Online
0050 c5t50060E80102A00F0d1 ssd4   000004 Online
                           ssd5   000005 Online
                           ssd6   000006 Online
                           ssd7   000007 Online
KAPL01001-I The HDLM command completed normally. Operation name = view, completion time = 2014/04/14 10:32:28

    增加/删除路径、删除LUN的操作与新加LUN操作过程类似。

    posted @ 2014-04-14 11:09  生命的力量在于不顺从  阅读(1703)  评论(0编辑  收藏  举报