Scan for newly grown space on RHEL 5
10:06 PM
This documents how to scan for new LUN's on a RHEL host using qlogic HBA's
On RHEL5 Linux servers run the below steps for the newly added space to be visible after the Storage team adds the space: 1. Look for the device that the luns are on below is an example output and what to look for run the command 'multipath -ll' and get the devices on mpath ie as shown below that is sdh and sdd
2. After that rescan for the newly added space on both devices, please run the following commands:
On RHEL5 Linux servers run the below steps for the newly added space to be visible after the Storage team adds the space: 1. Look for the device that the luns are on below is an example output and what to look for run the command 'multipath -ll' and get the devices on mpath ie as shown below that is sdh and sdd
[root@iadsbrxdb06p ~]# multipath -llmpath5 (360060160b6102900fa4cb9440ef1e111) dm-5 DGC,VRAID[size=450G][features=1 queue_if_no_path][hwhandler=1 emc][rw]\_ round-robin 0 [prio=1][active] \_ 2:0:2:12 sdh 8:112 [active][ready]\_ round-robin 0 [prio=0][enabled] \_ 2:0:1:12 sdd 8:48 [active][ready][root@iadsbrxdb06p ~]# |
1. echo 1 > /sys/block/<devices from the previous step>/device/rescan (for example device from previous step would be: sdh , sdd. confirm change with dmesg )2. dmesg |grep capacity sdh: detected capacity change from 107374182400 to 214748364800 sdd: detected capacity change from 107374182400 to 2147483648003. /sbin/multipath -v 34. /sbin/service multipathd restart (to detect new LUN size)5. /sbin/multipath -ll [confirm your new lun(s) are in place]
0 comments