Operating System - HP-UX
1753309 Members
6712 Online
108792 Solutions
New Discussion юеВ

Re: remove virtual disk from vmguest

 
SOLVED
Go to solution

remove virtual disk from vmguest

Hello folks,

I have a problem with removing a virtual disk from vmguest. Isn't it possible to remove the disk online ?

Here is what I did:

hpvmmodify -P vseux001 -d disk:avio_stor:1,0,6:disk:/dev/rdisk/disk14
hpvmmodify: Unable to dynamically delete device disk:avio_stor:1,0,6:disk:/dev/rdisk/disk14 - Device busy.
hpvmmodify: Guest needs to be restarted (using hpvmstop followed by hpvmstart) for all changes to take effect.

When ├Н execute hpvmdevmgmt -l all the disk is not displayed anymore. The vmguest has the disk still in its configuration.

hpvmstatus -P vseux001 -V :

<<<<< snip

Guest Device type : disk
Guest Adaptor type : avio_stor
Bus : 1
Device : 0
Function : 0
Target : 6
Lun : 0
Physical Storage type : disk
Physical Device : /dev/rdisk/disk14


<<<<< snip


Any hints that this task can be done without reboot ?

Best regards,

Joerg
5 REPLIES 5
melvyn burnard
Honored Contributor

Re: remove virtual disk from vmguest

couple of questsions:
1) is this the Guest OS disk?
2) If not, is this the ONLY disk on Bus 1?
3) Have you used hpvmstatus -D to check and see if this change is scheduled for next reboot?

I suspect it is NOT the OS Guest disk, and that it is the only device on Bus 1, in which case this is expected behaviour, as HPVM not only removes the disk, but if it is the LAST disk on a bus, it "removes" the virtual I/O card as well, and this is NOT an online change
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
cjb_1
Trusted Contributor

Re: remove virtual disk from vmguest

The reboot does sort it but i cant find a workaround without. The -D flag will show the resource has gone.

I'd removed a disk and left the guest in the state you describe for a few weeks and eventually got an issue where 'ioscan -f' hung up and couldn't be killed.

The 4.1 admin guide does state you can to this on the fly.

Call open with HP support at moment. Will update you with the results.

Re: remove virtual disk from vmguest

Hi ,

thanks for the Info. I will open a case at HP , too. We can compare our knowledge if we got some new infos.

Best regards,

Joerg
cjb_1
Trusted Contributor
Solution

Re: remove virtual disk from vmguest

got an answer back.

identify HW address of the device to be moved through ioscans.
on the guest, rmsf -H that device.
on the host, perform the hpvmmodify -d on the device.

device now disappears from guest and hpvmstatus on host.

not elegant, as its nice to see the NO_HW flag before rmsf is run but it works.

Re: remove virtual disk from vmguest

Hi,

thanks for the hint. It works, but I agree its not a nice way ;)

Best regards,

Joerg