Storage extend online in Linux

环境 : 

CentOS 5.x X64 Linux系统.

HBA :

15:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
15:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)

存储 : 

HP MSA2312FC

需求 : 

存储扩容后分配给CentOS 5.x X64 Linux系统.

操作 : 

1. HP MSA2312FC操作

创建新卷 :

create volume vdisk vd01 size 758G vd01vol5
create volume vdisk vd02 size 918G vd02vol1
create volume vdisk vd02 size 580G vd02vol2

创建卷和主机的映射关系

map volume access rw lun 5 host 192168001009_0 vd01vol5
map volume access rw lun 6 host 192168001009_0 vd02vol1
map volume access rw lun 7 host 192168001009_0 vd02vol2
map volume access rw lun 5 host 192168001009_1 vd01vol5
map volume access rw lun 6 host 192168001009_1 vd02vol1
map volume access rw lun 7 host 192168001009_1 vd02vol2

查看映射关系

# show host-maps

Host View [ID (2101001B32BC4C82) Name (192168001009_1) Profile (Standard) ] Mapping:
   Name      Serial Number                    LUN   Access       Ports
   --------------------------------------------------------------------------
   vd01vol01 00c0ff105ac50000024f7d5001000000 1     read-write   A1,A2,B1,B2
   vd02vol1  00c0ff105a6a0000b280f35001000000 6     read-write   A1,A2,B1,B2
   vd01vol02 00c0ff105ac500000a4f7d5001000000 2     read-write   A1,A2,B1,B2
   vd02vol2  00c0ff105a6a00004481f35001000000 7     read-write   A1,A2,B1,B2
   vd01vol03 00c0ff105ac50000264f7d5001000000 3     read-write   A1,A2,B1,B2
   vd01vol04 00c0ff105ac500002f4f7d5001000000 4     read-write   A1,A2,B1,B2
   vd01vol5  00c0ff105ac50000a380f35001000000 5     read-write   A1,A2,B1,B2 

Host View [ID (2100001B329C4C82) Name (192168001009_0) Profile (Standard) ] Mapping:
   Name      Serial Number                    LUN   Access       Ports
   --------------------------------------------------------------------------
   vd01vol01 00c0ff105ac50000024f7d5001000000 1     read-write   A1,A2,B1,B2
   vd02vol1  00c0ff105a6a0000b280f35001000000 6     read-write   A1,A2,B1,B2
   vd01vol02 00c0ff105ac500000a4f7d5001000000 2     read-write   A1,A2,B1,B2
   vd02vol2  00c0ff105a6a00004481f35001000000 7     read-write   A1,A2,B1,B2
   vd01vol03 00c0ff105ac50000264f7d5001000000 3     read-write   A1,A2,B1,B2
   vd01vol04 00c0ff105ac500002f4f7d5001000000 4     read-write   A1,A2,B1,B2
   vd01vol5  00c0ff105ac50000a380f35001000000 5     read-write   A1,A2,B1,B2 

2. 系统层面

配置完存储后, 通过 fdisk -l 看不到新加的存储.

通过dmesg信息可以看出, Linux SCSI 层不能自动remap LUN的关系. 具体信息如下 :

sd 6:0:1:1: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:1: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:4: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:3: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:2: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:2: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:3: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:4: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:3: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:1: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:4: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:1: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:2: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:2: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:3: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:4: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:3: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:1: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:1: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:4: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:0:2: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:2: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:3: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.
sd 6:0:1:4: Warning! Received an indication that the LUN assignments on this target have changed. The Linux SCSI layer does not automatically remap LUN assignments.

解决办法 : 

重新扫描设备, 执行以下命令, 执行完后设备就找到了.

find /sys/class/scsi_host/host*/scan | while read line; do echo - - - > $line; done

dmesg输出 : 

  Vendor: IBM-ESXS  Model: CBRCA146C3ETS0 N  Rev: C370
  Type:   Direct-Access                      ANSI SCSI revision: 06
  Vendor: IBM-ESXS  Model: CBRCA146C3ETS0 N  Rev: C370
  Type:   Direct-Access                      ANSI SCSI revision: 06
