How to create disk shared across virtual machines on different hosts

Hello

We implement Oracle RAC on two virtual machines, one on each of the two armies for redundancy. For our installation:

  • The two ESXi hosts two SAN access a logical unit number.
  • Two virtual machines on the hosts must have access to a single virtual disk on this LUN (or unit number logic itself) at the same time.

We tried the following:

  • Creation of a data store associated with the LUN, and then creating a new hard drive on each virtual machine using the same virtual disk on the data store. This operation failed because as soon as a virtual computer runs, the other virtual computer cannot run since the first has a lock on the file from the disk.
  • Creation of a new hard drive on the virtual machine through RDM. This operation failed because only the first virtual machine has this option of disc. Once the ROW has been assigned to the LUN, the other virtual computer cannot create its own RDM for the LUN.

I'm learning just VMware so I can miss a fundamental method to accomplish this, or perhaps, it is not possible at all. You know a way to create the installer I described?

Welcome to the community,

I can not specifically help with the Oracle RAC, however, I would recommend that you take a look at MSCS documentation for how to configure shared disks. There is a difference in the way in which you have installed the VM, for example all VMs on an ESXi host or on different hosts. Please keep in mind that MSCS is a cluster without sharing, which means that only one node at a time has access to a shared virtual disc/RDM.

André

PS: I forgot to add the link: http://kb.vmware.com/kb/1004617

Tags: VMware

