HP UX vPars and Integrity VM v6 manual ioscan -kfNC tgtpath or ioscan -kfNC lunpath

Models: UX vPars and Integrity VM v6

1 128
Download 128 pages 15.74 Kb
Page 104
Image 104
ioscan -kfNC tgtpath or

When you delete a device from a virtual machine, it is disassociated from that virtual machine, allowing the device to be used by another virtual machine on the VM Host. Deleted devices remain active on a virtual machine that is running; the devices are removed once you restart the virtual machine.

Storage devices that you can delete include virtual disks and DVDs as well as attached tapes, burners, and changers. Deleting a storage device does not affect data on that device (files or data are not removed from the device).

NOTE: You cannot remove a device that is currently being used by the guest OS or if I/O is outstanding.

If a virtual machine is running the Windows operating system, VM Manager indicates that it will not remove the virtual machine's devices. The operating system must be shut down first.

If a virtual machine is running HP-UX, devices selected for removal might not be removed until you restart the virtual machine. To confirm that the device has been removed from the virtual machine, view the appropriate Network or Storage tab.

NOTE: If the virtual machine is powered on, preliminary actions might be required to remove an AVIO storage device. If the virtual machine is powered off, no preliminary actions are required to remove the AVIO storage device (or any other selected storage device). To remove an AVIO storage device from a virtual machine that is powered on, note the following:

If the virtual machine is powered on and running at EFI, to remove the device, first stop the virtual machine. To stop the virtual machine, use the VM Manager ToolsStop Virtual

Machine... menu option. Once the virtual machine has stopped, delete the device using the DeleteI/O Device... menu option.

If the virtual machine is powered on and running HP-UX 11i v3, you must remove all instances of the device from the guest OS. To do so, follow these steps:

1.Obtain the device's hardware target path (tgtpath class) or lun path (lunpath class), using the ioscan command at the guest in either of the following ways:

ioscan -kfNC tgtpath or

ioscan -kfNC lunpath

2.Remove the device by using the rmsf command at the guest, specifying the obtained hardware path:

rmsf -H tgtpath or

rmsf -H lunpath

Once the device has been completely removed from the guest OS, then you can delete the storage device by using the VM Manager DeleteI/O Device... menu option.

NOTE: HP Integrity VM maintains a device database that includes entries for all devices and their associations. If deleting a device causes removal of the last association of that device with any other virtual machine on the VM Host, HP Integrity VM removes that device from its device database unless it is marked for preservation. To preserve an entry, use the Integrity VM hpvmdevmgmt command, specifying PRESERVE=YES; or, when creating a file as a backing device, specify the -S) and -Aattributes with that command.

When you use VM Manager to create a file as a backing device for a disk, the PRESERVE attribute is set as PRESERVE=YES.

104 Working with virtual machines

Page 104
Image 104
HP UX vPars and Integrity VM v6 manual ioscan -kfNC tgtpath or ioscan -kfNC lunpath, rmsf -H tgtpath or rmsf -H lunpath