ata1: hard resetting link
ata1: SATA link down (SStatus 0 SControl 300)
ata1: EH complete
ata2: hard resetting link
ata2: SATA link down (SStatus 0 SControl 300)
ata2: EH complete
ata3: hard resetting link
ata3: SATA link down (SStatus 0 SControl 300)
ata3: EH complete
ata4: hard resetting link
ata4: SATA link down (SStatus 0 SControl 300)
ata4: EH complete
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdj: 195312480 512-byte hdwr sectors (100000 MB)
sdj: Write Protect is off
sdj: Mode Sense: 93 00 00 08
SCSI device sdj: drive cache: write back
SCSI device sdj: 195312480 512-byte hdwr sectors (100000 MB)
sdj: Write Protect is off
sdj: Mode Sense: 93 00 00 08
SCSI device sdj: drive cache: write back
 sdj: unknown partition table
sd 5:0:0:1: Attached scsi disk sdj
sd 5:0:0:1: Attached scsi generic sg13 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdk: 351562496 512-byte hdwr sectors (180000 MB)
sdk: Write Protect is off
sdk: Mode Sense: 93 00 00 08
SCSI device sdk: drive cache: write back
SCSI device sdk: 351562496 512-byte hdwr sectors (180000 MB)
sdk: Write Protect is off
sdk: Mode Sense: 93 00 00 08
SCSI device sdk: drive cache: write back
 sdk: unknown partition table
sd 5:0:0:2: Attached scsi disk sdk
sd 5:0:0:2: Attached scsi generic sg14 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdl: 312500000 512-byte hdwr sectors (160000 MB)
sdl: Write Protect is off
sdl: Mode Sense: 93 00 00 08
SCSI device sdl: drive cache: write back
SCSI device sdl: 312500000 512-byte hdwr sectors (160000 MB)
sdl: Write Protect is off
sdl: Mode Sense: 93 00 00 08
SCSI device sdl: drive cache: write back
 sdl: unknown partition table
sd 5:0:0:3: Attached scsi disk sdl
sd 5:0:0:3: Attached scsi generic sg15 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdm: 546874976 512-byte hdwr sectors (280000 MB)
sdm: Write Protect is off
sdm: Mode Sense: 93 00 00 08
SCSI device sdm: drive cache: write back
SCSI device sdm: 546874976 512-byte hdwr sectors (280000 MB)
sdm: Write Protect is off
sdm: Mode Sense: 93 00 00 08
SCSI device sdm: drive cache: write back
 sdm: unknown partition table
sd 5:0:0:4: Attached scsi disk sdm
sd 5:0:0:4: Attached scsi generic sg16 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdn: 1480468736 512-byte hdwr sectors (758000 MB)
sdn: Write Protect is off
sdn: Mode Sense: 93 00 00 08
SCSI device sdn: drive cache: write back
SCSI device sdn: 1480468736 512-byte hdwr sectors (758000 MB)
sdn: Write Protect is off
sdn: Mode Sense: 93 00 00 08
SCSI device sdn: drive cache: write back
 sdn: unknown partition table
sd 5:0:0:5: Attached scsi disk sdn
sd 5:0:0:5: Attached scsi generic sg17 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdo: 1792968736 512-byte hdwr sectors (918000 MB)
sdo: Write Protect is off
sdo: Mode Sense: 93 00 00 08
SCSI device sdo: drive cache: write back
SCSI device sdo: 1792968736 512-byte hdwr sectors (918000 MB)
sdo: Write Protect is off
sdo: Mode Sense: 93 00 00 08
SCSI device sdo: drive cache: write back
 sdo: unknown partition table
sd 5:0:0:6: Attached scsi disk sdo
sd 5:0:0:6: Attached scsi generic sg18 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdp: 1132812480 512-byte hdwr sectors (580000 MB)
sdp: Write Protect is off
sdp: Mode Sense: 93 00 00 08
SCSI device sdp: drive cache: write back
SCSI device sdp: 1132812480 512-byte hdwr sectors (580000 MB)
sdp: Write Protect is off
sdp: Mode Sense: 93 00 00 08
SCSI device sdp: drive cache: write back
 sdp: unknown partition table
sd 5:0:0:7: Attached scsi disk sdp
sd 5:0:0:7: Attached scsi generic sg19 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdq: 195312480 512-byte hdwr sectors (100000 MB)
sdq: Write Protect is off
sdq: Mode Sense: 93 00 00 08
SCSI device sdq: drive cache: write back
SCSI device sdq: 195312480 512-byte hdwr sectors (100000 MB)
sdq: Write Protect is off
sdq: Mode Sense: 93 00 00 08
SCSI device sdq: drive cache: write back
 sdq: unknown partition table
