asm 11gr2 installation & configuration€¦ · asm 11gr2 installation & configuration...

Post on 15-Apr-2018

276 Views

Category:

Documents

6 Downloads

Preview:

Click to see full reader

TRANSCRIPT

1/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

ASM 11gR2 Installation & Configuration A) This document explains, in detail, the steps required to install the Oracle Grid Infrastructure 11gR2 (11.2.0.1.0), enable the OHAS services, create an ASM instance and diskgroups through the OUI (Oracle Universal Installer). B) Note: Before start with the installation, please check the required hardware & OS requirements in the next manual: http://www.oracle.com/pls/db112/portal.portal_db?selected=11&frame= Oracle® Grid Infrastructure Installation Guide 11g Release 2 (11.2) for <your specific platform> Installation steps: 1) Connect as root user (password: oracle):

2/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

2) Open a Terminal session:

3) Select the IP address (for this example we will use: 192.168.187.128) provided by the host from the eth0 interface:

3/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

4) Using the IP address from the eth0 interface (for this example: 192.168.187.128) connect thru a putty or ssh session as follow (Login: root / Password: oracle):

4/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

5) Verify the RAM, swap & tmp in the system, the minimum required RAM is 1.5 GB for Oracle Grid Infrastructure for a cluster, or 2.5 GB for Grid Infrastructure for a cluster and Oracle Server RAC. The minimum required swap space is 1.5 GB. Oracle recommends that you set swap space to 1.5 times the amount of RAM for systems with 2 GB of RAM or less. For systems with 2 GB to 16 GB RAM, use swap space equal to RAM. For systems with more than 16 GB RAM, use 16 GB of RAM for swap space. Ensure that you have at least 1 GB of space in /tmp. If this space is not available, then increase the size, or delete unnecessary files in /tmp.

6) Ensure you have at least 4.5 GB of space for the grid infrastructure for a (Grid home):

5/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

7) Create the oracle OS user and oinstall & dba groups and create base directories

# groupadd -g 1000 oinstall # groupadd -g 1200 dba # useradd -u 1100 -g oinstall -G dba oracle # mkdir -p /u01/app/11.2.0/grid # mkdir -p /u01/app/oracle # chown -R oracle:oinstall /u01 # chmod -R 775 /u01/

6/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

8) Install the ASMLIB RPMs: http://www.oracle.com/technology/software/tech/linux/asmlib 8.1) For this example we are using the next kernel release: [root@asmteam /]# uname -r 2.6.18-164.el5PAE 8.2) So the next 3 RPMs need to be downloaded: http://www.oracle.com/technology/software/tech/linux/asmlib/rhel5.html =)> Intel IA32 (x86) Architecture ==)> Library and Tools a) oracleasm-support-2.1.3-1.el5.i386.rpm b) oracleasmlib-2.0.4-1.el5.i386.rpm ==)> Drivers for kernel 2.6.18-164.el5 c) oracleasm-2.6.18-164.el5PAE-2.0.5-1.el5.i686.rpm 8.3) They can be installed as described in the next document: http://www.oracle.com/technology/tech/linux/asmlib/install.html 8.4) Validate oracleasm RPMs were installed: [root@asmteam asmlibRPMs]# rpm -qa | grep oracleasm-support-2.1.3-1.el5 oracleasm-support-2.1.3-1.el5 [root@asmteam asmlibRPMs]# rpm -qa | grep oracleasmlib-2.0.4-1.el5 oracleasmlib-2.0.4-1.el5 [root@asmteam asmlibRPMs]# rpm -qa | grep oracleasm-2.6.18-164.el5PAE-2.0.5-1.el5 oracleasm-2.6.18-164.el5PAE-2.0.5-1.el5

7/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

9) List the disks available for ASM/ASMLIB, for this example we will use 3 SCSI disks of 10 GB each:

10) Check if the partitions exist: # ls -l /dev/sdb1 /dev/sdc1 /dev/sdd1

8/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

11) If the partitions do not exists then create one partition per disk:

9/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

10/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

11/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

12) Setup the Oracle ASMLIB API (Linux only):

13) Create the ASMLIB disks on the 3 SCSI disk partitions:

12/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

14) Download the “Oracle Database 11g Release 2 Grid Infrastructure (11.2.0.1.0) for Linux x86” from http://www.oracle.com/technology/software/products/database/index.html =)> linux_11gR2_grid.zip (980,831,749 bytes) (cksum - 3583041487) 15) Download the “Oracle Database 11g Release 2 (11.2.0.1.0) for Linux x86” from http://www.oracle.com/technology/software/products/database/index.html =)> linux_11gR2_database_1of2.zip (1,285,396,902 bytes) (cksum - 2237015228) =)> linux_11gR2_database_2of2.zip (995,359,177 bytes) (cksum - 2649514514) 16) FTP the “linux_11gR2_grid.zip, linux_11gR2_database_1of2.zip & linux_11gR2_database_2of2.zip ” to your Linux box: 16.1) Create a stage directory, for this example I am creating it at /u01 filesystem: # mkdir /u01/stage 16.2) Then upload the three *.zip files to your Linux box and place the files at your staging directory:

