HP-UX disk multipathing health status

Sometimes it is required not only to monitor disks/luns attached to machine but also status of those disks. Status of disks means the path available to disks/LUNS e.g say disk/LUN "A" and how many paths to disk/LUN "A".

Below CLI lists disks attached to HP-UX machine,

bash-2.05b# ioscan -fnC disk
Class     I  H/W Path  Driver S/W State   H/W Type     Description
disk      0  0/0/0/2/0/0/0.0.0              sdisk   CLAIMED     DEVICE       HP      LOGICAL VOLUME
  /dev/dsk/c0t0d0     /dev/dsk/c0t0d0s1   /dev/dsk/c0t0d0s2   /dev/dsk/c0t0d0s3   /dev/rdsk/c0t0d0    /dev/rdsk/c0t0d0s1  /dev/rdsk/c0t0d0s2  /dev/rdsk/c0t0d0s3
disk     13  0/0/0/5/0/0/   sdisk   CLAIMED     DEVICE    XXX     XXX
                      /dev/dsk/c3t0d0   /dev/rdsk/c3t0d0
disk     14  0/0/0/5/0/0/   sdisk   CLAIMED     DEVICE    XXX     XXX
                      /dev/dsk/c3t0d1   /dev/rdsk/c3t0d1
disk     15  0/0/0/5/0/0/   sdisk   CLAIMED     DEVICE    XXX     XXX
                      /dev/dsk/c3t0d2   /dev/rdsk/c3t0d2
disk     16  0/0/0/5/0/0/   sdisk   CLAIMED     DEVICE    XXX     XXX
                      /dev/dsk/c3t0d3   /dev/rdsk/c3t0d3


Mapping to legacy DSF to that of persistent DSF is already covered in one of the older posts, HP-UX disk mapping between persistent and legacy DSF

Now in order to view health of all LUNS we can use same ioscan CLI,

bash-2.05b# ioscan -P health -C disk
Class     I  H/W Path  health
disk     23  64000/0xfa00/0x1   online
disk     24  64000/0xfa00/0x3   online
disk     25  64000/0xfa00/0x4   online
disk     26  64000/0xfa00/0x5   online


Now considering there are multiple paths to the LUNS their status is equally important for high availability of data. To get the status of all lunpaths to the disks or luns attached to the HP-UX server we will use same ioscan CLI with slightly different syntax,

bash-2.05b# ioscan -P health -C lunpath
Class     I  H/W Path  health
lunpath   0  0/0/0/2/0/0/0.0x0.0x0  online
lunpath   1  0/0/0/2/0/0/0.0x0.0x4000000000000000  online
lunpath  16  0/0/0/5/0/0/0.0x5000097408159d20.0x0  online
lunpath  21  0/0/0/5/0/0/0.0x5000097408159d20.0x1000000000000  online
lunpath  22  0/0/0/5/0/0/0.0x5000097408159d20.0x2000000000000  online
lunpath  23  0/0/0/5/0/0/0.0x5000097408159d20.0x3000000000000  online

We can observe that status of lunpath is online. For more status strings check out ioscan man page.

Don't be left Behind!
Sign up for daily updates delivered directly to your inbox.
Mandar Pise Opinions expressed by techsutram contributors are their own. More details

Mandar is a seasoned software professional & Fintech, Cloud, IoT, and Blockchain enthusiast. He writes to benefit others from his experiences. His overall goal is to help people learn about Fintech, Cloud, IoT, AI and Blockchain, and the effects they will have economically and socially in the future.

No comments:

Post a Comment

    Your valuable comments are welcome. (Moderated)