sd 5:0:1:1: Attached scsi disk sdq
sd 5:0:1:1: Attached scsi generic sg20 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdr: 351562496 512-byte hdwr sectors (180000 MB)
sdr: Write Protect is off
sdr: Mode Sense: 93 00 00 08
SCSI device sdr: drive cache: write back
SCSI device sdr: 351562496 512-byte hdwr sectors (180000 MB)
sdr: Write Protect is off
sdr: Mode Sense: 93 00 00 08
SCSI device sdr: drive cache: write back
 sdr: unknown partition table
sd 5:0:1:2: Attached scsi disk sdr
sd 5:0:1:2: Attached scsi generic sg21 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sds: 312500000 512-byte hdwr sectors (160000 MB)
sds: Write Protect is off
sds: Mode Sense: 93 00 00 08
SCSI device sds: drive cache: write back
SCSI device sds: 312500000 512-byte hdwr sectors (160000 MB)
sds: Write Protect is off
sds: Mode Sense: 93 00 00 08
SCSI device sds: drive cache: write back
 sds: unknown partition table
sd 5:0:1:3: Attached scsi disk sds
sd 5:0:1:3: Attached scsi generic sg22 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdt: 546874976 512-byte hdwr sectors (280000 MB)
sdt: Write Protect is off
sdt: Mode Sense: 93 00 00 08
SCSI device sdt: drive cache: write back
SCSI device sdt: 546874976 512-byte hdwr sectors (280000 MB)
sdt: Write Protect is off
sdt: Mode Sense: 93 00 00 08
SCSI device sdt: drive cache: write back
 sdt: unknown partition table
sd 5:0:1:4: Attached scsi disk sdt
sd 5:0:1:4: Attached scsi generic sg23 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdu: 1480468736 512-byte hdwr sectors (758000 MB)
sdu: Write Protect is off
sdu: Mode Sense: 93 00 00 08
SCSI device sdu: drive cache: write back
SCSI device sdu: 1480468736 512-byte hdwr sectors (758000 MB)
sdu: Write Protect is off
sdu: Mode Sense: 93 00 00 08
SCSI device sdu: drive cache: write back
 sdu: unknown partition table
sd 5:0:1:5: Attached scsi disk sdu
sd 5:0:1:5: Attached scsi generic sg24 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdv: 1792968736 512-byte hdwr sectors (918000 MB)
sdv: Write Protect is off
sdv: Mode Sense: 93 00 00 08
SCSI device sdv: drive cache: write back
SCSI device sdv: 1792968736 512-byte hdwr sectors (918000 MB)
sdv: Write Protect is off
sdv: Mode Sense: 93 00 00 08
SCSI device sdv: drive cache: write back
 sdv: unknown partition table
sd 5:0:1:6: Attached scsi disk sdv
sd 5:0:1:6: Attached scsi generic sg25 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdw: 1132812480 512-byte hdwr sectors (580000 MB)
sdw: Write Protect is off
sdw: Mode Sense: 93 00 00 08
SCSI device sdw: drive cache: write back
SCSI device sdw: 1132812480 512-byte hdwr sectors (580000 MB)
sdw: Write Protect is off
sdw: Mode Sense: 93 00 00 08
SCSI device sdw: drive cache: write back
 sdw: unknown partition table
sd 5:0:1:7: Attached scsi disk sdw
sd 5:0:1:7: Attached scsi generic sg26 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdx: 1480468736 512-byte hdwr sectors (758000 MB)
sdx: Write Protect is off
sdx: Mode Sense: 93 00 00 08
SCSI device sdx: drive cache: write back
SCSI device sdx: 1480468736 512-byte hdwr sectors (758000 MB)
sdx: Write Protect is off
sdx: Mode Sense: 93 00 00 08
SCSI device sdx: drive cache: write back
 sdx: unknown partition table
sd 6:0:0:5: Attached scsi disk sdx
sd 6:0:0:5: Attached scsi generic sg27 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdy: 1792968736 512-byte hdwr sectors (918000 MB)
sdy: Write Protect is off
sdy: Mode Sense: 93 00 00 08
SCSI device sdy: drive cache: write back
SCSI device sdy: 1792968736 512-byte hdwr sectors (918000 MB)
sdy: Write Protect is off
sdy: Mode Sense: 93 00 00 08
SCSI device sdy: drive cache: write back
 sdy: unknown partition table
