Adding Shared Disk to 2 VM's
Adding Shared Disk to 2 VM's
Adding Shared Disk to 2 VM's
1. Shutdown the vms which shared hard disk
2. Migrate disks associated with the VM to thick provisioned eagerzero (Right Click VM, migrate data store, change disk type.)
3. Right Click VM, select edit settings and change SCSI controller settings from none to physical (Physical: share vmdks among vms on any server)
ssh in to esxi host and go to the vms folder and create new folder for shared disks (Ex: vm01-02)
4. Create new shared folder
5. Create vmdk using the following command:
# vmkfstools -c <AMOUNT_TO_ADD> <NAME_OF_DISK.vmdk>
example: # vmkfstools -c 10G shared01.vmdk
6. Convert the above vmdk to thick eager zeroed by below
# vmkfstools --eagerzero <NAME_OF_DISK.vmdk>
example:
# vmkfstools --eagerzero shared01.vmdk
7. Add disk to vms that will share access.
8. Go to edit settings and add hard disk using existing hard disk option.
# vmkfstools --eagerzero <NAME_OF_DISK.vmdk>
example:
# vmkfstools --eagerzero shared01.vmdk
7. Add disk to vms that will share access.
8. Go to edit settings and add hard disk using existing hard disk option.
9. Power on both vms to see the shared disk.
Comments
Post a Comment