Sunday, October 18, 2015

Prepare virtualbox shareable disk for RAC installation

C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd --filename D:\VMs\RAC01\Data1.vdi --size 10240 --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: 9f3cd90c-99ec-4520-b6d9-0217912ae92a

C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd --filename D:\VMs\RAC01\Data2.vdi --size 10240 --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: 3de86535-4736-424c-97b1-e102c1474007

C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" createhd --filename D:\VMs\RAC01\Quorum.vdi --size 1024 --variant Fixed
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: 1ce7ab6b-2c88-441b-985e-0c21226160d7

=====================================================================================================================
C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storagectl "RAC01" --name "SAS" --add sas --controller LSILogicSAS
C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storagectl "RAC02" --name "SAS" --add sas --controller LSILogicSAS
C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storagectl "RAC01" --name "SAS" --portcount=8
C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storagectl "RAC02" --name "SAS" --portcount=8
=====================================================================================================================

C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach "RAC01" --storagectl "SAS" --port 0 --device 0 --type hdd --medium D:\VMs\RAC01\Data1.vdi --mtype shareable
C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach "RAC01" --storagectl "SAS" --port 1 --device 0 --type hdd --medium D:\VMs\RAC01\Data2.vdi --mtype shareable
C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach "RAC01" --storagectl "SAS" --port 2 --device 0 --type hdd --medium D:\VMs\RAC01\Quorum.vdi --mtype shareable

C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach "RAC02" --storagectl "SAS" --port 0 --device 0 --type hdd --medium D:\VMs\RAC01\Data1.vdi --mtype shareable
C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach "RAC02" --storagectl "SAS" --port 1 --device 0 --type hdd --medium D:\VMs\RAC01\Data2.vdi --mtype shareable
C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" storageattach "RAC02" --storagectl "SAS" --port 2 --device 0 --type hdd --medium D:\VMs\RAC01\Quorum.vdi --mtype shareable

C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showhdinfo D:\VMs\RAC01\Quorum.vdi
UUID:           1ce7ab6b-2c88-441b-985e-0c21226160d7
Parent UUID:    base
State:          created
Type:           shareable
Location:       D:\VMs\RAC01\Quorum.vdi
Storage format: VDI
Format variant: fixed default
Capacity:       1024 MBytes
Size on disk:   1026 MBytes
Encryption:     disabled
In use by VMs:  RAC01 (UUID: bf507dfc-853c-489c-a9d4-7411139e0635)
                RAC02 (UUID: eec5df93-a181-4531-a5c2-e824a77a554a)

C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showhdinfo D:\VMs\RAC01\Data1.vdi
UUID:           9f3cd90c-99ec-4520-b6d9-0217912ae92a
Parent UUID:    base
State:          created
Type:           shareable
Location:       D:\VMs\RAC01\Data1.vdi
Storage format: VDI
Format variant: fixed default
Capacity:       10240 MBytes
Size on disk:   10242 MBytes
Encryption:     disabled
In use by VMs:  RAC01 (UUID: bf507dfc-853c-489c-a9d4-7411139e0635)
                RAC02 (UUID: eec5df93-a181-4531-a5c2-e824a77a554a)

C:\Windows\system32>"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" showhdinfo D:\VMs\RAC01\Data2.vdi
UUID:           3de86535-4736-424c-97b1-e102c1474007
Parent UUID:    base
State:          created
Type:           shareable
Location:       D:\VMs\RAC01\Data2.vdi
Storage format: VDI
Format variant: fixed default
Capacity:       10240 MBytes
Size on disk:   10242 MBytes
Encryption:     disabled
In use by VMs:  RAC01 (UUID: bf507dfc-853c-489c-a9d4-7411139e0635)
                RAC02 (UUID: eec5df93-a181-4531-a5c2-e824a77a554a)

No comments:

Post a Comment