How to create Shared Disk “between” two Solaris Machine on VMWare
Step 1 Create first Machine
Create the windows folders to house the first virtual machines and the shared storage.
D:>mkdir SUNOS-1
F:>mkdir SHARED-STORAGE
Install Solaris virtual machine in SUNOS-1 Directory.
Step 2 Create virtual disks for storage usage, which is shared by Both Machine.
- Down the virtual Machine
- Go to VMware Server Console. Click on Edit virtual machine settings.
- Virtual Machine Settings: Click on Add.
- Add Hardware Wizard: Click on Next.
- Hardware types: Select Hard Disk.
- Select a Disk:
- Disk: Select create a new virtual disk.
- Select a Disk Type:
- Virtual Disk Type: Select SCSI (Recommended).
- Specify Disk Capacity:
- Disk capacity: Enter “10GB.”
- Select Allocate all disk space now.
- Specify Disk File:
- Disk file: Enter “F:>SHARED-STORAGEDISK1.vmdk.”
- Click on Advanced
- Add Hardware Wizard:
- Virtual device node: Select IDE0.1.
- Mode: Select Independent, Persistent for all shared disks.
- Click on Finish.
Step 3 Modify virtual machine configuration file.
Additional parameters are required to enable disk sharing between the two virtual RAC nodes. Open the configuration file, D:>SUNOS-1 Solaris 10.vmx.vmx and add the bold parameters listed below.
.
.
.
priority.grabbed = "normal"
priority.ungrabbed = "normal"
disk.locking = "FALSE"
diskLib.dataCacheMaxSize = "0"
ide0:1.sharedBus = "virtual"
ide0:0.redo = ""
ethernet0.addressType = "generated
–
–
–
–
–
ethernet0.connectionType = "hostonly"
ide0:1.present = "TRUE"
ide0:1.fileName = "E:SHARED-DISK.vmdk"
ide0:1.redo = ""
checkpoint.vmState = ""
ide0:1.mode = "independent-persistent"
ide0:1.deviceType= "disk"
floppy0.present = "FALSE"
Step 4 Create and Configure the Second Virtual Machine
Create the windows folders to house the second virtual machines.
E:>mkdir SUNOS-2
- Shutdown the First Virtual Machine
- Copy all the files from D:SUNOS-1 to E:SUNOS-2
- Open your VMware Server Console, press CTRL-O to open the second virtual machine,
- E:SUNOS-2Solaris 10.vmx.
- Rename the second virtual machine name from SUN1 to SUN2.
- Click on Start this virtual machine to start SUN2, leaving SUN1 powered off.
- SUN2 – Virtual Machine: Select create a new identifier.
- Log in as the root user and modify the network configuration.
Follow below step for modifying Host Name and IP
- $ ifconfig <Ethernat> <new IP>
- $ ifconfig <Ethernet> up
- $ go to /etc/hosts file and change IP and host
- $ go to /etc/nodenames file and change host anme
- $ go to /etc/hostname.<Ethernet> and change host name
- Restart the Second Virtual Machine.
- Start the First virtual Machine
- Verify all changes and Enjoy. Your Shared Storage is ready for fun.
this dose'nt work on vm of adding a shared disk on two machines