Below I will provide several systems and how to detect host information.
Checking the host information includes checking the information about the configuration, multipathing software, and aggregated disks of a host. This section describes how to check the host information on different operating systems such as Windows, Linux, AIX, andHP-UX.
On Windows
You can check whether UltraPath is working properly by viewing the information about physical paths, logical paths, virtual disk properties, performance statistics and alarms on the CLI or GUI ofUltraPath.
1. Check the physical path status.
In the CMD window, run the upadm show path command to check the status of a specified or all physical paths, including the working status as well as the storage system, controller and HBA to which the physical paths belong.
2. Check the virtual disk information.
In the CMD window, run the upadm show vlun command to check the information about all LUNs or a specified virtual disk, including VLUN IDs, hos tLUN IDs, disk names, VLUN names, VLUN WWNs, VLUN status, capacities, their controllers, storage device names, storage SNs, logical path IDs and working status.
3. Check the performance statistics.
In the CMD window, run the upadm show iostat command to check the performance statistics information about a storage system or VLUN, including the IOPS and bandwidth.
4. Check theUltraPath configuration.
In the CMD window, run the upadm show upconfig command to check the UltraPath configuration.
On Linux
1. Check whether the multipathing software is installed.
Run the rpm-qa | grep UltraPath command to check whether the UltraPath is installed properly. If the UltraPath information is displayed, UltraPath is installed.
2. Check the physical path status.
Run the upadminshow path command to check the information about a specified or allphysical paths, including physical path IDs, initiator WWNs, storage systemname, controllers, target WWNs, physical path status, path detection type, pathdetection status and port type.
3. Check the virtual disk information.
Run the upadminshow vlun command to check the information about all LUNs or aspecified virtual disk, including VLUN IDs, disk names, VLUN names, VLUN WWNs,VLUN status, capacities, their controllers, storage device names, storage SNs,logical path IDs, and working status.
4. Check the logical path status.
Run the upadminshow vlun id=? command to check the information about the logical path of a VLUN whose ID is specified, including logical path ID, SCSI address and path status.
5. Check the UltraPath configuration.
Run the upadminshow upconfig command to check the UltraPath configuration.
On AIX
1. Check the physical path status.
a) Run the upadmshow phypath command to check the information about a specified or all physical paths, including physical path IDs, initiator WWNs, storage systemname, controllers, target WWNs, physical path status, path detection type, pathdetection status and port type.
b) Run the upadmstart phypathcheck id=? command to check the working status of a specified physical path.
2. Check the logical path status.
Run the upadmshow path command to check the information about all logical paths ora specified VLUN's logical paths. The information includes VLUN IDs, logical path IDs, physical path IDs, initiator WWNs, storage system name, controller, target WWNs, logical path status and port type.
3. Check the virtual disk information.
Run the upadmshow vlun to view the information about a specified or all VLUNs mapped from the storage system to the application server. The information includes VLUN IDs, host LUN IDs, disk names, VLUN names, LUN WWNs, VLUN status,VLUN capacities, owning/active controller, storage system name and storage SN.
4. Check the performance statistics.
Run the upadmshow iostat command to view the IOPS and bandwidth information aboutthe storage system or a VLUN.
5. Check the UltraPath configuration.
Run the upadmshow upconfig command to check the UltraPath configuration.
On HP-UX
HP-UX11.31 is delivered with the NMP multipathing software. The NMP multipathing software is installed upon the system installation.
1. Check the NMP status and ensure that it is enabled.
Run the scsimgrget_attr -a leg_mpath_enable command to check the NMP status.
2. Check the disksthat the system discovers and check the NMP status of LUNs that are mapped.
a) Run the ioscan-funNC disk command to check the LUNs that are mapped.
b) Run the scsimgrget_attr -D diskname -a leg_mpath_enable command. In the command, diskname indicates the name of the device to which the system allocates the LUNs to.
3. Check the disk path information after the NMP takes over the disks.
Run the scsimgrlun_map -D ? and scsimgr get_info -D ? commands to check the disk path information after the NMP takes over the disks.
In the preceding command output, focus on the following content:
- State: indicates the state of a path. Ensure that the states of two paths are ACTIVE before using them.
- I/O load balance policy: indicates the load balancing mode. By default, if ALUA is disabled on the storage system, the load balancing mode of the NMP is round_robin.
- Asymmetric logical unit access supported: indicates that LUNs support the ALUA mode. If ALUA is enabled, the supported ALUA type will be displayed (implicit or explicit ALUA).
4. After the NMP takes over the disks, find the disk device name and perform the read and write operations.
a) Run the newfs-F vxfs -o largefiles ? command to create a file system.
b) Run the mount diskname mountpoint command to mount the file system to a specified directory.
c) Run the bdf commandto check the read and write information.