1752794 Members
7292 Online
108789 Solutions
New Discussion

USB disk device in HPVM

 
Dshort
Visitor

USB disk device in HPVM

I am trying to find documentation on how to present a USB flash drive (not a DVD drive) to a HPVM running HPUX11.31. My host is also HPUX11.31 with HPVM 6.30  

Here's what I've done so far without much luck in the VM:

  1. Attached the USB drive to my bl870c-i4 host server via the SUV cable and the host sees the device through ioscan. 
  2. Used hpvmmodify to modify the VM, adding an avio_stor device as a resource to the VM. 
  3. Booted the VM
  4. The VM does not see the device on boot, or after combinations of insf and ioscan from inside the VM

My customer is trying to attach this device to the VM directly to dump a database and not have to utilize a NFS mount of some sort. Any help or guidance is greatly appreciated. 

4 REPLIES 4
Dave Olker
HPE Pro

Re: USB disk device in HPVM

Have you tried adding them as a "dvd" type device instead of a "disk" type device?  Can you provide the actual syntax of the hpvmmodify command and resulting output, as well as the output of "hpvmstatus -V -P <guest>" after adding the USB device?

Dave

I work for HPE

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

Re: USB disk device in HPVM

Hey Dave, thanks for the response. I did try to add the disk as a DVD first, it was successful in terms of adding the device. But when it came to manipulating the device it was expecting 'in' or 'ej' commands to load/unload. So I whacked that. The syntax I used to add the USB disk is as follows:

hpvmmodify -P dmcpas00 -a disk:aviostor::disk:/dev/rdisk/disk3

This of course was from my blade host. That command completed successfully with the normal 'vm modified successfully' kind of thing. The other output you asked for is attached:

[dshort@lux02:/]# hpvmstatus -V -P dmcpas00
[Virtual Machine Details]
Virtual Machine Name : dmcpas00
Virtual Machine UUID : b417f464-36f9-11e5-9c02-5065f3f47c52
Virtual Machine ID : 8
Virtual Machine Label :
VM's Model Name : server Integrity Virtual Machine
VM's Serial Number : VM01530007
VM's Config Version : 6.30.5
VM's Config Label : HPVM B.06.30.05 LR ccipf opt Fri Jan 16 2015 11h48m13s IST
Virtual Machine Type : Shared
Has reserved resources : No
Configuration is active : Yes
Operating System : HPUX
OS Version Number :
State : On (OS)
Start type : Manual
Console type : vt100-plus
Guest's hostname :
Guest's vNIC IP Preference :
Guest's IPv4 address : 10.3.104.153
EFI location : /opt/hpvm/guest-images/common/efi
Pattern File location : /opt/hpvm/guest-images/common/patterns.vmmpat
vPar/VM revision : 1
Running on serverid : 0
Running on pid : 9839
Application controllers : NONE
Distributed : 0
Effective serverid : 0
Graceful stop timeout : 30
Runnable status : Runnable
Modify status : Modify
Visible status : Visible

[Online Migration Details]
Online migration status : Enabled
Init phase timeout : 90 seconds
Copy phase timeout : Infinite
I/O quiesce phase timeout: 15 seconds
Frozen phase timeout : 60 seconds
Online migration tukwila-poulson : Disabled

[Suspend/Resume Details]
Suspend status : Enabled

[Boot-time Information]
Booted HPVM Version : 6.30.5

[Remote Console]
Remote Console not configured

[Authorized Administrators]
Oper Groups :
Admin Groups :
Oper Users :
Admin Users :

[Virtual CPU Details]
Number Virtual CPUs : 2
Minimum Virtual CPUs : 2
Maximum Virtual CPUs : 2
Percent Entitlement : 10.0%
Maximum Entitlement : 100.0%
CPU OLAD operation in progress : none
CPU OLAD current operation argument : 0
CPU OLAD last operation completed : none
CPU OLAD last operation argument : 0
CPU OLAD last operation status : ok
CPU OLAD last operation error : 0

[Memory Details]
Total memory : 40 GB
Minimum memory limit : 512 MB
Maximum memory limit : 256 GB
Reserved memory : 64 MB
Minimum reserved limit : 32 MB
Maximum reserved limit : 128 GB
VHPT Size : 4 MB
Overhead memory : 384 MB

[Dynamic Memory Information]
Type : driver
Minimum memory : 512 MB
Target memory : 40954 MB
Memory entitlement : Not specified
Maximum memory : 40960 MB
Current memory : 40954 MB
Comfortable minimum : 13946 MB
Total memory : 40954 MB
Free memory : 30721 MB
Available memory : 2105 MB
Memory pressure : 0
Memory chunksize : 65536 KB
AMR chunksize : 256 MB
Driver Mode(s) : STARTED ENABLED
AMR state : DISABLED
MEM OLAD operation in progress : none
MEM OLAD current operation Base Memory argument : 0 MB
MEM OLAD current operation Floating Memory argument : 0 MB
MEM OLAD last operation completed : none
MEM OLAD last operation Base Memory argument : 0 MB
MEM OLAD last operation Floating Memory argument : 0 MB
MEM OLAD last operation status : ok
MEM OLAD last operation error : 0


[Dynamic I/O Interface Details]
IO OLAD operation in progress : none
IO OLAD current operation argument : none
IO OLAD last operation completed : none
IO OLAD last operation argument : none
IO OLAD last operation status : ok
IO OLAD last operation error : 0


[Storage Interface Details]
Device type : hba
Adapter type : avio_stor
Ioscan format : 0/0/1/0
Bus : 0
Device : 1
Function : 0
NPIV WWNs (port_id,node_id) : 0x50014C200000002C,0x50014C280000002F
Lun : 0
Physical Device : /dev/fclp4
Bandwidth Entitlement : NA

Device type : hba
Adapter type : avio_stor
Ioscan format : 0/0/2/0
Bus : 0
Device : 2
Function : 0
NPIV WWNs (port_id,node_id) : 0x50014C200000002D,0x50014C2800000030
Lun : 0
Physical Device : /dev/fclp11
Bandwidth Entitlement : NA

Device type : disk
Adapter type : avio_stor
Ioscan format : 0/0/4/0.1.0
Bus : 0
Device : 4
Function : 0
Target : 1
Lun : 0
Physical Device : /dev/rdisk/disk3


[Network Interface Details]
Interface : vswitch
Adapter type : avio_lan
Backing : vsOCD02
Vswitch Port : 8
Bus : 0
Device : 0
Function : 0
Mac Address : 1a-d3-f4-40-b6-76


[Direct I/O Interface Details]

[Misc Interface Details]
Device type : serial
Adapter type : com1
Physical Storage type : tty
Physical Device : console


[vPar/VM Reserved Device Details]
Reserved Device : bridge
Bus : 0
Device : 3

Reserved Device : hpvmdynmem
Bus : 0
Device : 5

Reserved Device : hpvmguestdvr
Bus : 0
Device : 6

Patrick Wallek
Honored Contributor

Re: USB disk device in HPVM

I didn't think HP-UX had support for USB flash drives or disks.

Dshort
Visitor

Re: USB disk device in HPVM

Patrick, that's exactly what I'm trying to find out. I know that there is documentation/procedures for configuring a USB DVD device, but I cannot find anything supporting a USB thumb drive sort of configuration. What I've done, since the host blade can see the USB drive is create a VG for just that drive and then export it to my VM's. I didn't want to do it this way since I didn't want to utilize NFS to copy, but it was a means of solving this issue. It's not going to be great throughput no matter what I do because as I understand it the USB through the SUV cable is only USB 1.0. But at least my customer has a means of exporting their data to the drive.