Wednesday, October 26, 2016

How to ADD disk in VirtualBox for ASM & Make it Shareable for node-2

Add Disks in Node-1 for ASM, Make it shareable Disk & Add in Node-2(Step By Step)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




If you want to Configure VirtualBox Version 5.0.20 Machine for 2 Node RAC & Install Linux 6.4 on both node follow the below link.




Step 1: Make Sure your both Server should be shutdown then Select your machine "11g_node01" and click on "Setting" option to add addition disks for ASM Disk. 


Step 2: Setting dialog box will popup, Select "Storage" option and In General choose "Controller:SATA" option, and click on + sing at right side.



Step 3: "VirtualBox - Question" dialog box will popup, Click on "Create New Disk".


Step 4: Same popup window will show different option "Hard disk file typechoose "VDI (Virtualbox disk Image)" option and click on "Next".


Step 5: Same popup window will show different option "Storage on physical hard diskchoose "Fixed Size" option and click on "Next".



 Step 6: Same popup window will show different option "File location and size" click on  "folder icon".



Step 8: Select directory "11g_Shared" to save disks for ASM.



Step 9:  In my case I have saved in "11g_shared" directory as the name of "ASM_11g_RAC_disk01".


Step 10:  I have took "06.00 GB" for one disk and click on "Create"


Step 11:  Fixed disk creation in-progress for ASM.


Step 12:  Like Step 2 to Step 11 you have to create more disks for FRA, OCR & Voting disk. I have created total "6 disk" as below showed in Storage option. My disks name are "ASM_11g_RAC_disk01 (6 GB)", "ASM_11g_RAC_disk02 (6 GB) ", "ASM_11g_RAC_FRA01 (12 GB)", "ASM_11g_RAC_vote_OCR01 (2 GB)", "ASM_11g_RAC_vote_OCR02 (2 GB) ", "ASM_11g_RAC_vote_OCR03 (2 GB)".


Step 12:  Now make all created disk Shareable so Click on "File" of VirtualBox and select "Virtual Media Manager


Step 13:  Now Select 1 by 1 all disk which you have created and click on "Modify"


Step 13:  Now one dialog box will open "Modify Medium Attributes", click on "Shareable" and click on "OK", Do for all the disk 1 by 1 whatever disk you want to make shareable. 



Step 14:  Now try to attach these disks in node-2, so select node "11g_node02" and click on "Settings". 


Step 15: Setting dialog box will popup, Select "Storage" option and In General choose "Controller:SATA" option, and click on + sing at right side.


Step 16: "VirtualBox - Question" dialog box will popup, This time you have to Click on "Choose existing disk".


Step 17: Add 1 by 1 all existing disks in node-2 which you have created for ASM, Voting and OCR disks.


Step 18: Now you can see in below image I have added all disks in node-2







Happy Sharing and Learning :)

Pradeep Kumar : )


+919972201100

Configure VirtualBox Version 5.0.20 Machine for 2 Node RAC & Install Linux 6.4 on both node.

 

How make VirtualBox Machine for 2 Node RAC(Step By Step)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



System Requirements : Below Installation tested on following  system requirements. 

Host Window : Windows 10 64 bit with 16 GB Ram, process Cor i7 6th Generation  CPU @ 3.20 GHz.
Virtual Box : 5.0.20
Oracle Linux : 6.4 Oracle Linux (Host Name) : 11g_node01 & 11g_node02


Step 1: Open the Virtual Box and click on "New" option in VB.



Step 2: It will open on dialog box "Create Virtual Machinechoose "Name and operation system"option  your machine name and type should be "Linux" and version should be "Oralce(64-bit)" And click on "Next" option. 



Step 3: Same popup window will show different option  "Memory size" In my case I have taken "2048 MB" and "Next".


Step 4: Same popup window will show different option "Hard diskchoose "Create a virtual hard disk now" option and click on "Create".