13/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

16.3) Uncompress the three zip files:

[root@asmteam /]# unzip linux_11gR2_grid.zip; unzip linux_11gR2_database_1of2.zip; unzip linux_11gR2_database_2of2.zip 16.4) You will see 2 new directories (grid & database) on the /u01/stage directory:

14/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

17) Switch to the oracle OS user, setup & set the environment variables in the initialization file (for this example we are using bash shell (.bash_profile)): ORACLE_HOME=/u01/app/11.2.0/grid ORACLE_SID=+ASM PATH=$ORACLE_HOME/bin:$PATH export ORACLE_HOME export ORACLE_SID export PATH echo $ORACLE_HOME export $ORACLE_SID export $PATH

15/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

16/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18) Install the Oracle Grid Infrastructure 11gR2 from the graphical session as “oracle” OS user (for this example we will use VNCserver): 18.1) Start a vncserver & set the Password = “oracle”:

17/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.2) Connect to the vncserver using the IP address associated with the host:

18.3) Execute the OUI (Oracle Universal Installer) as “oracle” OS user: $ /u01/stage/grid/runInstaller

18/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.4) Select: Install and Configure Grid Infrastructure for a Standalone Server.

19/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.5) Select the desired languages.

20/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.6) Create the desired diskgroups through the “Create ASM Disk Group” window, (for this Example we are creating the DATA diskgroup, as Normal redundancy diskgroup, using the ORCL:ASMDISK1 & ORCL:ASMDISK2 ASMLIB disks):

21/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.7) Set the desired password for the ASM & ASMSNMP users through the “Specify ASM Password” window:

18.8) If you password does not conform the Oracle recommended standards then you will receive the next warning, so you can just ignore it & press [Yes] or provide a stronger password.

22/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.9) Assign the OS groups for the ASM database Administrator, ASM Instance Administrator Operator & ASM instance Administrator through the “Privileged Operating System Groups” window, (for this example we will use dba OS group for the 3 ASM groups, but you are always welcome to specify different OS groups to enforce more security and separate tasks & roles):

23/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.10) Specify the Oracle Home & Oracle Base directories through the “Specify Installation Location” window: Oracle Base: /u01/app/oracle Oracle Grid Home: /u01/app/11.2.0/grid

24/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.11) Accept the Oracle Inventory Location, by pressing the [Next] button through the “Create Inventory” window:

25/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.12) Some OS requirements (swap & kernel parameters) did not pass the OUI verification, please review each requirement, through the “Perform Prerequisites Checks” window (below):

26/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.13) Please press the [Fix & Check Again] button (above) to correct the prerequisites, then the “Execute Fixup Script” window will be displayed:

18.14) Then run the runfixup.sh script as root user to implement the fixes:

27/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.15) Press the [OK] button after execute the runfixup.sh script through the “Execute Fixup Script” window:

28/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.16) The required kernel parameters were adjusted but the swap area still needs to be increased:

29/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.17) You can ask your SA to resize the swap area as suggested by the OUI (see above), for this example we will add a 1GB swap file (on the ‘/’ directory) as described in the next document: http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html

Note: Enable it at boot time, edit /etc/fstab and include the new swap device (/swapfile):

30/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.18) After the swap area was increased please press the [Check Again] button, through the “Perform Prerequisites Checks” window (below):

31/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.19) The “Summary” window will appear, so please review it and press the [Finish] button (below) to start with the Grid Infrastructure Installation & ASM instance creation:

32/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.20) Then just monitor the progress of this installation:

33/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

34/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

35/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.21) Execute the orainstRoot.sh & root.sh scripts as root user:

36/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

37/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.22) Then return to the “Execute Configuration Scripts” window and press the [OK] button:

38/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.23) Continue monitoring the Post Installation / configuration steps:

39/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

18.24) Confirm the 11gR2 Grid Infrastructure Installation completed successfully, then press the [Close] button:

40/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

19) Verify the OHAS & CSS services are up and running:

41/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

20) Verify the ASM instance is up and running:

42/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

21) Run the ASMCA through a graphical session and create the RECO diskgroup on the ORCL:ASMDISK3 (/dev/oracleasm/disks/ASMDISK3) ASMLIB disk: 21.1) Select the [Create] button (below):

43/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

21.2) Specify the Disk Group Name as RECO (as External redundancy diskgroup), select the ORCL:ASMDISK3 disk (below), press the [Show Advanced Options] button to display the AU & Compatibility attributes (these are modifiable but for this example we are using the default values):

44/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

21.3) And finally press the [OK] button to create the RECO diskgroup:

45/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

46/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

47/47

ASM 11gR2 Installation & Configuration Author: Esteban Bernal

21.4) Review the diskgroup creation (below) and press the [Exit] button:

top related