sd 6:0:0:6: Attached scsi disk sdy
sd 6:0:0:6: Attached scsi generic sg28 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdz: 1132812480 512-byte hdwr sectors (580000 MB)
sdz: Write Protect is off
sdz: Mode Sense: 93 00 00 08
SCSI device sdz: drive cache: write back
SCSI device sdz: 1132812480 512-byte hdwr sectors (580000 MB)
sdz: Write Protect is off
sdz: Mode Sense: 93 00 00 08
SCSI device sdz: drive cache: write back
 sdz: unknown partition table
sd 6:0:0:7: Attached scsi disk sdz
sd 6:0:0:7: Attached scsi generic sg29 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdaa: 1480468736 512-byte hdwr sectors (758000 MB)
sdaa: Write Protect is off
sdaa: Mode Sense: 93 00 00 08
SCSI device sdaa: drive cache: write back
SCSI device sdaa: 1480468736 512-byte hdwr sectors (758000 MB)
sdaa: Write Protect is off
sdaa: Mode Sense: 93 00 00 08
SCSI device sdaa: drive cache: write back
 sdaa: unknown partition table
sd 6:0:1:5: Attached scsi disk sdaa
sd 6:0:1:5: Attached scsi generic sg30 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdab: 1792968736 512-byte hdwr sectors (918000 MB)
sdab: Write Protect is off
sdab: Mode Sense: 93 00 00 08
SCSI device sdab: drive cache: write back
SCSI device sdab: 1792968736 512-byte hdwr sectors (918000 MB)
sdab: Write Protect is off
sdab: Mode Sense: 93 00 00 08
SCSI device sdab: drive cache: write back
 sdab: unknown partition table
sd 6:0:1:6: Attached scsi disk sdab
sd 6:0:1:6: Attached scsi generic sg31 type 0
  Vendor: HP        Model: MSA2312fc         Rev: M110
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sdac: 1132812480 512-byte hdwr sectors (580000 MB)
sdac: Write Protect is off
sdac: Mode Sense: 93 00 00 08
SCSI device sdac: drive cache: write back
SCSI device sdac: 1132812480 512-byte hdwr sectors (580000 MB)
sdac: Write Protect is off
sdac: Mode Sense: 93 00 00 08
SCSI device sdac: drive cache: write back
 sdac: unknown partition table
sd 6:0:1:7: Attached scsi disk sdac
sd 6:0:1:7: Attached scsi generic sg32 type 0

获取设备UUID : 

for i in `cat /proc/partitions | awk '{print $4}' |grep sd`; do echo "### $i: `scsi_id -g -u -s /block/$i`"; done

配置/etc/multipath.conf, ( 可选 )

vi /etc/multipath.conf

blacklist {
         devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
         devnode "^hd[a-z]"
         # IBM or DELL local disk filter, this example, only on disk local. is sda.
         devnode "^sda$"
         # HP local disk filter
         #devnode "^cciss!c[0-9]d[0-9]*"
}
defaults {
         udev_dir                 /dev
         polling_interval         10
         selector                 "round-robin 0"
         path_grouping_policy     failover
         getuid_callout           "/sbin/scsi_id -g -u -s /block/%n"
         prio_callout             /bin/true
         path_checker             readsector0
         rr_min_io                100
         rr_weight                priorities
         failback                 immediate
         no_path_retry            fail
         user_friendly_names      yes
         flush_on_last_del        yes
}
multipaths {
         multipath {
                 wwid     3600c0ff000105ac5024f7d5001000000
                 alias    d11_msa1_vd01vol01
        }
         multipath {
                 wwid     3600c0ff000105ac50a4f7d5001000000
                 alias    d11_msa1_vd01vol02
        }
         multipath {
                 wwid     3600c0ff000105ac5264f7d5001000000
                 alias    d11_msa1_vd01vol03
        }
         multipath {
                 wwid     3600c0ff000105ac52f4f7d5001000000
                 alias    d11_msa1_vd01vol04
        }
         multipath {
                 wwid     3600c0ff000105ac5a380f35001000000
                 alias    d11_msa1_vd01vol05
        }
         multipath {
                 wwid     3600c0ff000105a6ab280f35001000000
                 alias    d11_msa1_vd01vol06
        }
         multipath {
                 wwid     3600c0ff000105a6a4481f35001000000
                 alias    d11_msa1_vd01vol07
        }
}