Step 5: Same popup window will show different option "Hard disk file typechoose "VDI (Virtualbox disk Image)" option and click on "Next".




Step 6: Same popup window will show different option "Storage on physical hard diskchoose "Dynamically allocated" option and click on "Next".



 Step 7: Same popup window will show different option "File location and size" click on  "folder icon".



 Step 8: Make  3 directories, 1st for Node 1, 2nd one for node 2 and 2rd one to save shard Hard Disks like ASM, OCR & Voting Disk. In My Case 11g_RAC is main directory and 11g_node01, 11g_node2 and 11g_shared sub directories. 



 Step 9: Save Node 1 Hard Disk in below showed location. 


Step 10: Select your machine "11g_node01" and click on "Setting" option to set some modification for batter performance. Setting dialog box will popup, Select "General" option and In General choose "Advanced" TAB option, change both option Shared Clipboard &  Drag'n'Drop to Bidirectional.


Step 11: Now select "Storage" option and Click on "Empty" disk option after select that in right side another option come in picture, click on "disk symbol" to choose your "Oracle Linux 6.4 ISO image". 


Step 12:  For RAC we need 2 Adapters 1st for public IP and 2nd is for Private IP but I have taken 3rd also for internet connection. Select "Network"option to set network configuration, select "Host-Only-Adopter" in Attached to option. 

Step 13: Select  2nd Adapter "Adapter 2" Click on "Enable Natwork Adapter" and select  option to set network configuration, select "Internal Network"  and make its name "privnet" like in Attached to option. 



Step 14: Select  3rd Adapter "Adapter 3" Click on "Enable Natwork Adapter" and select  option to set network configuration, select "Bridged Adapter" like in Attached to option. 



Step 15: Select "Shared Folders" and click on "Folder Icon" near to Access word and one window will popup "Add Share", click on "Drop Down Arrow" to select "other.." option and choose a folder for sharing data to "Host Windows to inside Oracle Linux 6.4". After selecting your Shared folder, tick both checked box "Read-only & Auto-Mount".  And click "OK" option in both windows "Add Share & Setting". 



Step 16: Select your machine "11g_node1 & 11g_node2" & click on "Start" option to start your both  machine to install Oracle Linux 6.4. Let's start to install Oracle Linux 6.4, Select and Enter "Install or upgrade an existing system" option.





Step 17: Select "Skip" and hit enter. 


Step 18: Select "OK" and hit enter. 



Step 19: Installation get started. 



Step 20: Click on "Next".



Step 21: Click on "Next".



Step 22: Select "Basic Storage Devices" option & Click on "Next".



Step 23: Choose "Yes, discard any data" option. 



Step 24: Choose any "Hostname"for both node in my case it's "11g-node01 and 11g-node02". On the same window come down and click on "Configure Network", 



Step 25: Once dialog box will open, select "System eth0" and click "Edit" option. 



Step 26: Now Edit window will popup, checked "Connect automatically" box & click on "IPV4 SettingTAB  .



Step 27: Choose "Manual" option via drop down arrow.


Step 28: Now Click on Add and give IP address "192.168.56.81", Netmask "255.255.255.0" & Gateway "0.0.0.0" Click on "Apply". (This for Public IP)


Step 29: Now select "System eth1" and click "Edit" option. 



Step 30 : Now checked "Connect automatically" box & click on "IPV4 SettingTABChoose "Manual" option via drop down arrow. Now Click on "Add"  and give IP address "192.168.10.1", Netmask "255.255.255.0" & Gateway "0.0.0.0" Click on "Apply". (This for Private IP)



Step 31: Now select "System eth2" and click "Edit" option. 



Step 32 : Now checked "Connect automatically" box & click on "IPV4 SettingTABChoose "Automatic (DHCP)" option via drop down arrow. Click on "Apply".  (This for Internet Connection IP).




Step 33 : Click on "Next".


