Hello all,
Checking the host information includes checking the information about the configuration, multipathing software, and aggregated disks of a host. This post describes how to check the host information in different operating systems such as Windows, Linux, AIX, and HP-UX.
In Windows
You can check whether UltraPath is working properly by viewing information about physical paths, logical paths, virtual disk properties, performance statistics, and alarms on the CLI or GUI of UltraPath.
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, host LUN IDs, disk names, VLUN names, VLUN WWNs, VLUN status, capacities, 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 the UltraPath configuration.
In the CMD window, run the upadm show upconfig command to check the UltraPath configuration.
In 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 upadmin show path command to check the information about a specified or all physical paths, including physical path IDs, initiator WWNs, storage system name, controllers, target WWNs, physical path status, path detection type, path detection status, and port type.
3. Check the virtual disk information.
Run the upadmin show vlun command to check the information about all LUNs or a specified virtual disk, including VLUN IDs, disk names, VLUN names, VLUN WWNs, VLUN status, capacities, storage device names, storage SNs, logical path IDs, and working status.
4. Check the logical path status.
Run the upadmin show 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 upadmin show upconfig command to check the UltraPath configuration.
In AIX
1. Check the physical path status.
a. Run the upadm show phypath command to check the information about a specified or all physical paths, including physical path IDs, initiator WWNs, storage system name, controllers, target WWNs, physical path status, path detection type, path detection status, and port type.
b. Run the upadm start phypathcheck id=? command to check the working status of a specified physical path.
2. Check the logical path status.
Run the upadm show path command to check the information about all logical paths or a specified VLUN's logical paths. The information includes VLUN IDs, logical path IDs, physical path IDs, initiator WWNs, storage system name, target WWNs, logical path status, and port type.
3. Check the virtual disk information.
Run the upadm show 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, storage system name, and storage SN.
4. Check the performance statistics.
Run the upadm show iostat command to view the IOPS and bandwidth information about the storage system or a VLUN.
5. Check the UltraPath configuration.
Run the upadm show upconfig command to check the UltraPath configuration.
In 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 scsimgr get_attr -a leg_mpath_enable command to check the NMP status.
2. Check the disks that 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 scsimgr get_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.
3. Check the disk path information after the NMP takes over the disks.
Run the scsimgr lun_map -D ? and scsimgr get_info -D ? commands to check the disk path information after the NMP takes over the disks.
bash-4.0# scsimgr lun_map -D /dev/rdisk/disk60
LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk60
Total number of LUN paths = 2
World Wide Identifier(WWID) = 0x633383110030333807b9074d0000010a
LUN path : lunpath39
Class = lunpath
Instance = 39
Hardware path = 0/0/0/7/0/0/1.0x2019333831303338.0x4002000000000000
SCSI transport protocol = fibre_channel
State = ACTIVE
Last Open or Close state = ACTIVE
LUN path : lunpath40
Class = lunpath
Instance = 40
Hardware path = 0/0/0/7/0/0/0.0x2009333831303338.0x4002000000000000
SCSI transport protocol = fibre_channel
State = ACTIVE
Last Open or Close state = ACTIVE
bash-4.0#
bash-4.0# scsimgr get_info -D /dev/rdisk/disk60
STATUS INFORMATION FOR LUN : /dev/rdisk/disk60
Generic Status Information
SCSI services internal state = ONLINE
Device type = Direct_Access
EVPD page 0x83 description code = 1
EVPD page 0x83 description association = 0
EVPD page 0x83 description type = 3
World Wide Identifier (WWID) = 0x633383110030333807b9074d0000010a
Serial number = "s3900develop004723900266"
Vendor id = "HUAWEI "
Product id = "S3900-M200 "
Product revision = "2102"
Other properties = ""
SPC protocol revision = 4
Open count (includes chr/blk/pass-thru/class) = 1
Raw open count (includes class/pass-thru) = 0
Pass-thru opens = 0
LUN path count = 2
Active LUN paths = 2
Standby LUN paths = 0
Failed LUN paths = 0
Maximum I/O size allowed = 2097152
Preferred I/O size = 2097152
Outstanding I/Os = 0
I/O load balance policy = round_robin
Path fail threshold time period = 0
Transient time period = 120
Tracing buffer size = 1024
LUN Path used when policy is path_lockdown = NA
LUN access type = NA
Asymmetric logical unit access supported = No
Asymmetric states supported = NA
Preferred paths reported by device = No
Preferred LUN paths = 0
Driver esdisk Status Information :
Capacity in number of blocks = 4194304
Block size in bytes = 512
Number of active IOs = 0
Special properties =
Maximum number of IO retries = 45
IO transfer timeout in secs = 30
FORMAT command timeout in secs = 86400
START UNIT command timeout in secs = 60
Timeout in secs before starting failing IO = 120
IO infinite retries = false
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 disks, find the disk device name and perform read and write operations.
Run the newfs -F vxfs -o largefiles ? command to create a file system.
Run the mount diskname mountpoint command to mount the file system to a specified directory.
Run the bdf command to check the read and write information.
bash-4.0# newfs -F vxfs -o largefiles /dev/rdisk/disk60
version 7 layout
2097152 sectors, 2097152 blocks of size 1024, log size 16384 blocks
largefiles supported
bash-4.0#
bash-4.0# mount /dev/disk/disk60 /test/mnt3/
bash-4.0# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 314600 728296 30% /
/dev/vg00/lvol1 1835008 364368 1459224 20% /stand
/dev/vg00/lvol8 8912896 1421696 7434296 16% /var
/dev/vg00/lvol7 6553600 3037552 3488696 47% /usr
/dev/vg00/lvol4 524288 20952 499536 4% /tmp
/dev/vg00/lvol6 7864320 3071152 4760808 39% /opt
/dev/vg00/lvol5 114688 37872 76352 33% /home
/dev/vg_try/lv_try00
1228800 2447 1149713 0% /test/mnt1
/dev/vg_try/lv_try01
797845 9 718051 0% /test/mnt2
/dev/disk/disk60 2097152 18006 1949207 1% /test/mnt3
Thanks.