Adding Links
Using AIX as example, this section describes how to add links by commands only based on system reliability requirements.
Prerequisites
- The necessary hardware has been installed and cables have been connected on the storage system.
- UltraPath has been installed on the application server.
Procedure
- Log in to the CLI of the storage system.
- Check the host-to-storage HBA link status.
- Run the show port general command to check the Fibre Channel link status of the front-end ports on the storage system.
If the Running Status value is Link up, the link connection is normal.
- Run the show initiator command to check whether the storage system is able to obtain the information about the host's initiator.
- Run the show port general command to check the Fibre Channel link status of the front-end ports on the storage system.
- View the original system information.
- Run the show mapping_view general command to view information about existing mapping views. Record the ID of the mapping view to be expanded.
- Run the show mapping_view port_group and show mapping_view host_group commands respectively to view and record the IDs of the port groups and host groups in the mapping view.
- Run the show host_group host command to view and record the host ID based on the obtained host group ID.
- Run the show initiator and show port_group port commands respectively to view and record the initiator and port information.
The initiator's WWN should be the same as planned.
- Expand the reliability on the storage system.
- If WWNs are to be added to an existing host group, run the add host initiator command to add initiators to the corresponding hosts.
- If ports are to be added to an existing port group, run the add port_group port command to add ports to the port group.
- Check whether the expansion succeeds.
- For expansion based on WWNs, run the show initiator command to check whether the hosts contain the corresponding added initiators.
- For expansion based on ports, run the show port_group port command to check whether the port group contains the added ports.
- Identify the added objects on the application server.
- Back up the disk and volume group (VG) information.
- Run the lsdev -Cc disk and lsdev -Cc disk | wc -l commands to scan for disks in the host.
- Run the lspv and lsvg commands to back up the physical volume (PV) and VG information.
- Run the cfgmgr -vl fcsX command to scan for the HBAs connected to the storage system and identify system devices.
Replace X with a fiber adapter ID.
- Run the lsdev -Cc disk and lsdev -Cc disk | wc -l commands to check whether the number of newly generated device files is the same as expected and whether the vendor is Huawei.
- Back up the disk and volume group (VG) information.
- Configure UltraPath virtual disks.
- Run the upadm show path command to check the disk path status.
If a link is in the Degrade status, run the upadm set phypathnormal command to handle the issue.
- Run the upadm show path command to check the disk path status.
- Run the upadm show iostat command to view the VLUN status of the I/Os to be monitored.
If I/Os are evenly distributed to all paths and no errors are reported in a duration of 30 seconds, press Ctrl+C to exit the monitoring.
- Run the errpt and errpt -a commands to check for any errors during disk allocation by the host.
Handle the errors before proceeding to use the storage space.