To create ASM share disk under ESXi platform, we need to do some extra step at disk definition in vsphere console. Following is some screenshot
First, we add a SCSI controller for all RAC nodes.
on the guest OS, at configure tab: setting -> VM Hareware, then click edit
At New Device pull down menu, select “SCSI Controller”, then press ADD
A new device will list at bottom
Pull down the list at “SCSI Bus Sharing”, choose “Physical” and final result as follow
Repeat all these step for all RAC nodes
After added the SCSI controller to all RAC nodes, we add disk and assign disk to the new SCSI controller
To add disk, the step is similar as above, but this time we select “New Hard Disk” at new device at 1st node.
We prepare 20GB disk x 3 for OCR and voting disk, expand the new item and modify as follow.
The important setting is “Thick provision eager zeroed”, “Multi-writer”, “Independent – Persistent” and assign the disk at the SCSI controller we created before.
Also, remember the SCSI number, we need to using same SCSI number for same disk for all nodes
For other nodes, it is similar but we click “Existing Hard Disk” in new device
Browse the node in DataStores, and select the correct disk
Match the disk with same SCSI ID
And result as follow
On both node, use following command to check what disk attached to OS
cat /proc/partition
use following command to check the udev, which should be match on both machine
udevadm info /dev/sdf
The ID_WWN_VENDOR_EXTENSION should be same
Extra info
The guest host cannot take snapshot if using above config
The problem should come from the SCSI controller = Physical
The following setting change the SCSI controller share to “NONE”
It also can share disks between 2 VM
However, in guest OS, when try to find the LUN UUID by following command
/usr/lib/udev/scsi_id -g -u -d /dev/sdc |
It will return null
Solution
Shutdown relative host
VMware – Edit Settings
Click “Advanced”
Click “Edit Configuation”, and add following value
disk.EnableUUID = TRUE