This document provides instructions for installing an Oracle RAC environment on two virtual machines (VM). It includes:
1) Hardware and software requirements for the VMs including allocating 1GB RAM and 30GB disk space.
2) Creating the VMs with local and shared virtual disks for Oracle binaries, databases, and voting disks.
3) Configuring the first VM with the required disks, network adapters and settings.
4) Installing Oracle Linux on the first VM and configuring it for the RAC environment.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
84 views
RAC Installation Virtual Machine
This document provides instructions for installing an Oracle RAC environment on two virtual machines (VM). It includes:
1) Hardware and software requirements for the VMs including allocating 1GB RAM and 30GB disk space.
2) Creating the VMs with local and shared virtual disks for Oracle binaries, databases, and voting disks.
3) Configuring the first VM with the required disks, network adapters and settings.
4) Installing Oracle Linux on the first VM and configuring it for the RAC environment.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 12
RAC Installation
A) Prepare the Virtual machines
Hardware Requirements and Overview Allocate a minimum of 1 GB of memory to each virtual machine; reserve a minimum of 30GB of disk space for all the virtual machines. An overview of guest operating system environment: ost !ame "# $rocessor %emory rac1 "racle &nterprise 'inu( ) *3+,-it. 1 1 GB rac+ "racle &nterprise 'inu( ) *3+,-it. 1 1 GB An overview of the virtual disk layout: /irtual 0isk on ost /irtual 0isk on Guest /irtual 0evice !ode #i1e *%B. 0escription d:2vm2rac2localdisk.vmdk 3dev3sda1 3dev3sda+ 3dev3sda3 #4#5 0:0 +0G 3 mountpoint #wap space "racle -inaries d:2vm2rac2sharedstorage2ocfs+disk.vmdk 3dev3sd- #4#5 1:0 61+ "47#+ disk d:2vm2rac2sharedstorage2asmdisk1.vmdk 3dev3sdc #4#5 1:1 308+ A#% disk group 1 d:2vm2rac2sharedstorage2asmdisk+.vmdk 3dev3sdd #4#5 1:+ 308+ A#% disk group 1 d:2vm2rac2sharedstorage2asmdisk3.vmdk 3dev3sde #4#5 1:3 +0)9 A#% flash recovery area *:o configure shared storage; the guest "# should not share the same #4#5 -us with the shared storage. <se #4#50 for the guest "# and #4#51 for the shared disks.. An overview of the =A4 data-ase environment: ost !ame A#% 5nstance !ame =A4 5nstance !ame 0ata-ase !ame 0ata-ase 7ile #torage "4= > /oting 0isk rac1 ?A#%1 devd-1 devd- A#% "47#+ rac+ ?A#%+ devd-+ devd- A#% "47#+ @oull install the "racle ome on each node for redundancy. :he A#% and "racle =A4 instances share the same "racle ome on each node. Configure the First Virtual achine :o create and configure the first virtual machine; you will add virtual hardware devices such as disks and processors. Before proceeding with the install; create the windows folders to house the virtual machines and the shared storage. 0:2Amkdir vm2rac2rac1 0:2Amkdir vm2rac2rac+ 0:2Amkdir vm2rac2sharedstorage 0ou-le,click on the /%ware #erver icon on your desktop to -ring up the application: 1. $ress 4:=',! to create a new virtual machine. +. !ew /irtual %achine Bi1ard: 4lick on !e"t. 3. #elect the Appropriate 4onfiguration: a. /irtual machine configuration: #elect Custom. ). #elect a Guest "perating #ystem: a. Guest operating system: #elect #inu". -. /ersion: #elect Red Hat $nterprise #inu" %. 6. !ame the /irtual %achine: a. /irtual machine name: &nter rac1. b. 'ocation: &nter d:2vm2rac2rac1. C. #et Access =ights: a. Access rights: #elect a&e this virtual machine private. 8. #tartup 3 #hutdown "ptions: a. /irtual machine account: #elect 'ser that powers on the virtual machine. 9. $rocessor 4onfiguration: a. $rocessors: #elect "ne. D. %emory for the /irtual %achine: a. %emory: #elect ()*%+. 10. !etwork :ype: a. !etwork connection: #elect 'se ,ridged networ&ing. 11. #elect 53" Adapter :ypes: a. 53" adapter types: #elect #-I #ogic. 1+. #elect a 0isk: a. 0isk: #elect Create a new virtual dis&. 13. #elect a 0isk :ype: a. /irtual 0isk :ype: #elect -C-I .Recommended). 1). #pecify 0isk 4apacity: a. 0isk capacity: &nter +0GB. -. 0eselect Allocate all dis& space now. :o save space; you do not have to allocate all the disk space now. 16. #pecify 0isk 7ile: a. 0isk file: &nter localdisk.vmdk. -. 4lick on Finish. =epeat steps 1C to +) to create four virtual #4#5 hard disks , ocfs+disk.vmdk *61+%B.; asmdisk1.vmdk *3GB.; asmdisk+.vmdk *3GB.; and asmdisk3.vmdk *+GB.. 1C. /%ware #erver 4onsole: 4lick on $dit virtual machine settings. 18. /irtual %achine #ettings: 4lick on Add. 19. Add ardware Bi1ard: 4lick on !e"t. 1D. ardware :ype: a. ardware types: #elect Hard /is&. +0. #elect a 0isk: a. 0isk: #elect Create a new virtual dis&. +1. #elect a 0isk :ype: a. /irtual 0isk :ype: #elect -C-I .Recommended). ++. #pecify 0isk 4apacity: a. 0isk capacity: &nter 0.6GB. -. #elect Allocate all dis& space now. @ou do not have to allocate all the disk space if you want to save space. 7or performance reason; you will pre,allocate all the disk space for each of the virtual shared disk. 5f the si1e of the shared disks were to grow rapidly especially during "racle data-ase creation or when the data-ase is under heavy 0%' activity; the virtual machines may hang intermittently for a -rief period or crash in a few rare occasions. +3. #pecify 0isk 7ile: a. 0isk file: &nter d:2vm2rac2sharedstorage2ocfs+disk.vmdk. -. 4lick on Advanced. +). Add ardware Bi1ard: a. /irtual device node: #elect -C-I (0). -. %ode: #elect Independent; Persistent for all shared disks. c. 4lick on Finish. 7inally; add an additional virtual network card for the private interconnects and remove the floppy drive; if any. +6. /%ware #erver 4onsole: 4lick on &dit virtual machine settings. +C. /irtual %achine #ettings: 4lick on Add. +8. Add ardware Bi1ard: 4lick on !e"t. +9. ardware :ype: a. ardware types: &thernet Adapter. +D. !etwork :ype: a. ost,only: A private network shared with the host -. 4lick on Finish. 30. /irtual %achine #ettings: a. #elect Flopp1 and click on Remove. 31. /irtual %achine #ettings: 4lick on O2. odif1 virtual machine configuration file3 Additional parameters are reEuired to ena-le disk sharing -etween the two virtual =A4 nodes. "pen the configuration file; d:2vm2rac2rac12=ed at &nterprise 'inu( ).vm( and add the -old parameters listed -elow. config.version F G9G virtualB.version F G)G scsi0.present F G:=<&G scsi0.virtual0ev F GlsilogicG memsi1e F G10+)G scsi0:0.present F G:=<&G scsi0:0.file!ame F Glocaldisk.vmdkG ide1:0.present F G:=<&G ide1:0.file!ame F Gauto detectG ide1:0.device:ype F Gcdrom,rawG floppy0.file!ame F GA:G &thernet0.present F G:=<&G display!ame F Grac1G guest"# F Grhel)G priority.gra--ed F GnormalG priority.ungra--ed F GnormalG dis&3loc&ing 4 5FA#-$5 dis&#i,3dataCachea"-i6e 4 5)5 scsi(3shared+us 4 5virtual5 scsi1.present F G:=<&G scsi1:0.present F G:=<&G scsi1:0.file!ame F G0:2vm2rac2sharedstorage2ocfs+disk.vmdkG scsi1:0.mode F Gindependent,persistentG scsi(0)3device71pe 4 5dis&5 scsi1:1.present F G:=<&G scsi1:1.file!ame F G0:2vm2rac2sharedstorage2asmdisk1.vmdkG scsi1:1.mode F Gindependent,persistentG scsi(0(3device71pe 4 5dis&5 scsi1:+.present F G:=<&G scsi1:+.file!ame F G0:2vm2rac2sharedstorage2asmdisk+.vmdkG scsi1:+.mode F Gindependent,persistentG scsi(0*3device71pe 4 5dis&5 scsi1:3.present F G:=<&G scsi1:3.file!ame F G0:2vm2rac2sharedstorage2asmdisk3.vmdkG scsi1:3.mode F Gindependent,persistentG scsi(083device71pe 4 5dis&5 scsi1.virtual0ev F GlsilogicG ide1:0.autodetect F G:=<&G floppy0.present F G7A'#&G &thernet1.present F G:=<&G &thernet1.connection:ype F GhostonlyG Install and Configure $nterprise #inu" on the First Virtual achine 0ownload &nterprise 'inu( from "racle and un1ip the files: &nterprise,=),<),i39C,disc1.iso &nterprise,=),<),i39C,disc+.iso &nterprise,=),<),i39C,disc3.iso &nterprise,=),<),i39C,disc).iso 1. "n your /%ware #erver 4onsole; dou-le,click on the 40,="% device on the right panel and select the 5#" image for disk 1; &nterprise,=),<),i39C,disc1.iso. +. /%ware #erver console: o 4lick on -tart this virtual machine. 3. it $nter to install in graphical mode. ). #kip the media test and start the installation. 6. Belcome to enterprise 'inu(: 4lick on !e"t. C. 'anguage #election: Hselect your language preferenceA. 8. Iey-oard 4onfiguration: Hselect your key-oard preferenceA. 9. 5nstallation :ype: 4ustom. D. 0isk $artitioning #etup: %anually partition with 0isk 0ruid. o Barning: 4lick on 9es to initiali1e each of the device sda; sd-; sdc; sdd; and sde. 10. 0isk #etup: Allocate disk space on sda drive -y dou-le,clicking on 3dev3sda free space for the mount points *3 and 3u01. and swap space. @ou will configure the rest of the drives for "47#+ and A#% later. o Add $artition: %ount $oint: 3 7ile #ystem :ype: e(t3 ;#i1e C GB 7ile #ystem :ype: #wap ;#i1e + GB %ount $oint: 3u01 7ile #ystem :ype: e(t3 ;#i1e 1+ GB 11. Boot 'oader 4onfiguration: #elect only the default 3dev3sda1 and leave the rest unchecked. 1+. !etwork 4onfiguration: a. !etwork 0evices #elect and edit eth0 1. 0e,select Configure 'sing /HCP. +. #elect Activate on ,oot. 3. 5$ Address: &nter 1D+.1C9.+.131. 4. !etmask: &nter +66.+66.+66.0. #elect and edit eth1 1. 0e,select Configure 'sing /HCP. +. #elect Activate on ,oot. 3. 5$ Address: &nter 10.10.10.31. 4. !etmask: &nter +66.+66.+66.0. -. ostname #elect manuall1 and enter rac1.d-alounge.com. c. %iscellaneous #ettings Gateway: &nter 1D+.1C9.+.1. $rimary 0!#: HoptionalA #econdary 0!#: HoptionalA 13. 7irewall 4onfiguration: a. #elect !o Firewall. 5f firewall is ena-led; you may encounter an error; mount.ocfs+: :ransport endpoint is not connected while mounting when you attempt to mount ocfs+ file system later in the set up. -. &na-le #&'inu(J: Active. 14. Barning !o 7irewall: 4lick on Proceed. 16. Additional 'anguage #upport: Hselect the desired languageA. 1C. :ime Kone #election: Hselect your time 1oneA 18. #et =oot $assword: Henter your root passwordA 19. $ackage Group #election: a. #elect : ;indow -1stem. -. #elect <!O$ /es&top $nvironment. c. #elect $ditors. 4lick on /etails and select your preferred te(t editor. d. #elect <raphical Internet. e. #elect 7e"t=,ased Internet. f. #elect Office>Productivit1. g. #elect -ound and Video. h. #elect <raphics. i. #elect -erver Configuration 7ools. L. #elect F7P -erver. k. #elect #egac1 !etwor& -erver. 4lick on /etails. 1. #elect rsh=server. +. #elect telnet=server. l. #elect /evelopment 7ools. m. #elect #egac1 -oftware /evelopment. n. #elect Administration 7ools. o. #elect -1stem 7ools. 4lick on /etails. #elect the following packages in addition to the default selected packages. 1. #elect ocfs=*=*3?3@=%*3)3)3)3($# *driver for <$ kernel.; or select ocfs=*=*3?3@=%*3)3)3)3($#smp *driver for #%$ kernel.. +. #elect ocfs*=tools. 3. #elect ocfs*console. ). #elect oracle oracleasm=*3?3@=%*3)3)3)3($# *driver for <$ kernel. or select oracleasm=*3?3@=%*3)3)3)3($#smp *driver for #%$ kernel.. 6. #elect s1sstat. p. #elect Printing -upport. 1D. A-out to 5nstall: 4lick on !e"t. +0. =eEuired 5nstall %edia: 4lick on Continue. +1. 4hange 40,="%: "n your /%ware #erver 4onsole; press 4:=',0 to -ring up the /irtual %achine #ettings. 4lick on the 40,="% device and select the 5#" image for disk +; &nterprise,=),<),i39C,disc+.iso; followed -y the 5#" image for disk 3; &nterprise,=),<),i39C,disc3.iso. ++. At the end of the installation: a. "n your /%ware #erver 4onsole; press 4:=',0 to -ring up the /irtual %achine #ettings. 4lick on the 40,="% device and select 'se ph1sical drive. -. 4lick on Re,oot. +3. Belcome: 4lick on !e"t. +). 'icense Agreement: #elect 9esA I agree to the #icense Agreement. +6. 0ate and :ime: #et the date and time. +C. 0isplay: Hselect your desired resolutionA. +8. #ystem <ser: 'eave the entries -lank and click on !e"t. +9. Additional 40s: 4lick on !e"t. +D. 7inish #etup: 4lick on !e"t3 4ongratulations; you have Lust installed &nterprise 'inu( on /%ware #erverM Install Vware 7ools3 /%ware :ools is reEuired to synchroni1e the time -etween the host and guest machines. "n the /%ware 4onsole; log in as the root user; 1. 4lick on V and then select Install Vware 7ools. 2. rac1 /irtual %achine: 4lick on Install. 3. 0ou-le,click on the /%ware :ools icon on your desktop. 4. cdrom: 0ou-le,click on Vware7ools=(3)3(=*@@@?3i8B?3rpm. 6. 4ompleted #ystem $reparation: 4lick on Continue. C. "pen up a terminal and e(ecute vmware=config=tools3pl. o &nter the desired display si1e. 4opy the 7irst /irtual %achine to create the #econd /irtual %achine. Create and Configure the -econd Virtual achine :o create the second virtual machine; simply shut down the first virtual machine; copy all the files in d:2vm2rac2rac1 to d:2vm2rac2rac+ and perform a few configuration changes. odif1 networ& configuration3 1. As the root user on rac1; N shutdown h now +. "n your host system; copy all the files in rac1 folder to rac+. 0:2Acopy d:2vm2rac2rac1 d:2vm2rac2rac+ 3. "n your /%ware #erver 4onsole; press 4:='," to open the second virtual machine; d:2rac2rac+2=ed at &nterprise 'inu( ).vm(. ). /%ware #erver console: o =ename the virtual machine name from rac1 to rac+. =ight,click on the new rac( ta- you have Lust opened and select -ettings. #elect the Options ta-. 1. /irtual machine name: &nter rac+. o 4lick on -tart this virtual machine to start rac+; leaving rac1 powered off. o rac+ /irtaul %achine: #elect Create a new identifier. 6. 'og in as the root user and e(ecute system,config,network to modify the network configuration. IP Address0 0ou-le,click on each of the &thernet devices and use the ta-le -elow to make the necessary changes. 0evice 5$ Address #u-net mask 0efault gateway address eth0 1D+.1C9.+.13+ +66.+66.+66.0 1D+.1C9.+.1 eth1 10.10.10.3+ +66.+66.+66.0 Hleave emptyA AC Address0 !avigate to the Hardware /evice ta- and pro-e for a new %A4 address for each of the &thernet device. #et the ostname . 5n my case it was set to : rac+.d-alounge.com 7inally; activate each of the &thernet device. +) +$<I! 7H$ RAC -$7'P O! O!$ !O/$ Create dis& partitions for OCF-* and Oracle A-3 $repare a set of raw disks for "47#+ *3dev3sd-.; and for "racle A#% *3dev3sdc; 3dev3sdd; 3dev3sde.. As the root userA e"ecute C fdis& >dev>sd, 4ommand *m for help.: n 4ommand action e e(tended p primary partition *1,). p $artition num-er *1,).: 1 . . . 4ommand *m for help.: w :he partition ta-le has -een alteredM 4alling ioctl*. to re,read partition ta-le. #yncing disks. C fdis& >dev>sdc 4ommand *m for help.: n 4ommand action e e(tended p primary partition *1,). p $artition num-er *1,).: 1 . . . 4ommand *m for help.: w :he partition ta-le has -een alteredM 4alling ioctl*. to re,read partition ta-le. #yncing disks. C fdis& >dev>sdd 4ommand *m for help.: n 4ommand action e e(tended p primary partition *1,). p $artition num-er *1,).: 1 . . . 4ommand *m for help.: w :he partition ta-le has -een alteredM 4alling ioctl*. to re,read partition ta-le. #yncing disks. C fdis& >dev>sde 4ommand *m for help.: n 4ommand action e e(tended p primary partition *1,). p $artition num-er *1,).: 1 . . . 4ommand *m for help.: w :he partition ta-le has -een alteredM 4alling ioctl*. to re,read partition ta-le. #yncing disks. Chec& the dis&s C fdis& =l O! +O7H RAC !O/$- Create the oracle user3 As the root user; e(ecute N groupadd oinstall N groupadd d-a N mkdir ,p 3e(port3home3oracle 3ocfs N useradd ,d 3e(port3home3oracle ,g oinstall ,G d-a ,s 3-in3ksh oracle N chown oracle:d-a 3e(port3home3oracle 3u01 N passwd oracle !ew $assword: =e,enter new $assword: passwd: password successfully changed for oracle O! +O7H RAC !O/$- Create the oracle user environment file3 A- oracle 'ser !O/$ ( 0 44444444444444444444 >e"port>home>oracle>3profile e(port $#1FGO3-in3hostname ,sO,A G e(port &05:"=Fvi e(port "=A4'&P#50Fdevd-1 e(port "=A4'&PBA#&F3u013app3oracle e(port "=A4'&P"%&FQ"=A4'&PBA#&3product310.+.03d-P1 e(port "=AP4=#P"%&FQ"=A4'&PBA#&3product310.+.03crsP1 e(port '0P'5B=A=@P$A:FQ"=A4'&P"%&3li- e(port $A:FQ"=A4'&P"%&3-in:Q"=AP4=#P"%&3-in:3-in: 3usr3-in:3usr3s-in:3usr3local3-in:3usr3R11=C3-in umask 0++ A- oracle 'ser !O/$ * 0 44444444444444444444 >e"port>home>oracle>3profile e(port $#1FGO3-in3hostname ,sO,A G e(port &05:"=Fvi e(port "=A4'&P#50Fdevd-+ e(port "=A4'&PBA#&F3u013app3oracle e(port "=A4'&P"%&FQ"=A4'&PBA#&3product310.+.03d-P1 e(port "=AP4=#P"%&FQ"=A4'&PBA#&3product310.+.03crsP1 e(port '0P'5B=A=@P$A:FQ"=A4'&P"%&3li- e(port $A:FQ"=A4'&P"%&3-in:Q"=AP4=#P"%&3-in:3-in: 3usr3-in:3usr3s-in:3usr3local3-in:3usr3R11=C3-in umask 0++ O! +O7H !O/$- Create the files1stem director1 structure3 As the oracle user; e(ecute rac1,A mkdir ,p Q"=A4'&PBA#&3admin rac1,A mkdir ,p Q"=A4'&P"%& rac1,A mkdir ,p Q"=AP4=#P"%& rac1,A mkdir ,p 3u013oradata3devd- O! +O7H !O/$- Increase the shell limits for the Oracle user3 <se a te(t editor and add the lines listed -elow to 3etc3security3limits.conf; 3etc3pam.d3login; and 3etc3profile. >etc>securit1>limits3conf oracle soft nproc +0)8 oracle hard nproc 1C39) oracle soft nofile 10+) oracle hard nofile C663C >etc>pam3d>login