Operating System - HP-UX
1752555 Members
5147 Online
108788 Solutions
New Discussion

identify free disks in a vm host

 
silusan
Regular Advisor

identify free disks in a vm host

We have a vm host with 11.31 VSE

We created and installed one 11.31 vm guest on it.

 

Below are the details from the vm host. I need to understand the already assigned disks and free disks in the vm host..so that I want to create another vm guest.

I am confused with the rscsi disks I see and various outputs of various options in ioscan.

 

I really want to know if there any free disks in this vm host. Please suggest. Thank you.

 

vmhost:/ # hpvmstatus
[Virtual Machines]
Virtual Machine Name VM #  OS Type State     #VCPUs #Devs #Nets Memory  Rmt Host
==================== ===== ======= ========= ====== ===== ===== ======= ========
vmguest          3 HPUX    On (OS)        4     2     1   16 GB        -
vmhost:/ #
vmhost:/ # hpvmstatus -P vmguest -d
[Virtual Machine Devices]

[Storage Interface Details]
disk:scsi:0,0,0:disk:/dev/rdsk/c6t0d1
disk:scsi:0,0,1:disk:/dev/rdisk/disk8

[Network Interface Details]
network:lan:0,1,0x92B4772E67DF:vswitch:vs1414:portid:1

[Misc Interface Details]
serial:com1::tty:console
vmhost:/ #
vmhost:/ # evainfo -v
EVAInfo v7.0_070614
vmhost:/ #
vmhost:/ # evainfo -a
Devicefile                      Array                   WWNN                            Capacity        Controller/Port/Mode
/dev/rdsk/c2t0d1        5001-4380-1136-F3B0 6001-4380-09B0-22C9-0000-4000-03FB-0000      524288MB       Ctl-B/FP-1/Optimized
/dev/rdsk/c4t0d1        5001-4380-1136-F3B0 6001-4380-09B0-22C9-0000-4000-03FB-0000      524288MB       Ctl-B/FP-1/Optimized
/dev/rdsk/c8t0d1        5001-4380-1136-F3B0 6001-4380-09B0-22C9-0000-4000-03FB-0000      524288MB       Ctl-B/FP-1/Optimized
/dev/rdsk/c10t0d1       5001-4380-1136-F3B0 6001-4380-09B0-22C9-0000-4000-03FB-0000      524288MB       Ctl-B/FP-1/Optimized
vmhost:/ #
vmhost:/ # 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/c0t0d0s3   /dev/rdsk/c0t0d0s2
                      /dev/dsk/c0t0d0s1   /dev/rdsk/c0t0d0    /dev/rdsk/c0t0d0s3
                      /dev/dsk/c0t0d0s2   /dev/rdsk/c0t0d0s1
disk      3  0/0/0/7/0/0/0.117.128.64.0.0.1  sdisk   NO_HW       DEVICE       HP      OPEN-V
                      /dev/dsk/c6t0d1   /dev/rdsk/c6t0d1
disk      1  0/0/0/7/0/0/0.123.34.0.0.0.1    sdisk   CLAIMED     DEVICE       HP      HSV360
                      /dev/dsk/c2t0d1   /dev/rdsk/c2t0d1
disk      2  0/0/0/7/0/0/0.123.50.0.0.0.1    sdisk   CLAIMED     DEVICE       HP      HSV360
                      /dev/dsk/c4t0d1   /dev/rdsk/c4t0d1
disk      6  0/0/0/9/0/0/0.118.128.64.0.0.1  sdisk   NO_HW       DEVICE       HP      OPEN-V
                      /dev/dsk/c12t0d1   /dev/rdsk/c12t0d1
disk      4  0/0/0/9/0/0/0.124.34.0.0.0.1    sdisk   CLAIMED     DEVICE       HP      HSV360
                      /dev/dsk/c8t0d1   /dev/rdsk/c8t0d1
disk      5  0/0/0/9/0/0/0.124.50.0.0.0.1    sdisk   CLAIMED     DEVICE       HP      HSV360
                      /dev/dsk/c10t0d1   /dev/rdsk/c10t0d1
vmhost:/ #
vmhost:/ # ioscan -fnkNC disk
Class     I  H/W Path  Driver S/W State   H/W Type     Description
===================================================================
disk      7  64000/0xfa00/0x1  esdisk   CLAIMED     DEVICE       HP      LOGICAL VOLUME
                      /dev/disk/disk7      /dev/rdisk/disk7
                      /dev/disk/disk7_p1   /dev/rdisk/disk7_p1
                      /dev/disk/disk7_p2   /dev/rdisk/disk7_p2
                      /dev/disk/disk7_p3   /dev/rdisk/disk7_p3
