ehowton (ehowton) wrote,

HPVM Mapping

Not a lot is as convoluted as HP/UX pathing. It was easier with SCSI-attached drives in 9.05, but 11iv3 + AVIO + multipathing + SAN-attached storage and I always start with a headache behind my left eye and a sudden need to drink an entire bottle of Nyquil and take a nap. Mostly because I don't understand the logic behind it. You see, 0/0/0/0/0/0/0 never equals /dev/dsk/c0tod0. Add in AVIO_STOR(age) and /dev/dsk/disk0 doesn't equal what you think it should either. Its madness, and I hate it.

That said, we were working a Production Maintenance in the middle of the night here recently, and the HOWTO I'd written from the SCSI-attached storage Itanium box in my 5th-bedroom-turned-data-center didn't quite align with the external SAN array I don't own and am not running.

They say necessity is the mother of convention.

That's when I discovered hpvmdevinfo.

hpvmdevinfo essentially displays the mapping from the HPVM host and which path it is on the HPVM guest:

[/] root@belanna# hpvmdevinfo
Virtual Machine Name    Device Type   Bus,Device,Target    Backing Store Type   Host Device Name     Virtual Machine Device Name
====================    ===========   =================    ==================   ================     ===========================
vmtest                  disk          [0,0,0]              lv                   /dev/vgHPVM/rlvvm    Not available
vmtest                  disk          [0,1,1]              disk                 /dev/rdsk/disk5      /dev/rdsk/disk1

Now we can be sure when we newfs /dev/dsk/disk1 we're formatting the correct drive without having to run through all the calisthenics!

You're welcome.
Tags: hpux, unix

Posts from This Journal “hpux” Tag

  • vi[m] shortcut conquors /etc/services assininity

    SUSE Linux Enterprise Server (SLES) and OpenSUSE have recently been including, free-of-charge, the entire IANA registered port list in…


    Running no less than 7 different versions at home: eric-howtons-power-mac-g5:~ root# bash --version GNU bash, version 3.2.17(1)-release…

  • Server Porn

    Things have calmed down now that the builds are complete, the server is patched, and all the user accounts have been created. I still need to…

  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.