Operating System - HP-UX
1847023 Members
4015 Online
110258 Solutions
New Discussion

Re: duplicate backing device

 
SOLVED
Go to solution
Kasper_USB
Frequent Advisor

duplicate backing device

My Question:

from vmhost give a device (disk) to vm1.

after that
change device to shareble.
hpvmdevmgmt -m gdev:/dev/rdisk/disk1322:attr:SHARE=YES

than i can not give the device to another vm:

vm-host:/# hpvmmodify -P vm2 -a disk:avio_stor:0,6,61:disk:/dev/rdisk/disk1322
hpvmmodify: ERROR (vm2): Duplicate backing device '/dev/rdisk/disk1322'.
hpvmmodify: ERROR (vm2): Unable to add device '/dev/rdisk/disk1322'.
hpvmmodify: Unable to create device disk:avio_stor:0,6,61:disk:/dev/rdisk/disk1322.

so it seems to me i must reboot the vm1 before i can give the device also to vm2 ?
9 REPLIES 9
Jorge Pons
Trusted Contributor

Re: duplicate backing device

Hi

Im not sure if its necessary to reboot, probably.
If this is for shared, why not mount NFS?

Regards, Jorge
Eric SAUBIGNAC
Honored Contributor

Re: duplicate backing device

Bonjour,

As far I can see, the reboot is not the problem itself.

" Duplicate backing device '/dev/rdisk/disk1322' "

I guess that the device has already been added before you have modified its shareable attribute : during this first try you have seen an error message telling you some nasty things about the ability of the disk to be shared. Then you have modified the shareable attribute, tried to add a second time the device and then seen this "duplicate" error message. Right ?

In fact the device has been added the very first time, but because there was an error, it has not been added to the running configuration. Check with hpvmstatus and "-D" option (D as deferred). I guess that you will find it.

In this case, try to remove it first, then add it again. If the avio_stor bus/device 0/6 already exists (and I guess it does) and because the disk you want to add is now shareable, it should work fine online.

Eric
Manix
Honored Contributor
Solution

Re: duplicate backing device

yes !! better idea would be to make a device sharable & then add it to multiple guests.

Try removing and then adding it again ,should work.

Thanks & Regards
Manix
HP-UX been always lovable - Mani Kalra
Kasper_USB
Frequent Advisor

Re: duplicate backing device

Good Monday

on Friday i've tried to remove the device from the first VM ->
hpvmmodify -P vm1 -d disk:avio_stor:0,6,61
hpvmmodify: Unable to dynamically delete device disk:avio_stor:0,6,61:disk:/dev/rdisk/disk1322 - Device busy.
hpvmmodify: Guest needs to be restarted for all changes to take effect.

After waiting this weekend on some more responses and looking today on the system.
I see, that the device is no more in the VM-configuration (hpmstatus) to see.
Yes -> it's gone away !!! but why ???
So there must be a hidden job who solve the problem ???
I try now to give the device to the other vm and then to the first vm to see, that all is going right now.

any comments to this behavior are welcome.
Torsten.
Acclaimed Contributor

Re: duplicate backing device

>> hpvmmodify: Guest needs to be restarted for all changes to take effect.



Check with "uptime" if the guest was rebooted.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Eric SAUBIGNAC
Honored Contributor

Re: duplicate backing device

Bonjour,

2 different things :

- What I told you in my previous post was to delete from vm2 the device you try to add, not to delete it from vm1 !

- Now, about vm1 : disk1322, in fact, IS in use in vm1. So the "Device busy" error is quiet normal. Before removing the device from the VM, you must first ensure that it is unused if you want to do it on line. To achieve this use 'rmsf -a' in the VM. I will post a small example that will demonstrate that.

Eric
Eric SAUBIGNAC
Honored Contributor

Re: duplicate backing device

OK, my example is attached as a .txt file. Thank's to my client that let me play with its IT ;-) This example illustrate why you get a device busy error when you try to delete a disk from vm1, and how you deal whith this.

Now, for vm2, try to apply my first post. Check, before, that you have a difference between running (hpvmstatus -P vm2) and deferred configuration (hpvmstatus -D -P vm2). If so, just delete the disk ( hpvmmodify -P vm2 -d disk:avio_stor:0,6,61:disk:/dev/rdisk/disk1322) then add it back ( hpvmmodify -P vm2 -a disk:avio_stor:0,6,61:disk:/dev/rdisk/disk1322
)

Eric
Kasper_USB
Frequent Advisor

Re: duplicate backing device

Hello

it's ok now for me.

i worked with hpvmdevmgmt to show and change the device.

the first error-messages (backup-device ...) does'nt prevent from operate and give the device to the second vm too.

but:
the only right way seems to be:
1. define the device. (hpvmdevmgmt)
2. make it shareable and then (hpvmdevmgmt)
3. give it to the vm's. (hpvmmodify)

thanks to all responses.

Olaf
Kasper_USB
Frequent Advisor

Re: duplicate backing device

ok