[13:25:42 root()@stldb1 bin]# ./dlnkmgr view -lu
Product       : HUS100
SerialNumber  : 93012420        
LUs           : 3

iLU  HDevName Device   PathID Status     
0006 sddlmaa  /dev/sdb 000000 Online     
              /dev/sde 000003 Online     
              /dev/sdh 000006 Online     
              /dev/sdk 000007 Online     
0007 sddlmac  /dev/sdc 000001 Online     
              /dev/sdf 000004 Online     
              /dev/sdi 000008 Online     
              /dev/sdl 000009 Online     
0008 sddlmab  /dev/sdd 000002 Online     
              /dev/sdg 000005 Online     
              /dev/sdj 000010 Online     
              /dev/sdm 000011 Online   

我们可以看到此时,我们新添加的lun没有出现在列表中

linux上,动态探测新设备的SCSI/FC bus
操作系统版本redhat 6  , QLogic HBA驱动
# echo 1 > /sys/class/fc_host/host1/issue_lip 
# echo 1 > /sys/class/fc_host/host2/issue_lip
# echo "- - -" > /sys/class/scsi_host/host1/scan
# echo "- - -" > /sys/class/scsi_host/host2/scan
注:/sys/class/scsi_host/host1/scan
Host后的数值n表示: host port number


检查操作系统是否认到盘
[13:45:18 root()@stldb1 host1]# cat /proc/scsi/scsi 
Attached devices:
Host: scsi0 Channel: 00 Id: 32 Lun: 00
  Vendor: DP       Model: BACKPLANE        Rev: 1.09
  Type:   Enclosure                        ANSI  SCSI revision: 05
Host: scsi0 Channel: 02 Id: 00 Lun: 00
  Vendor: DELL     Model: PERC H700        Rev: 2.10
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 00 Lun: 01
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 00 Lun: 02
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 01 Lun: 00
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 01 Lun: 01
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 01 Lun: 02
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 00 Lun: 01
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 00 Lun: 02
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 01 Lun: 00
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 01 Lun: 01
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 01 Lun: 02
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 01 Lun: 03
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 01 Lun: 04
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 01 Lun: 05
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 01 Lun: 06
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 01 Lun: 07
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 00 Lun: 03
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 00 Lun: 04
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 00 Lun: 05
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 00 Lun: 06
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi1 Channel: 00 Id: 00 Lun: 07
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 01 Lun: 03
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 01 Lun: 04
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 01 Lun: 05
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 01 Lun: 06
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 01 Lun: 07
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 00 Lun: 03
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 00 Lun: 04
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 00 Lun: 05
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 00 Lun: 06
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04
Host: scsi2 Channel: 00 Id: 00 Lun: 07
  Vendor: HITACHI  Model: DF600F           Rev: 0000
  Type:   Direct-Access                    ANSI  SCSI revision: 04

更新HDLM配置信息

[13:46:43 root()@stldb1 sbin]# ./dlmcfgmgr -r
KAPL10339-I This operation will change the configuration of HDLM devices. Do you want to continue? [y/n]: y
KAPL10341-I The HDLM device configurations have been changed.
KAPL10302-I /sbin/dlmcfgmgr completed normally.
[13:46:53 root()@stldb1 sbin]# ./dlmcfgmgr -v
HDevName        Management      Device     Host    Channel Target  Lun    
/dev/sddlmaa    configured      /dev/sdb         1       0       0       0
                                /dev/sde         1       0       1       0
                                /dev/sdh         2       0       0       0
                                /dev/sdk         2       0       1       0
/dev/sddlmab    configured      /dev/sdd         1       0       0       2
                                /dev/sdg         1       0       1       2
                                /dev/sdj         2       0       0       2
                                /dev/sdm         2       0       1       2
/dev/sddlmac    configured      /dev/sdi         2       0       0       1
                                /dev/sdl         2       0       1       1
                                /dev/sdf         1       0       1       1
                                /dev/sdc         1       0       0       1
/dev/sddlmad    configured      /dev/sdn         1       0       1       3
                                /dev/sds         1       0       0       3
                                /dev/sdx         2       0       1       3
                                /dev/sdac        2       0       0       3
/dev/sddlmae    configured      /dev/sdo         1       0       1       4
                                /dev/sdy         2       0       1       4
                                /dev/sdt         1       0       0       4
                                /dev/sdad        2       0       0       4
/dev/sddlmaf    configured      /dev/sdz         2       0       1       5
                                /dev/sdp         1       0       1       5
                                /dev/sdw         1       0       0       7
                                /dev/sdae        2       0       0       5
/dev/sddlmag    configured      /dev/sdq         1       0       1       6
                                /dev/sdv         1       0       0       6
                                /dev/sdaf        2       0       0       6
                                /dev/sdaa        2       0       1       6
/dev/sddlmah    configured      /dev/sdr         1       0       1       7
                                /dev/sdab        2       0       1       7
                                /dev/sdu         1       0       0       5
                                /dev/sdag        2       0       0       7

可以看到,新的lun已经添加到系统中了


Logo

更多推荐