Step 34: Select your "Country" in Map, In my case "India". Click on "Next" option. 


Step 35: Choose your "Root Password". 


Step 36: Select "Use Anyway" & click on "Next".


Step 37: Select "Use All Space" Option, click on "Review and modify partition layout" and Click on "Next".


Step 38: Select "lv_home" and click on "Edit". 


Step 39: Now reduce size to 5000 MB. & click on "OK".


Step 40: Select "lv_root" and click on "Edit".


Step 41: Now put total MB whatever you have seen in "MAX Size is ***** MB" in "Size (MB)" box and click on "OK".


Step 42: Click on "Next".


Step 43: Click on "Format" option. 


Step 44: Click on "Write changes to disk".


Step 45: Being formatting.


Step 46: Click on "Next".


Step 47: Select option here "Desktop" and select "Customize Now" option and click on "Next"


Step 48: Select "Base System" and select All right side option which Under Red Circle.


Step 49: Select "Base System" and select All right side option which Under Red Circle.


Step 50: Select "Servers" and select All right side option which Under Red Circle


Step 51: Select "Web Servicesand  unchecked everything  in right side


Step 52: Select "Databases" and  unchecked everything  in right side


Step 53: Select "System Management" and select All right side option which Under Red Circle.


Step 54: Select "Virtualization" and  unchecked everything  in right side


Step 55: Select "Desktops" don't touch anything  in right side


Step 56: Select "Application" don't touch anything  in right side.


Step 57: Select "Development" and only select "Development Tools"  in right side. 



Step 58: Wait for it, it stating installation process. 


Step 59: Click on "Reboot" option and wait to restart you machine. 


Step 60: Click on "Forward".


Step 61: Select "Yes, I agree to the Licences Agreement" & click on "Forward". 


Step 62: Select "No, I prefer to register at a later time." & click on "Forward". 


Step 63: Select "No thanks, I'll connect later" & click on "Forward".


Step 64: Click on "Forward".


Step 65: Click on "Forward".


Step 66: Click on "Yes".


Step 67: Click on "Forward".


Step 68: Click on "Finish".


Step 69: Enter "root" username & click on "Log In".


Step 70: Select "Device" Option in VirtualBox and click on "Insert Guest Addition CD image..".


Step 71: One dialog box will open, click on "Ok".


Step 72: In the same dialog box click on "Run".


Step 73: Wait for it, Console will open and it will perform some activity itself only. wait for option on screen "Press Return to close this window.. ". Now We done with Installation. 


This is for Node 2 (11g_node02) setting for IP Address.
**********************************************

Step 74 : Once dialog box will open, select "System eth0" and click "Edit" option.  (In 11g_node02)


Step 75 : Now checked "Connect automatically" box & click on "IPV4 SettingTABChoose "Manual" option via drop down arrow. Now Click on "Add"  and give IP address "192.168.56.82", Netmask "255.255.255.0" & Gateway "0.0.0.0Click on "Apply". (This for Public IP)


Step 76 : Select "System eth1" and click "Edit" option.  (In 11g_node02Now checked "Connect automatically" box & click on "IPV4 SettingTABChoose "Manual" option via drop down arrow. Now Click on "Add"  and give IP address "192.168.10.2", Netmask "255.255.255.0" & Gateway "0.0.0.0Click on "Apply". (This for Private IP)


Step 32 : Select "System eth1" and click "Edit" option. Now checked "Connect automatically" box & click on "IPV4 SettingTABChoose "Automatic (DHCP)" option via drop down arrow. Click on "Apply".  (This for Internet Connection IP).





Next following Link of  Add Disks in Node-1 for ASM, Make it shareable Disk & Add in Node-2(Step By Step)

https://oraerrors.blogspot.com/2016/10/how-to-add-disk-in-virtualbox-for-asm.html





Happy Sharing and Learning :)

Pradeep Kumar : )

+919972201100