Use your storage array's software to map a new LUN to the everRun system or to remove a LUN. However, everRun software does not automatically detect the addition or removal of external storage LUNs.
Each time you map an external storage system LUN to your everRun system, you must add the new LUN and perform a manual rescan of the host adapters on your everRun system. The procedures to add LUN0 and to add LUN1 (or greater) are different; follow the procedure appropriate for your configuration.
To add LUN0, you must first remove LUNZ.
Issue the following command to identify LUNZs.
lsscsi
The following is sample output:
Issue echo commands. First, issue the commands to remove LUNZs, as in the following example commands:
echo 1 > /sys/class/scsi_device/1:0:0:0/device/delete
echo 1 > /sys/class/scsi_device/1:0:1:0/device/delete
echo 1 > /sys/class/scsi_device/6:0:0:0/device/delete
echo 1 > /sys/class/scsi_device/1:0:1:0/device/delete
Then, issue echo commands to rescan, in order to discover new LUNs, as in the following example commands:
echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host6/scan
The instructions and examples that follow assume that you have used your storage array's software to map a new LUN (called LUN4) to the everRun system's host adapters (called host7 and host8).
Begin from the command line of your everRun system's node0.
Re-scan each HBA port (host7 and host8) by issuing commands in the form of:
echo 'Channel' 'Port' 'LUN' > /sys/class/scsi_host/host(host adapter)/scan
Specifically:
echo "0 0 4" > /sys/class/scsi_host/host7/scan
echo "0 1 4" > /sys/class/scsi_host/host7/scan
echo "0 0 4" > /sys/class/scsi_host/host8/scan
echo "0 1 4" > /sys/class/scsi_host/host8/scan
Now issue the multipath command to detect the paths to the newly added LUN.
Issue the following command:
multipath -ll
LUN4 will now appear as shown in the excerpt from the multipath -ll output below.
mpathg (36006016007713c003e136e550d96409f) dm-31 DGC,VRAID
size=10G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 7:0:0:4 sdr 65:16 active ready running
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 7:0:1:4 sds 65:32 active ready running
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 8:0:0:4 sdt 65:48 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 8:0:1:4 sdu 65:64 active ready running
See https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Online_Storage_Reconfiguration_Guide/adding_storage-device-or-path.html for complete details.
The instructions examples that follow remove a LUN (called LUN4) from your everRun system's host adapters (called host7 and host8).
Issue the multipath -ll command to determine the device names associated with LUN4.
The following excerpt of the output of this command shows that sdr, sds, sdt, and sdu devices are associated with LUN4
mpathf (36006016007713c0003ca6855c13c4049) dm-27 DGC,VRAID
size=10G features='0' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=1 status=active
| `- 7:0:0:4 sdr 65:16 active ready running
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 7:0:1:4 sds 65:32 active ready running
|-+- policy='round-robin 0' prio=1 status=enabled
| `- 8:0:0:4 sdt 65:48 active ready running
`-+- policy='round-robin 0' prio=1 status=enabled
`- 8:0:1:4 sdu 65:64 active ready running
Issue the following commands to remove the sdr, sds, sdt, and sdu devices from your everRun system.
echo offline > /sys/block/sdr/device/state
echo 1 > /sys/block/sdr/device/delete
echo offline > /sys/block/sds/device/state
echo 1 > /sys/block/sds/device/delete
echo offline > /sys/block/sdt/device/state
echo 1 > /sys/block/sdt/device/delete
echo offline > /sys/block/sdu/device/state
echo 1 > /sys/block/sdu/device/delete
See the following links for more detailed information.
Related Topics
Product Support and Downloads
|
About Stratus
|
Product Documentation (PDF Format)
|
About Help
|