Gavinsoorma.com



Install and configure Oracle Grid Infrastructure 12c Release 2Part 2Create the shared storageCreate 4 disks to be configured with ASMASM1: 40 GBASM2: 5 GBASM3: 5 GBASM4:12 GBSelect the option Create new disk Modify the disks to be Shareable Click on Apply - do the same for all the other ASM disks Attach the shared disks to rac02 Select ASM1 and click on Open – do the same for the other ASM disksStart rac01 and rac02View the disk partitions[root@rac01 ~]# fdisk -lDisk /dev/sda: 32.2 GB, 32212254720 bytes, 62914560 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0x0009d876 Device Boot Start End Blocks Id System/dev/sda1 * 2048 1026047 512000 83 Linux/dev/sda2 1026048 62914559 30944256 8e Linux LVMDisk /dev/sdb: 42.9 GB, 42949672960 bytes, 83886080 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0x5ad856f4 Device Boot Start End Blocks Id System/dev/sdb1 2048 83886079 41942016 83 LinuxDisk /dev/sdc: 5368 MB, 5368709120 bytes, 10485760 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0xcc4700ee Device Boot Start End Blocks Id System/dev/sdc1 2048 10485759 5241856 83 LinuxDisk /dev/sdd: 5368 MB, 5368709120 bytes, 10485760 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk label type: dosDisk identifier: 0x1f57e96f Device Boot Start End Blocks Id System/dev/sdd1 2048 10485759 5241856 83 LinuxDisk /dev/sde: 12.9 GB, 12884901888 bytes, 25165824 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mapper/ol-swap: 3221 MB, 3221225472 bytes, 6291456 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk /dev/mapper/ol-root: 28.5 GB, 28462546944 bytes, 55590912 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesFormat the disks[root@rac01 ~]#[root@rac01 ~]# fdisk /dev/sdbWelcome to fdisk (util-linux 2.23.2).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.Device does not contain a recognized partition tableBuilding a new DOS disklabel with disk identifier mand (m for help): nPartition type: p primary (0 primary, 0 extended, 4 free) e extendedSelect (default p): Using default response pPartition number (1-4, default 1): First sector (2048-83886079, default 2048): Using default value 2048Last sector, +sectors or +size{K,M,G} (2048-83886079, default 83886079): Using default value 83886079Partition 1 of type Linux and of size 40 GiB is setCommand (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.[root@rac01 ~]# [root@rac01 ~]# fdisk /dev/sdcWelcome to fdisk (util-linux 2.23.2).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.Device does not contain a recognized partition tableBuilding a new DOS disklabel with disk identifier mand (m for help): nPartition type: p primary (0 primary, 0 extended, 4 free) e extendedSelect (default p): Using default response pPartition number (1-4, default 1): First sector (2048-10485759, default 2048): Using default value 2048Last sector, +sectors or +size{K,M,G} (2048-10485759, default 10485759): Using default value 10485759Partition 1 of type Linux and of size 5 GiB is setCommand (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.[root@rac01 ~]# fdisk /dev/sddWelcome to fdisk (util-linux 2.23.2).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.Device does not contain a recognized partition tableBuilding a new DOS disklabel with disk identifier mand (m for help): nPartition type: p primary (0 primary, 0 extended, 4 free) e extendedSelect (default p): Using default response pPartition number (1-4, default 1): First sector (2048-10485759, default 2048): Using default value 2048Last sector, +sectors or +size{K,M,G} (2048-10485759, default 10485759): Using default value 10485759Partition 1 of type Linux and of size 5 GiB is setCommand (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.[root@rac01 ~]# fdisk /dev/sdeWelcome to fdisk (util-linux 2.23.2).Changes will remain in memory only, until you decide to write them.Be careful before using the write command.Device does not contain a recognized partition tableBuilding a new DOS disklabel with disk identifier mand (m for help): nPartition type: p primary (0 primary, 0 extended, 4 free) e extendedSelect (default p): Using default response pPartition number (1-4, default 1): First sector (2048-25165823, default 2048): Using default value 2048Last sector, +sectors or +size{K,M,G} (2048-25165823, default 25165823): Using default value 25165823Partition 1 of type Linux and of size 12 GiB is setCommand (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.[root@rac01 ~]#Create the ASM disks[root@rac01 ~]#[root@rac01 ~]# /usr/sbin/oracleasm createdisk ASM1 /dev/sdb1Writing disk header: doneInstantiating disk: done[root@rac01 ~]# /usr/sbin/oracleasm createdisk ASM2 /dev/sdc1Writing disk header: doneInstantiating disk: done[root@rac01 ~]# /usr/sbin/oracleasm createdisk ASM3 /dev/sdd1Writing disk header: doneInstantiating disk: done[root@rac01 ~]# /usr/sbin/oracleasm createdisk ASM4 /dev/sde1Writing disk header: doneInstantiating disk: done[root@rac01 ~]# /usr/sbin/oracleasm scandisksReloading disk partitions: doneCleaning any stale ASM disks...Scanning system for ASM disks...[root@rac01 ~]# /usr/sbin/oracleasm listdisksASM1ASM2ASM3ASM4Ensure the ASM disks are also visible on rac02 [root@rac01 ~]# ssh root@rac02The authenticity of host 'rac02 (192.168.56.11)' can't be established.ECDSA key fingerprint is 64:6e:21:1e:04:3c:17:31:ed:96:8d:8b:f9:8d:c2:4b.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'rac02,192.168.56.11' (ECDSA) to the list of known hosts.root@rac02's password: Last login: Thu Jul 13 23:34:25 2017[root@rac02 ~]# /usr/sbin/oracleasm scandisksReloading disk partitions: doneCleaning any stale ASM disks...Scanning system for ASM disks...Instantiating disk "ASM1"Instantiating disk "ASM2"Instantiating disk "ASM3"[root@rac02 ~]# /usr/sbin/oracleasm listdisksASM1ASM2ASM3ASM4[root@rac02 ~]# exitlogoutConnection to rac02 closed.Check the disk ownership[root@rac01 ~]# ls -l /dev/oracleasm/disks/*brw-rw---- 1 grid asmadmin 8, 17 Mar 10 21:46 /dev/oracleasm/disks/ASM1brw-rw---- 1 grid asmadmin 8, 33 Mar 10 21:39 /dev/oracleasm/disks/ASM2brw-rw---- 1 grid asmadmin 8, 49 Mar 10 21:39 /dev/oracleasm/disks/ASM3brw-rw---- 1 grid asmadmin 8, 65 Mar 10 21:44 /dev/oracleasm/disks/ASM4Install Grid Infrastructure 12c Release 2 [root@rac01 ~]# xhost + access control disabled, clients can connect from any hostCreate the directory structure for the Grid Infrastructure installation on both VMs[root@rac01 ~]# su - grid [grid@rac01 ~]$ cd /u01/app[grid@rac01 app]$ mkdir -p 12.2.0/grid[grid@rac01 app]$ ssh grid@rac02The authenticity of host 'rac02 (192.168.56.101)' can't be established.ECDSA key fingerprint is 5c:53:57:36:7c:ad:cc:a2:78:50:4f:91:41:ac:cb:db.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'rac02,192.168.56.101' (ECDSA) to the list of known hosts.grid@rac02's password: [grid@rac02 ~]$ cd /u01/app[grid@rac02 app]$ mkdir -p 12.2.0/grid[grid@rac02 app]$ exitlogoutConnection to rac02 closed.Download the Oracle 12c Release 2 Grid Infrastructure software and unzip the downloaded 12c Release 2 Grid Infrastructure software [grid@rac01 app]$ cd /media/sf_software/[grid@rac01 sf_software]$ cd linux64_12201_grid_home[grid@rac01 sf_software]$ cp linuxx64_12201_grid_home.zip /u01/app/12.2.0/grid [grid@rac01 sf_software]$ cd /u01/app/12.2.0/grid/[grid@rac01 grid]$ lslinuxx64_12201_grid_home.zip[grid@rac01 grid]$ unzip linuxx64_12201_grid_home.zipExecute the gridSetup.sh script [grid@rac01 grid]$ export DISPLAY=:0.0[grid@rac01 grid]$ ./gridSetup.shLaunching Oracle Grid Infrastructure Setup Wizard...Click on Fix & Check Again Note: Even though the soft limit for maximum stack size has been increased to 10240 (the required value), we are still seeing an error when the prerequisite checking is performed by the Universal Installer.[grid@rac01 ~]$ ulimit -Ss10240Read the MOS note:Oracle 12.2.0.1 Installation Fails With "PRVG-0449 : Proper soft limit for maximum stack size was not found on node "node1" [Expected >= "10240" ; Found = "8192"]" (Doc ID 2287806.1)Tick the box Ignore AllMonitor the progress of the root script execution by examining the alert.log file [grid@rac01 trace]$ pwd/u01/app/grid/diag/crs/rac01/crs/trace[grid@rac01 trace]$ ls -lrt alert*-rw-rw---- 1 grid oinstall 7615 Mar 9 17:00 alert.log[grid@rac01 trace]$……2018-03-09 17:01:41.099 [ORAAGENT(3335)]CRS-8500: Oracle Clusterware ORAAGENT process is starting with operating system process ID 33352018-03-09 17:01:41.496 [ORAAGENT(3412)]CRS-8500: Oracle Clusterware ORAAGENT process is starting with operating system process ID 34122018-03-09 17:01:41.571 [EVMD(3433)]CRS-8500: Oracle Clusterware EVMD process is starting with operating system process ID 34332018-03-09 17:01:41.573 [MDNSD(3431)]CRS-8500: Oracle Clusterware MDNSD process is starting with operating system process ID 34312018-03-09 17:01:42.707 [GPNPD(3497)]CRS-8500: Oracle Clusterware GPNPD process is starting with operating system process ID 34972018-03-09 17:01:43.728 [GIPCD(3531)]CRS-8500: Oracle Clusterware GIPCD process is starting with operating system process ID 35312018-03-09 17:01:43.747 [GPNPD(3497)]CRS-2328: GPNPD started on node rac01. 2018-03-09 17:01:49.686 [CSSDMONITOR(3564)]CRS-8500: Oracle Clusterware CSSDMONITOR process is starting with operating system process ID 35642018-03-09 17:01:49.853 [CSSDAGENT(3582)]CRS-8500: Oracle Clusterware CSSDAGENT process is starting with operating system process ID 35822018-03-09 17:01:50.032 [OCSSD(3595)]CRS-8500: Oracle Clusterware OCSSD process is starting with operating system process ID 35952018-03-09 17:01:51.065 [OCSSD(3595)]CRS-1713: CSSD daemon is started in hub mode……At the end of the Grid Infrastructure installation a Cluster Verification Utility check is performed which fails. This is because of the same prerequisite checks which failed before the installation was performed and even failing now after the installation – namely the NTP server related checks.Click on Yes Verify Clusterware post-installation [root@rac01 ~]# cd /u01/app/12.2.0/grid/bin[root@rac01 bin]# ./crsctl check cluster -all**************************************************************rac01:CRS-4537: Cluster Ready Services is onlineCRS-4529: Cluster Synchronization Services is onlineCRS-4533: Event Manager is online**************************************************************rac02:CRS-4537: Cluster Ready Services is onlineCRS-4529: Cluster Synchronization Services is onlineCRS-4533: Event Manager is online[root@rac01 bin]# ./crsctl stat res -t--------------------------------------------------------------------------------Name Target State Server State details --------------------------------------------------------------------------------Local Resources--------------------------------------------------------------------------------ora.ASMNET1LSNR_ASM.lsnr ONLINE ONLINE rac01 STABLE ONLINE ONLINE rac02 STABLEora.LISTENER.lsnr ONLINE ONLINE rac01 STABLE ONLINE ONLINE rac02 STABLEora.OCR.dg ONLINE ONLINE rac01 STABLE ONLINE ONLINE rac02 STABLEora.chad ONLINE ONLINE rac01 STABLE ONLINE ONLINE rac02 work ONLINE ONLINE rac01 STABLE ONLINE ONLINE rac02 STABLEora.ons ONLINE ONLINE rac01 STABLE ONLINE ONLINE rac02 STABLEora.proxy_advm OFFLINE OFFLINE rac01 STABLE OFFLINE OFFLINE rac02 STABLE--------------------------------------------------------------------------------Cluster Resources--------------------------------------------------------------------------------ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE rac02 STABLEora.LISTENER_SCAN2.lsnr 1 ONLINE ONLINE rac01 STABLEora.LISTENER_SCAN3.lsnr 1 ONLINE ONLINE rac01 STABLEora.MGMTLSNR 1 ONLINE ONLINE rac01 169.254.28.186 192.1 68.10.10,STABLEora.asm 1 ONLINE ONLINE rac01 Started,STABLE 2 ONLINE ONLINE rac02 Started,STABLE 3 OFFLINE OFFLINE STABLEora.cvu 1 ONLINE ONLINE rac01 STABLEora. 1 ONLINE ONLINE rac01 STABLEora. 1 ONLINE ONLINE rac02 STABLEora.mgmtdb 1 ONLINE ONLINE rac01 Open,STABLEora.qosmserver 1 ONLINE ONLINE rac01 STABLEora. 1 ONLINE ONLINE rac02 STABLEora. 1 ONLINE ONLINE rac01 STABLEora. 1 ONLINE ONLINE rac01 STABLE--------------------------------------------------------------------------------[root@rac01 bin]#[root@rac01 bin]# ./ocrcheckStatus of Oracle Cluster Registry is as follows : Version : 4 Total space (kbytes) : 409568 Used space (kbytes) : 2108 Available space (kbytes) : 407460 ID : 1889087435 Device/File Name : +OCR Device/File integrity check succeeded Device/File not configured Device/File not configured Device/File not configured Device/File not configured Cluster registry integrity check succeeded Logical corruption check succeeded[root@rac01 bin]# ./ocrcheck -localStatus of Oracle Local Registry is as follows : Version : 4 Total space (kbytes) : 409568 Used space (kbytes) : 872 Available space (kbytes) : 408696 ID : 1170819979 Device/File Name : /u01/app/12.2.0/grid/cdata/rac01.olr Device/File integrity check succeeded Local registry integrity check succeeded Logical corruption check succeeded[root@rac01 bin]# ./crsctl query css votedisk## STATE File Universal Id File Name Disk group-- ----- ----------------- --------- --------- 1. ONLINE 464cf56e636f4f82bf37f94fc201e277 (/dev/oracleasm/disks/ASM1) [OCR]Located 1 voting disk(s). ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download