From Wiki-UX.info

Wiki-UX / Integrity Virtual Machines / How to get the WWID of a disk assign to an Integrity VM Guest
Jump to: navigation, search

How to get the WWID of a disk assign to an Integrity VM Guest

Abstract

This article explains how to get a disk or logical unit WWID a Integrity VM guest running HP-UX 11i v3 Operating Environment.

Contents


Background

HPVM 11.31 Guests using whole disk(s) as backing storage, the disk WWID can be obtain using the following command:

# scsimgr get_info -D  /dev/rdisk/disk11 | grep WWID
World Wide Identifier (WWID)                  = 0x006094c7c5081b4e

On the HPVM 4.1 initial release has been found that the previous command fails to provided the correct information:

# scsimgr get_info -D /dev/rdisk/disk11| grep WWID
World Wide Identifier (WWID)                  = N/A

Note that the WWID field returns N/A.

Using the hpvmstatus command in the Integrity VM host, the disk WWID can be obtained from the whole disk backing storage assigned to the Integrity VM guest.

[Storage Interface Details]
Guest                                 Physical
Device  Adaptor    Bus Dev Ftn Tgt Lun Storage   Device
======= ========== === === === === === ========= =========================
disk    scsi         0   2   0   0   0 lv        /dev/vg01/rkwhlrn11_vg00lv_1
disk    scsi         0   2   0   2   0 disk      /dev/rdisk/disk79
disk    scsi         0   2   0   3   0 disk      /dev/rdisk/disk38
disk    scsi         0   2   0   4   0 disk      /dev/rdisk/disk17
disk    scsi         0   2   0   5   0 disk      /dev/rdisk/disk18

Where disk11 on the guest corresponds to disk79 on the host.

# scsimgr get_info -D  /dev/rdisk/disk79 | grep WWID
World Wide Identifier (WWID)                  = 0x006094c7c5081b4e

The WWID is handy for identifing an specific LUN between different guests.

The following procedure explains an alternate procedure to obtain the WWID directly from the Integrity VM guest.

This procedure does not apply for virtual storage provided using logical volumes or file backing storage, because only type identifier 0x1 will return.

Using the scsimgr command on the Integrity VM guest

There is a undocumented option inquiry wwid in the scsimgr command that return both disk type identifiers. Using the output from the second identifier, :

# scsimgr inquiry wwid -D  /dev/rdisk/disk35| grep "Identifier:" | tail -1
                            Identifier: 00 60 94 c7 c5 08 1b 4e " `     N"

In the previous output, the "00 60 94 c7 c5 08 1b 4e" value corresponds to the WWID.

  • Note: To obtain a WWID with a formatting more compatible with the scsimgr get_info option, the following snap of awk code can produce the required transformation:
# scsimgr inquiry wwid -D /dev/rdisk/disk35| grep "Identifier:" | tail -1 | \
awk '{printf "0x%2s%2s%2s%2s%2s%2s%2s%2s\n", $2, $3, $4, $5, $6, $7, $8, $9}'
0x006094c7c5081b4e

Reference

  • scsimgr - SCSI Management and Diagnostics utility on HP-UX 11i v3

Authors

This page was last modified on 27 July 2010, at 04:38. This page has been accessed 4,330 times.