重载multipath配置

service multipathd reload

检查多路径是否正常 : 

[root@db-192-168-001-009 ~]# multipath -ll
d11_msa1_vd01vol07 (3600c0ff000105a6a4481f35001000000) dm-10 HP,MSA2312fc
[size=540G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 5:0:1:7 sdw  65:96  [active][ready]
 \_ 6:0:1:7 sdac 65:192 [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 5:0:0:7 sdp  8:240  [active][ready]
 \_ 6:0:0:7 sdz  65:144 [active][ready]
d11_msa1_vd01vol06 (3600c0ff000105a6ab280f35001000000) dm-9 HP,MSA2312fc
[size=855G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 5:0:1:6 sdv  65:80  [active][ready]
 \_ 6:0:1:6 sdab 65:176 [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 5:0:0:6 sdo  8:224  [active][ready]
 \_ 6:0:0:6 sdy  65:128 [active][ready]
d11_msa1_vd01vol05 (3600c0ff000105ac5a380f35001000000) dm-8 HP,MSA2312fc
[size=706G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 5:0:0:5 sdn  8:208  [active][ready]
 \_ 6:0:0:5 sdx  65:112 [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 5:0:1:5 sdu  65:64  [active][ready]
 \_ 6:0:1:5 sdaa 65:160 [active][ready]
d11_msa1_vd01vol04 (3600c0ff000105ac52f4f7d5001000000) dm-3 HP,MSA2312fc
[size=261G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 6:0:0:4 sde  8:64   [active][ready]
 \_ 5:0:0:4 sdm  8:192  [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 6:0:1:4 sdi  8:128  [active][ready]
 \_ 5:0:1:4 sdt  65:48  [active][ready]
d11_msa1_vd01vol03 (3600c0ff000105ac5264f7d5001000000) dm-2 HP,MSA2312fc
[size=149G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 6:0:0:3 sdd  8:48   [active][ready]
 \_ 5:0:0:3 sdl  8:176  [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 6:0:1:3 sdh  8:112  [active][ready]
 \_ 5:0:1:3 sds  65:32  [active][ready]
d11_msa1_vd01vol02 (3600c0ff000105ac50a4f7d5001000000) dm-1 HP,MSA2312fc
[size=168G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 6:0:0:2 sdc  8:32   [active][ready]
 \_ 5:0:0:2 sdk  8:160  [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 6:0:1:2 sdg  8:96   [active][ready]
 \_ 5:0:1:2 sdr  65:16  [active][ready]
d11_msa1_vd01vol01 (3600c0ff000105ac5024f7d5001000000) dm-0 HP,MSA2312fc
[size=93G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=100][active]
 \_ 6:0:0:1 sdb  8:16   [active][ready]
 \_ 5:0:0:1 sdj  8:144  [active][ready]
\_ round-robin 0 [prio=20][enabled]
 \_ 6:0:1:1 sdf  8:80   [active][ready]
 \_ 5:0:1:1 sdq  65:0   [active][ready]

到这里存储设备添加就算完成了.

【其他】

1. 如果存储块设备是通过iscsi连接的, 可以使用iscsiadm.

【参考】

1. man iscsiadm

2. find /sys/class/scsi_host/host*/scan | while read line; do echo - - - > $line; done

3. http://serverfault.com/questions/262586/the-linux-scsi-layer-does-not-automatically-remap-lun-assignments

时间: 2024-09-17 03:35:54

Storage extend online in Linux的相关文章

tensorflow 环境搭建(linux,centos)

按顺序一步一步解决依赖并安装. 1.python 笔者使用的版本为2.7.5. 2.python-pip pip,Python Index Package.类似linux下的yum,安装并管理python软件包. pip安装命令:yum install  python-pip python-devel 备注:不安装python-devel的话,pynum安装就会报错.这是一个py下的数学计算扩展包. 3.tensorflow 终于开始安装它本身了. tensorflow 安装命令:pip ins

【OS】NMON的简介和使用

[OS]NMON的简介和使用 目前NMON已开源,以sourceforge为根据地,网址是http://nmon.sourceforge.net. 1. 目的 本文介绍操作系统监控工具Nmon的概念.使用方式及使用参数.指导运维人员通过nmon工具监视AIX/Linux操作系统资源使用情况,收集监控结果及产生的数据文件,制作相关系统性能分析报告. 2. Nmon简介 Nmon (Nigel's Monitor)是由IBM 提供.免费监控 AIX 系统与 Linux 系统资源的工具.该工具可将服务

TensorFlow教程之新手入门 1.2下载及安装

本文档为TensorFlow参考文档,本转载已得到TensorFlow中文社区授权. 下载与安装 你可以使用我们提供的二进制包, 或者使用源代码, 安装 TensorFlow. 二进制安装 TensorFlow Python API 依赖 Python 2.7 版本. 在 Linux 和 Mac 下最简单的安装方式, 是使用 pip 安装. 如果在安装过程中遇到错误, 请查阅 常见问题. 为了简化安装步骤, 建议使用 virtualenv, 教程见 这里. Ubuntu/Linux # 仅使用

《Web安全之机器学习入门》一 2.2 TensorFlow简介与环境搭建

2.2 TensorFlow简介与环境搭建 TensorFlow是一个采用数据流图.用于数值计算的开源软件库(见图2-5).节点在图中表示数学操作,图中的线则表示在节点间相互联系的多维数据数组,即张量.它灵活的架构使你可以在多种平台上展开计算,例如台式计算机中的一个或多个CPU(或GPU). 服务器.移动设备等等.TensorFlow 最初由Google大脑小组(隶属于Google机器智能研究机构)的研究员和工程师们开发出来,用于机器学习和深度神经网络方面的研究,但这个系统的通用性使其也可广泛用

tensorflow centos 安装

安装过程 目前较为稳定的版本为 0.12,本文以此为例.其他版本请读者自行甄别安装步骤是否需要根据实际情况修改. TensorFlow 支持以下几种安装方式: PIP 安装 源码编译安装 Docker 镜像安装 PIP 安装 PIP 是一种包管理系统,用于安装和管理用 Python 写的软件包. -- [ Python PIP ] 安装 PIP # Ubuntu/Linux 64-bit $ sudo apt-get install python-pip python-dev # CentOS,

TensorFlow学习笔记之二——安装和运行

通过阅读TensorFlow的论文和相关博文之后,接下来,对TensorFlow进行一个简单的初步运行. 1.安装了Ubuntu 16.04.(ubuntu-16.04-desktop-amd64.iso) 2.sudo apt-get update 3.# Ubuntu/Linux 64-bit     $ sudo apt-get install python-pip python-dev 4.# Ubuntu/Linux 64-bit, CPU only:     $ sudo pip i

[译]搭建个人深度学习平台:GTX 1080 + Ubuntu 16.04 + CUDA 8.0RC + CuDNN 7 + Tensorflow/Mxnet/

本文讲的是[译]搭建个人深度学习平台:GTX 1080 + Ubuntu 16.04 + CUDA 8.0RC + CuDNN 7 + Tensorflow/Mxnet/, 原文地址:Build Personal Deep Learning Rig: GTX 1080 + Ubuntu 16.04 + CUDA 8.0RC + CuDnn 7 + Tensorflow/Mxnet/Caffe/Darknet 原文作者:Guanghan Ning 译文出自:掘金翻译计划 本文永久链接:github

使用IBM Smart Analytics System 5710部署数据集市应用

本文,主要为大家介绍了面向数据集市.ODS 应用的 ISAS5710 系统,并以 ISAS5710 Medium 系统为例,重点为大家介绍了如何安装.配置 ISAS5710 系统:如何设计.部署用户数据集市数据库及相关的分析应用,以帮助大家快速掌握利用 ISAS5710 快速部署数据集市应用的基本方法. 随着用户业务系统的不断完善,市场竞争的日益激烈,越来越多的企业都在建设数据仓库.数据集市.ODS 系统来分析用户的需求.优化企业的运行.发现更多的市场机会.在竞争中处于领先地位.当用户实施一个数

TensorFlow中文社区---下载与安装

转自:http://www.tensorfly.cn/tfdoc/get_started/os_setup.html 下载与安装 你可以使用我们提供的二进制包, 或者使用源代码, 安装 TensorFlow. 二进制安装 TensorFlow Python API 依赖 Python 2.7 版本. 在 Linux 和 Mac 下最简单的安装方式, 是使用 pip 安装. 如果在安装过程中遇到错误, 请查阅 常见问题. 为了简化安装步骤, 建议使用 virtualenv, 教程见 这里. Ubu