Oracle Virtual machine add disk error

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Oracle Virtual machine add disk error

Roshan
Hello Erman,

I am trying to map a disk to a |VM. I set it to shareable. I am getting error below when mapping the disk to the VM


OVMAPI_4010E Attempt to send command: configure_vm to server: x8o**** failed. OVMAPI_4004E Sync command failed on server: <IP>. Command: configure_vm, Server error: org.apache.xmlrpc.XmlRpcException: <type 'exceptions.RuntimeError'>:disk:setup_error:Command: ['xm', 'block-attach', '0004fb000006000047382300f4f86f3a', 'phy:/dev/mapper/36c8b6d3100a0f2f403c5782700000143', 'xvdas', 'w!'] failed (1): stderr: Error: The file "/dev/mapper/36c8b6d3100a0f2f403c5782700000143" is already used stdout: Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. [Fri Nov 25 12:47:55 MUT 2022]

OVMAPI_4010E Attempt to send command: configure_vm to server: x8ora1ppd failed. OVMAPI_4004E Sync command failed on server: <IP>. Command: configure_vm, Server error: org.apache.xmlrpc.XmlRpcException: <type 'exceptions.RuntimeError'>:disk:setup_error:Command: ['xm', 'block-attach', '0004fb000006000047382300f4f86f3a', 'phy:/dev/mapper/36c8b6d3100a0f2f403c5782700000143', 'xvdas', 'w!'] failed (1): stderr: Error: The file "/dev/mapper/36c8b6d3100a0f2f403c5782700000143" is already used stdout: Usage: xm block-attach <Domain> <BackDev> <FrontDev> <Mode> [BackDomain] Create a new virtual block device. [Fri Nov 25 12:47:55 MUT 2022]

Kindly advise.

Regards,

Roshan
Reply | Threaded
Open this post in threaded view
|

Re: Oracle Virtual machine add disk error

Roshan
I checked the doc
2503547.1

shall i proceed with the steps?
Reply | Threaded
Open this post in threaded view
|

Re: Oracle Virtual machine add disk error

ErmanArslansOracleBlog
Administrator
-- OVMAPI_4004E  & is already used stdout

What steps did you take for adding that shared disk to your guests VMs in the first place?

Fact:
In OVM, we have a shared disk option for virtual disks but this option will just ensure that you will be able to use the same virtual disk with two guest VMs and if you don't use a cluster aware filesystem with this virtual disk then you won't be able to use the disk as shared disks..

In your case; Oracle complains about the disk is already in use.. So I guess you are missing somethings there..

Some refs: how to Use a Physical Disk Shared Across Guest VMs (Doc ID 2260070.1)
Reply | Threaded
Open this post in threaded view
|

Re: Oracle Virtual machine add disk error

Roshan
Hi,

thanks for the update.

Please find attached the steps. First I label the disk with same ID and name from the LUN. Then I go to VMs tab and map the VM to disk.

MFT.rar

Reply | Threaded
Open this post in threaded view
|

Re: Oracle Virtual machine add disk error

ErmanArslansOracleBlog
Administrator
The document that you ve sent in the MFT.rar is for installing a single node DB.. There you only attach the disk to a single VM I guess. But now you are trying to do something different. You are trying to build a 2 node RAC on Oracle VM Server.

Please answer the following question and provide the answers;

1)Is this a virtualized Exadata? If so, how do you present those new disks to that?
2)Please send me the exact documentation that you follow for this task.
3)Please send me screenshot of the error.
Reply | Threaded
Open this post in threaded view
|

Re: Oracle Virtual machine add disk error

Roshan
1. no it is not on Exadata
It is Oracle X8

2. Please find attached. I did not follow any official documentation. These were done by me.

OVM.docx

Thanks,
Roshan
Reply | Threaded
Open this post in threaded view
|

Re: Oracle Virtual machine add disk error

Mustafa Keskin
Hello ,

Could you check this document , you can find that how to setup RAC in OVM


https://kyuoracleblog.files.wordpress.com/2012/05/ovm_rac_on_ovm22_final.pdf
Reply | Threaded
Open this post in threaded view
|

Re: Oracle Virtual machine add disk error

Roshan
OK thanks