disk      8  64000/0xfa00/0x4  esdisk   CLAIMED     DEVICE       HP      HSV360
                      /dev/disk/disk8   /dev/rdisk/disk8
disk      9  64000/0xfa00/0x5  esdisk   NO_HW       DEVICE       HP      OPEN-V
                      /dev/disk/disk9      /dev/rdisk/disk9
                      /dev/disk/disk9_p1   /dev/rdisk/disk9_p1
                      /dev/disk/disk9_p2   /dev/rdisk/disk9_p2
                      /dev/disk/disk9_p3   /dev/rdisk/disk9_p3
vmhost:/ #


vmhost:/ # ioscan -m dsf
Persistent DSF           Legacy DSF(s)
========================================
/dev/pt/pt_disk4         /dev/rscsi/c1t0d0
                         /dev/rscsi/c3t0d0
                         /dev/rscsi/c7t0d0
                         /dev/rscsi/c9t0d0
/dev/pt/pt_disk3         /dev/rscsi/c1t0d0
                         /dev/rscsi/c3t0d0
                         /dev/rscsi/c7t0d0
                         /dev/rscsi/c9t0d0
/dev/pt/pt7              /dev/rscsi/c1t0d0
                         /dev/rscsi/c3t0d0
                         /dev/rscsi/c7t0d0
                         /dev/rscsi/c9t0d0
/dev/rdisk/disk7         /dev/rdsk/c0t0d0
/dev/rdisk/disk7_p1      /dev/rdsk/c0t0d0s1
/dev/rdisk/disk7_p2      /dev/rdsk/c0t0d0s2
/dev/rdisk/disk7_p3      /dev/rdsk/c0t0d0s3
/dev/pt/pt_disk5         /dev/rscsi/c5t0d0
                         /dev/rscsi/c11t0d0
/dev/pt/pt8              /dev/rscsi/c5t0d0
                         /dev/rscsi/c11t0d0
/dev/rdisk/disk8         /dev/rdsk/c2t0d1
                         /dev/rdsk/c4t0d1
                         /dev/rdsk/c8t0d1
                         /dev/rdsk/c10t0d1
/dev/rdisk/disk9         /dev/rdsk/c6t0d1
                         /dev/rdsk/c12t0d1
vmhost:/ #

4 REPLIES 4
Dave Olker
HPE Pro

Re: identify free disks in a vm host

You can use the hpvmdevinfo command to show the mapping of disks on the VM Host and their associated devices configured on the guests.  Also, if you're not using AVIO or NPIV (based on which version of HPVM you're running) for your disks you should consider moving to AVIO and stop using the legacy SCSI driver.

 

Dave

I work for HPE

