Replacing an HBA in a host using the CLI Advanced functions with the CLI Adding a new storage controller to a running configuration using the CLI

This task provides step-by-step instructions for replacing an HBA in a host using the CLI.

This procedure describes how to notify the SAN Volume Controller of a change to a defined host object. It is sometimes necessary to replace the HBA that connects the host to the SAN, at this time you must notify the SAN Volume Controller of the new WWPN's that this HBA contains.

Prerequisites

Ensure your switch is zoned correctly.

Steps

Perform the following steps to replace an HBA in a host using the CLI:

  1. Issue the following command to list the candidate HBA ports:
    svcinfo lshbaportcandidate
    You should see a list of the HBA ports that are available to be added to host objects. One or more of these should correspond with the one or more WWPNs that belong to the new HBA.
  2. Locate the host object that corresponds with the host in which you have replaced the HBA. The following command lists all the defined host objects:
    svcinfo lshost
    To list the WWPNs currently assigned to the host, issue the following:
    svcinfo lshost <hostobjectname>
    where <hostobjectname> is the name of the host object.
  3. Add the new ports to the existing host object by issuing the following command:
    svctask addhostport -hbawwpn <one or more existing WWPNs
    separated by :> <hostobjectname/ID>

    where <one or more existing WWPNs separated by :> correspond with those listed in step 1 and <hostobjectname/id> corresponds with the host object located in step 2.
  4. Remove the old ports from the host object by issuing the following command:
    svctask rmhostport -hbawwpn <one or more existing WWPNs
    separated by :> <hostobjectname/ID>

    where <one or more existing WWPNs separated by :> correspond with those listed in step 2 that belong to the old HBA that has been replaced.
  5. Any mappings that exist between the host object and VDisks will automatically be applied to the new WWPNs. Therefore, the host should see the VDisks as the same SCSI LUNs as before.
  6. See the IBM TotalStorage Subsystem Device Driver: User's Guide for additional information about dynamic reconfiguration.
Related topics Advanced functions with the CLI Adding a new storage controller to a running configuration using the CLI

(C) Copyright International Business Machines Corporation 2003, 2004