You are here: everRun User's Guide > Managing External Storage > Adding or Removing External Storage LUNs

Adding or Removing External Storage LUNs

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. In order for everRun to recognize the changes, you must configure the host OS (CentOS), as described in the following sections.

Adding 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.

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.

Removing External Storage LUNs

The instructions examples that follow remove a LUN (called LUN4) from your everRun system's host adapters (called host7 and host8).

  1. Begin from the command line of your everRun system's node0.
  2. 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

  3. Using your storage system's software, unmap LUN4 from the storage array.
  4. 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

  5. Issue the multipath command:
    multipath
  6. Issue the multipath -ll command and verify that the removed LUN no longer appears in the output.
  7. Repeat steps 4 through 6 on node 1.

See the following links for more detailed information.

Related Topics

External Storage

Managing External Storage

of