[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
silusan
Regular Advisor

Re: identify free disks in a vm host

What disks are local?

whatr disks are from SAN

What disks are in use by vmhost itself and the existing  vmguest

what disks are free to use?

 

Hello Dave

 

hpvmdevinfo gives the same info as "hpvmstatus -P <guestname> -d"

 

also I am not sure about the legacy scsi driver in this vmhost.

 

All I need is to see if there are any free disks i this vmhost - if I have any free disks...then I would like to create a new vm guest.

If I do not have any free disks - then I will go to storage team for allocating a few LUNS.

But before going to them - I would like to check - what disks I have in this vmhost.

 

vmhost # hpvmstatus -P vmguest -d
disk:scsi:0,0,0:disk:/dev/rdsk/c6t0d1
disk:scsi:0,0,1:disk:/dev/rdisk/disk8
vmhost #
vmhost # hpvmdevinfo
Virtual Machine Name    Device Type     Bus,Device,Target       Backing Store Type      Host Device Name        Virtual Machine Device Name
====================    ===========     =================       ==================      ================        ===========================
vmguest          disk            [0,0,0]                 disk                    /dev/rdsk/c6t0d1        Not available
vmguest          disk            [0,0,1]                 disk                    /dev/rdisk/disk8        Not available
vmhost #

vmhost # swlist |grep -i integrity
  T2767CC                               B.04.30        Integrity VM
  VMGuestLib                            B.04.30        Integrity VM Guest Support Libraries
  VMGuestSW                             B.04.30        Integrity VM Guest Support Software
  VMKernelSW                            B.04.20        Integrity VM Kernel Software
vmhost #
vmhost # swlist|grep -i environment
  HPUX11i-VSE-OE                        B.11.31.1109   HP-UX Virtual Server Operating Environment
  HPUXMinRuntime                        B.11.31        Minimum Runtime Environment
vmhost #

 

vmhost # swlist | grep -i avio
  GuestAVIOStor                         B.11.31.1109   HPVM Guest AVIO Storage Software
  GuestAvioLan                          B.11.31.1109   HPVM Guest AVIO LAN Software
  HostAVIOStor                          B.11.31.1109   HPVM Host AVIO Storage Software
  HostAvioLan                           B.11.31.1109   HPVM Host AVIO LAN Software
vmhost #

 

vmhost # swlist | grep -i scsi
  SerialSCSI-00                         B.11.31.1103   PCI-X/PCI-E SerialSCSI
  scsiU320-00                           B.11.31.1109   PCI-X SCSI U320;Supptd HW=A7173A/AB290A
vmhost #

Matti_Kurkela
Honored Contributor

Re: identify free disks in a vm host

> What disks are local?

> what disks are from SAN?

 

The disk described as HP LOGICAL VOLUME is most likely local: it seems to be a logical disk created by the integrated hardware RAID controller. Depending on the controller type, either "sautil" or "sasmgr" commands could be used to get more information about it (i.e. how many physical disks it encompasses, which RAID level is used, is there any spare/unused physical disks, etc.). It has the legacy device name /dev/[r]dsk/c0t0d0, and the agile (new-style) device name /dev/[r]disk/disk7.

 

The presence of partitions (c0t0d0s[1-3] in legacy naming, disk7_p[1-3] in agile naming) indicates this is a system disk, probably for the VM host. You can run "setboot" without any options to see the current boot path of the VM host to confirm this.

 

 

The "evainfo" command indicates all the legacy paths /dev/[r]dsk/c2t0d1, /dev/[r]dsk/c4t0d1, /dev/[r]dsk/c8t0d1 and /dev/[r]dsk/c10t0d1 all refer to the same SAN LUN, as they all have the same array ID and WWNN. This is also confirmed by the agile disk device, as all the four LUN paths are presented as a single multipathed device: /dev/[r]disk/disk8. According to the hpvmstatus output, this disk is assigned to the "vmguest" VM. Since it is not partitioned, it is probably used as an application/data disk.

 

 

There are also traces of another SAN LUN, which used to have legacy paths /dev/[r]dsk/c6t0d1 and /dev/[r]dsk/c12t0d1. Its corresponding agile device was /dev/[r]disk/disk9. Unfortunately, that LUN is currently in NO_HW state, meaning that it is not accessible. This LUN was also partitioned, and according to the hpvmstatus output, was probably the system disk of the "vmguest" VM... so that's kind of bad news for that VM.

 

 

The /dev/rscsi/* (legacy) and /dev/pt/* (agile) devices would all be SCSI pass-through devices. They must be created by the sysadmin with the mksf command if raw SCSI access is required. If the creator of these device nodes was following the standard practices, these would seem to refer to SCSI devices that are either not disks or no longer accessible. But since /dev/pt/pt_disk4, /dev/pt/pt_disk3 and /dev/pt/pt7 all seem to point to the same legacy SCSI pass-through devices, I think the creator of these devices might have been a bit confused...

 

The SCSI pass-through devices don't seem to be included in the vmguest VM configuration.

 

In general, the pass-through devices could be used for certain special tasks:

  • low-level SCSI device diagnostics and/or firmware updates, if manufacturer-specific software was available
  • control of a tape library robot arm, if the backup software directly generates the necessary SCSI commands (like the Symantec NetBackup does) instead of using the HP [e]schgr driver.
  • writing of CDs/DVDs/BluRay discs in a SCSI-connected CD/DVD/BluRay writer.

 

In short: I see no free disks in this VM host.

Also it seems to me that the system disk of the vmguest VM is in NO_HW state, which indicates the VM might have problems booting, and/or it might hang if something needs to access the system disk.

MK
silusan
Regular Advisor

Re: identify free disks in a vm host

Thank you so much MK

 

I am not clear with this part though:

/dev/pt/pt_disk4         /dev/rscsi/c1t0d0

/dev/pt/pt_disk3         /dev/rscsi/c1t0d0

 

I understood the other outputs and I have informed our storage team that the there are no free disks in this vm hosts - rather confidently :-)