首页 > 代码库 > Share single RDM between multiple VM's in ESX
Share single RDM between multiple VM's in ESX
1.Create a VM01 on esx01,Create a VM02 on esx02
2.Create the RDM on your VM01 (using the virtual, not physical)
3.Add new disk to VM02 (select existing) and point it at the vmdk that corresponds to the RDM
A Raw Disk Mapping (RDM) may be used to present a LUN directly to a virtual machine from the SAN. This offers improved performance, which can be used for more disk IO intensive applications such as database servers.
1.The first step to adding a RDM to a virtual machine is to assign an unused LUN to your ESX/ESXi Server(s). This will vary depending on the type of SAN in use.
2.For the new LUN to become available, Rescan the HBAs on all your ESX servers.
3.The virtual machine that the RDM is going to be added to needs to be shut down first, the RDM cannot be added while it is running.
4.Once the VM is shutdown right click the VM and choose "Edit settings".
5.On the hardware tab, click "Add" and choose "Hard Disk".
6.For the disk type choose "Raw Device Mapping" (RDM). Click Next.
7.Choose the LUN, Click Next.
8.Choose "Store with virtual machine" or if you want store the link to the RDM in a specific datastore. Click Next.
9.Choose "Physical" or "Virtual" compatability. Click Next.
10.The RDM needs to be on a seperate SCSI controller. Choose a Virtual Device Node that is on a different SCSI bus to the current virtual disks (e.g. SCSI 1:0). Click next.
11.Confirm settings and choose finish.
12.A new SCSI controller and hard disk is added to the virtual machine configuration. Now boot your VM. Depending on the OS check for new disks and format/mount the disk.