Similar Questions

  • How one move the templates of virtual machine from one host to another host in the cluster even

    Hello

    Can you get it someone please let me know how to move the templates of virtual machine from one host to another host in the cluster even?

    Thank you

    James

    Welcome to the forums!

    Convert it to a virtual machine (right click on guest and choose the appropriateoption), move it through the migration feature (right-click Guest, and then choose "Migrate") and convert into a model (right click on guest again and choose to convert to a template).

    If you found this information useful, please consider awarding points to 'Correct' or 'Useful' responses Thank you!!

    AWo

    VCP / vEXPERT 2009

  • No network connection between the virtual machines on different hosts ESXi

    I have several 5.0 ESXi hosts in a cluster managed by vCenter Server 5 and I have network problems:

    1. [Host A] running a virtual machine can ping any other computer virtual running on the [host A] great!
    2. A virtual machine running on host [B] can ping any other virtual machine running on [B] home - very well!
    3. [host A] (from the ESXi console) can ping any virtual machine running on [B] home - even better!
    4. [B] home (from the ESXi console) can ping any virtual machine running [host A] - beautiful set!
    5. A virtual machine running [host A] can not ping any virtual computer running on host [B] and vice versa - bad, very bad!

    So basically the problem is that the virtual machines can communicate on hosts. It is a major problem that I need to fix, for obvious reasons.

    Networking on all hosts is configured exactly the same way: a unique and standard vSwitch with a pair of gigabit network cards grouped, vmkernels configured for the vMotion, NFS and network management and a group of ports configured for the VIRTUAL local area network used by the VMs. (vMotion works fine on hosts, storage vMotion works very well too.) All virtual machines are servers Windows (2003 and 2008).

    Reason #3 and #4 above, my assumption is that #5 must be the result of an ESXi/vCenter configuration issue and not a problem with the switches of material upstream. Is this a reasonable assumption?

    Whatever it is, can anyone offer suggestions on how can I fix? It is quite annoying as I'm pretty sure that these hosts are configured in the same manner as those of our production cluster, which does not at all these problems!

    Thanks in advance for any help you guys can provide.

    To be honest, it looks like a problem with your physical network-

    How is the physical network configured - are NIC connects it to the same physical switches? Are the virtual machines on the same subnet? If this is not the case, they are able to ping the gateway sbnet? Can you piing host IP address from the virtual machines?

    I also moved it to a forum more approiate.

  • How to migrate from vCenter as virtual machine to another host without vMotion running

    We organize ESX 3.5 hosts. I've already updated our vCenter VM to 4.0U1. We have not the vMotion Installer yet (but are licensed for her). What is the appropriate way for migrating the vCenter VM to another host without vMotion, so I can upgrade the host the vCenter VM is running on? I have examined all the documents and messages, I could find, but don't have not seen this addressed.

    You must turn off the virtual machine.

    Copy the files (if are not on a shared data store).

    Save the vmx file in the new ESX (with browser data store).

    Turn on the virtual machine.

    Answering the question "I_moved" (appears only the first time).

    André

  • Can you have different partitions on a virtual machine on different host machine partititons?

    I have a 2008 srver machine which has two partitions. I wish that my virtual machine which is Server 2008 (Workstation 8) to have one of its virtual disk on one of my partitions hosts and the other on the other partition. IS this possible? Any guidance would be greatly appreciated.

    With a new virtual machine you would just select the location for the new virtual disk when you create it. With an existing virtual machine, you could - with the virtual machine powered on and closed VMware Workstation (or at least tab of the virtual machine closed) - move the virtual disk files second to another partition and edit the .vmx virtual machine file and add the absolute path name of the virtual disk file.

    If you want, after (join) current .vmx file of the virtual machine as well as his latest vmware log file and let me know the path target if I can guide you.

    André

  • Networking between virtual machines on different hosts

    Hello

    I need some advice on the basic approach to networking between virtual machines, each running on a different host machine.

    Consider the following configuration:

    I have a few processes that are running in a Machine virtual Ubuntu. Call this guest1.  I guest1 race inside a real computer running Windows XP SP3 and VMware Workstation 7.x; Call this host 1.

    I have a copy of this virtual machine that I put on another machine.  Call this Guest2.  I have Guest2 running on a separate physical computer, also runs Windows XP SP3 and VMware Workstation 7.x; Call this host 2.

    Now, I would like to guest1 and 2 comments to make networking with eachother.  I wish they were able to ping, SSH, etc., among others.

    This is where I am stuck. I tried setting the virtual machines to use the bridged network mode.  I tried to connect my router on each computer and manually assigning IP addresses to each host and each virtual computer.  When I do this, guest1 can Host1 and Host2 ping, but cannot ping Guest2 and vice versa.

    What is the right way to do this kind of network?  This seems like an obvious application, if you want to perform simulations on multiple virtual machines residing on different computers on the network.

    I apologize if this is the answer elsewhere, I had to dig and was not able to find the solution.

    Thanks in advance!

    Charles

    Guests must be on the same subnet, like 'real' hardware machines.

    1 when you copied the VM and then started, what did answer you the question of copy/move? (this determines if a new MAC address is applied)

    2 view each guest and ' ipconfig/all' results 'ifconfig - a' by the hosts.

    Lou

  • How can I get the number of disks for a virtual machine and PAHO are / s of a disc?

    Hi all

    I would like to know if there is a command that returns the number of disks having a virtual machine.

    and also if there is no command to obtain and change the number of the IOPS / disk s.

    Thanks in advance

    Carlos

    It will give you hard drives attached

    Get - VM | Hard drive


    It will give you count

    Get - vm | Select name, @{N = "TotalHDD"; E={($_ | (Get-harddisk).count}}


    It is possible to retrieve the number of the IOPS / disk s, but what do you mean by editing.

  • How to make a visible USB hard disk for a virtual machine on ESXI 4.1?

    Hi all

    As I am new to the world of vmware ESXI, I always make mistakes or I don't undertand all therefore be complete :-).

    So I have a HP Proliant ML 350 G6 Server installed with ESXI 4.1 and I want to connect a USB hard disk to a virtual machine (SBS 2K 8). Currently, the virtual machine is not able to see the hard drive.

    I already add a USB controller to the virtual machine, but my USB HARD drive is still not visible to my virtual machine.

    Can you help on that?

    Thank you

    Michael

    Next, add a USB device to the virtual computer (in the change settings tab), there are different things, USB controller and USB devices. Sometimes, you may have to restart the virtual machine.

    Greetings

  • Physical disk how can I add in the Virtual Machine?

    I am trying to set up a network of storage, but I discovered it is there is a limitation for the addition of physical hard disks in the virtual machine.

    I have 1 virtual hard disk for the operating system (SCSI), an invited so I try to add more than 4 disks, but it should not add more than 3. They showed that (IIRC).

    I try to add 4 x 1 TB as physical hard disk in virtual machine hard disks, but it says that I must remove one to add.

    1. in the settings of the Virtual Machine, is there a difference between (SCSI) (IDE) and why are the physical disks (IDE)?

    2. What is the limitation of total hard drives under the VM settings, four?

    Johwwy

    physical disks can be detected such as IDE or SCSI - depends on the drivers used by the host

    SATA in ide-compat mode is used as IDE

    SATA AHCI mode is detected as SCSI

    It is possible to rewrite the descriptions after their creation.

    It is a little advanced - see my notes

    http://sanbarrow.com/VMDK-basics.html#changeadapter

    for a start, it may be necessary to also change the geometry... ask first so uncertain.

    I think the limit of physical disks that can be attached to a virtual machine is 64 = 4 x 15 - scsi and IDE 4-disc drives

    _________________________

    VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual

  • Connect physical hard disks to the virtual machine (and leave the data intact)

    Hello

    I'm looking to virtualize a SOHO headless server, that I use mainly for secure file storage.

    Currently, the system runs Linux installed on a small disc and has two drives 1.5 TB, used exclusively for data, in a cluster of ZFS mirroring. (I use the ZFS-fuse Linux-based application).

    I want virtualization for two reasons. One is to make administration easier and safer - avoid having to connect a keyboard and the physical monitor to the box from time to time. The other is that the machine is a bit more powerful to handle the load, and I'm hoping to make it work on other, more challenging tasks.

    Now, there is a catch. These discs are as highly important. I mean the data on them. What I need is to convert the current Linux system to a virtual machine, or re - install Linux on a virtual machine (don't like that), then connect the physical disks to the virtual machine as if they were actually connected.

    I certainly don't want to vmware touches those disks somehow.

    I've read the documentation, but I'm a noob when it comes to server virtualization and system engineering and don't quite understand if this is possible or not. These discs are not a SAN, they are physically connected to the server, I want to install vSphere on. (Of course, I'll log out when I run the setup of vSphere. But I need plug them again later, and they need to be sure that vmware will leave them alone and pass them to the virtual machine transparent.)

    Sigmoid wrote:

    Oh yes, the cluster mirrored ZFS. It is essentially a software RAID type thingie.

    http://en.Wikipedia.org/wiki/ZFS

    A material, or the point of view of virtualization, it appears two hard drives with a single huge partition on each that is not transparent to anyone, except the implementation of ZFS.

    OK, means that you can break the RAID, connect the drives to different host and configure RAID once again, right?

    Let's do it this way

    1. We will need a disc player more for VM, cause on flash, we install ESXi
    2. I will share ZFS :-), all you need to do with that before you install ESXi
    3. make the BACKUP!
    4. Disconnect the data host drives
    5. install ESXi 4.1 U1 free version on flash
    6. Download the site VMware vSphere client
    7. Connect the VM disk to ESXi
    8. customer help create the virtual machine and install the OS on it
    9. stop the virtual machine and esxi
    10. connect DATA drives to the ESXi host
    11. begin to ESXi
    12. See how to add RDM on youtube, after client use, change first hardware VM--> add a new hard disk--> choose Raw Device Mapping--> (physical or virtual) mode--> store it with folder VM - FACT
    13. Start the virtual machine, now your VM should see both drives, with good data course :-)

    I have just made this procedure (add ROW with data in Linux VM) on ubuntu VM, works well

  • How to move virtual machines from one host to another without full VI and vMotion?

    Hello

    could you help me with a question?

    I have two installed hosts with ESXi 3.5 U5, which are connected to the shared iSCSI (Openfiler) - VMs storage are installed on the storage disk. My requirement is to have a cheap solution of DR - in case of failure of a host, I need to move and start VM on the host of work. How to achieve without going through VMware Infrastructure 3.5 and vMotion?

    I found this article:

    http://www.virtualizetips.com/2010/04/how-to-move-a-VM-without-vCenter-or-storage-VMotion/

    but RCLI needs Infrastructure of VMware ESXi does not have default CLI So, how to move VMs between hosts (of course I mean "cold" move) without byuing any additonal VMware SW? It is generally possible in my situation?

    Thank you.

    ARO

    Danas

    If the virtual machines are running in shared storage (two guests see the same storage iSCSI or NFS) then it's simple. If a host goes down, then look for the data store on the ESXi host work. Navigate through folders for each virtual machine, right-click on the VMX file and add to the inventory. You will then be able to turn on the virtual machine.

    To move a virtual machine from one host to another, as long as both hosts had the same processors, you can pause the VM on the single host, browse and add the virtual machine to the inventory on the second break host and the United Nations.

    If the virtual machines are on local storage, but the two hosts are connected to the same shared storage, clone virtual machines on a daily basis from local storage to shared storage. Use something like ghettoVCB http://communities.vmware.com/docs/DOC-8760 make the clone. In the case of a server failure, you will be able to browse the data store, add to the inventory on the shared storage and switch the cloned machine.

  • Can I convert a server disk to a virtual machine?

    I have a number of OS X 10.5 servers running on hardware that is incredibly underused.  Since the Fusion 3 supports running OS X Server virtualized, is it possible to convert a live server disk to a virtual machine to the BootCamp to VM? I could run all 5 of my server on a single Xserve systems. I dug around, but everything points to a new facility to achieve this.

    Thank you

    Tim

    Yes, it is possible to convert physical machines to Mac OS X Server VM. I've posted instructions on how to do this in the following thread: Re: Snow Leopard Server VM existing?

    In your case, the only thing that needs to change is the version of the OS - pick instead of 10.6 10.5. I tried this with one of my machines so far, I would be interested to comment on the question of whether instructions to work for you. I'll probably convert this post into a document at some point...

    I also thought the ability to hire only the OS X physical disk partitions without copying the data (like Fusion for Boot Camp). However, Fusion currently only supported the MBR partition tables to access raw partitions, and most Macs are partitioned GPT (or hybrid MBR + TPG). You can try to use Library/Application Support/VMware Fusion/vmware-rawdiskCreator to see if it recognizes the OS X partitions. If so, you should be able to create a virtual disk that references the partitions and boot from it as you would for a machine virtual Boot Camp.

    It is also possible to use a physical disk full (instead of individual partitions), but you would need to have partitions not mounted before using virtual machines that reference the physical disks. If you are interested in, there is a link in this thread as well.

  • Copy of the data of the disk of the virtual machine on a Local disk is too slow

    We have recently implemented vMware view.   We vSphere 5.5 and 5.2 and made Desktop visualization server.

    We have SAN as HP 3Par and Esxi hosts are HP ProLiant DL380p Gen8

    Now all trying to copy the data from the disk of the virtual machine disk of the local computer are too slow. But if we are writing data from Local disk on the disk of the virtual machine is normal. And copying data between the two virtual machine disk is also fast.

    Thanks in advance for your help

    Dear all,

    Thanks for your help.

    We have analyzed the issue in 360 degrees, and we also examined your entries. Finally, we found the problem. It was that a defective fiber link has been creating the problem.

    We have recently implemented vMware and this flaw in fiber can also happened during this period. That's why we thought it may be because of vmware.

    Thanks again for your help

  • How can I mutual folder "discovered virtual machines.

    I use c# api.

    When I get all records in a data center, I get the host, the vm and the discovery of the virtual machines folder.

    When you request the property of hostFolder - you download the file from the host. It goes the same for vmFolder.

    How to identify the folder "discovered virtual machines? What size should I look to find this file specifically?

    I don't want to find all the files and compare names, because files can be renamed.

    Help, please.

    Thank you.

    idanmnr

    Iamw is right.  The vmFolder will contain the "discovered virtual machines" folder, you would just do a search from there.

    What becomes tricky is that it is possible that someone is offering this particular folder in another folder, so probably have to walk down the tree of vmFolder until you find the open folder VM.  If for a simple case, you can assume it will be one of the childEntity of vmFolder objects.

    In addition, this file can be renamed as well.  I don't think that this is a special folder in inventory of VI, comes out just for a default folder that is created for use.  But maybe someone else can provide more details on that.

  • Allocation of disk space to virtual machines

    I played around with assigning physical disk space to a virtual machine, in the "Add Hardware Wizard", I selected hard drive & gt; Create a new virtual disk & gt; He gave a size of 100 GB stored with the virtual machine and not independent.

    When I started the VM space, which is all that I wanted to check if I stop the virtual machine. Rather than remove the new hard drive 2 settings of the virtual machine, I have restored a previous snapshot without the new HD. Now when I check the free space on datastore1, it seems that the 100 GB does not have to be added to the free space.

    I did something wrong?

    UPDATE:

    I just tried the process again but this time assigned 8 GB.  Then I checked free space on datastore1, and now I have the 100 GB back, less the 8 GB I just posted.  Any ideas?

    If you take out it just of the virtual machine, it does not actually remove the virtual disk that you created. As you say, there are 2 options when you remove the drive, we need to remove the virtual machine, and we need to remove the disc. If you remove the disk from the virtual machine, it will always keep the file even if it is not associated with a virtual machine. There is no question to delete this file. Just make sure that you delete the correct VMDK. It's easy, if it's the only drive of 100 GB or 8 GB, you have created.

Maybe you are looking for