Oracle Grid Infrastructure 18c installation and patching on Linux - step by step
This post has been added prior to 18.3 official notes which means that we are going to patch initial version of 18.0.0.0 with patch 28096386 in order to upgrade Software to 18.3 version
We will use software which doesn’t exist in delivery anymore but there are new version :)
Oracle Database Grid Infrastructure (Exadata and SuperCluster) 18.0.0.0.0 for Linux x86 - 64
V974952-01.zip Oracle Database Grid Infrastructure 18.0.0.0.0
Now this has been replaced by
Oracle Database Grid Infrastructure ( Linux and SuperCluster ) 18.0.0.0.0 for Linux x86 - 64
V978971-01.zip Oracle Database Grid Infrastructure 18.0.0.0.0
Environment:
Two Linux VM servers with OL7.5
First server -> AIXRAC1
Second server -> AIXRAC2
Hypervisor (Updated) ESXi-6.5.0-20170104001-standard (VMware, Inc.)
You can do the same with any other Hypervisors, just need to adapt disk creation and some of the configuration related to network and maybe udev rules
DNS server configuration will not be covered in the below steps
Storage:
Two non-shared disks 30GB for OS and 130GB for Oracle Home Installation and another process like exports, backup etc.
ASM Storage:
3 Shared disks with 5GB each for OCR ASM Disk Group
3 Shared disks with 20GB each for DATA ASM Disk Group
2 Shared disks with 30GB each for MGMT ASM Disk Group
Please check the below two documents in order to get familiar with the topic and follow the best practices
List of VM servers
HW Information AIXRAC1
HW Information AIXRAC2
DISK Controller Configuration
Non-Shared Disk
Shared-Disk
General Information AIXRAC1
General Information AIXRAC2
Network - Public
Network - Private
Host file information:
# all of the below should be added in DNS server #
[root@aixrac1]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
# Public
192.168.180.86 aixrac1.dba.bg aixrac1
192.168.180.87 aixrac2.dba.bg aixrac2
# Private
10.10.10.101 aixrac1-priv.dba.bg aixrac1-priv
10.10.10.102 aixrac2-priv.dba.bg aixrac2-priv
# Virtual
192.168.180.84 aixrac1-vip.dba.bg aixrac1-vip
192.168.180.89 aixrac2-vip.dba.bg aixrac2-vip
192.168.180.91 rhp-vip.dba.bg rhp-vip
# SCAN
192.168.180.90 aixrac-scan.dba.bg aixrac-scan
[root@aixrac1]#
Update OS
yum update -y
If you have installed 12cR2 preinstall package already you should not worry about because the only differences with oracle-database-preinstall-18c is that bc.x86_64 0:1.06.95-13.el7 rpm is needed and some changes on group configuration
yum install oracle-database-server-12cR2-preinstall -y
[root@aixrac1 ~]# yum install oracle-database-preinstall-18c
Loaded plugins: ulninfo
Resolving Dependencies
--> Running transaction check
---> Package oracle-database-preinstall-18c.x86_64 0:1.0-1.el7 will be installed
--> Processing Dependency: bc for package: oracle-database-preinstall-18c-1.0-1.el7.x86_64
--> Running transaction check
---> Package bc.x86_64 0:1.06.95-13.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================================================================================================
Installing:
oracle-database-preinstall-18c x86_64 1.0-1.el7 ol7_latest 18 k
Installing for dependencies:
bc x86_64 1.06.95-13.el7 ol7_latest 114 k
Transaction Summary
=================================================================================================================================================================================================================================
Install 1 Package (+1 Dependent package)
Total download size: 131 k
Installed size: 270 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): bc-1.06.95-13.el7.x86_64.rpm | 114 kB 00:00:00
(2/2): oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm | 18 kB 00:00:09
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 14 kB/s | 131 kB 00:00:09
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : bc-1.06.95-13.el7.x86_64 1/2
Installing : oracle-database-preinstall-18c-1.0-1.el7.x86_64 2/2
Verifying : oracle-database-preinstall-18c-1.0-1.el7.x86_64 1/2
Verifying : bc-1.06.95-13.el7.x86_64 2/2
Installed:
oracle-database-preinstall-18c.x86_64 0:1.0-1.el7
Dependency Installed:
bc.x86_64 0:1.06.95-13.el7
Complete!
[root@aixrac1 ~]#
Once you have installed "oracle-database-server-12cR2-preinstall" or oracle-database-preinstall-18c package will perform all prerequisites (Oracle user creation, groups, sysctl and limits modification)
Linux Kernel Configuration
[root@aixrac1]# grep -v "#" /etc/sysctl.conf
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic_on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
Linux Limits Configuration
[root@aixrac1 ]# grep -v "#" /etc/security/limits.d/oracle-database-server-12cR2-preinstall.conf
oracle soft nofile 16384
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
grid soft nofile 16384
grid hard nofile 65536
grid soft nproc 16384
grid hard nproc 16384
grid soft stack 10240
grid hard stack 32768
[root@aixrac1 tuned]#
grid user configuration should be added separate in the oracle-database-server-12cR2-preinstall.conf because preinstall package only add configuration for oracle user
Create Groups
groupadd --gid 54321 oinstall
groupadd --gid 54322 dba
groupadd --gid 54327 asmdba
groupadd --gid 54328 asmoper
groupadd --gid 54329 asmadmin
groupadd --gid 54323 oper
groupadd --gid 54324 backupdba
groupadd --gid 54325 dgdba
groupadd --gid 54326 kmdba
groupadd --gid 54330 racdba
Create user oracle
useradd --uid 54321 --gid oinstall --groups dba,oper,asmdba,racdba,\
> backupdba,dgdba,kmdba oracle
Change password for oracle user
passwd oracle
Create user grid
useradd --uid 54322 --gid oinstall --groups dba,asmadmin,asmdba,asmoper,\
> racdba grid
Change password for grid user
passwd grid
Also user Oracle have been created from prerequisites package installation
User information:
Cluster node aixrac1
id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54327(asmdba),
54328(asmoper),54329(asmadmin),54330(racdba)
id grid
uid=54331(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54327(asmdba),54328(asmoper),54329(asmadmin),54330(racdba)
Cluster node aixrac2
id oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54327(asmdba),
54328(asmoper),54329(asmadmin),54330(racdba)
id grid
uid=54331(grid) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54327(asmdba),54328(asmoper),54329(asmadmin),54330(racdba)
NTP or Chrony
The chronyd — is a daemon for the synchronization of the system clock. It can synchronize the clock with NTP servers, reference clocks (e.g. a GPS receiver), and manual input using wristwatch and keyboard via chronyd. It can also operate as an NTPv4 (RFC 5905) server and peer to provide a time service to other computers in the network
install:
yum install chrony
Edit
vi /etc/chrony.conf
Add your NTP server IP e.g. server 10.5.26.10 iburst
Start
systemctl start chronyd.service
Enable
systemctl enable chronyd.service
Check status
[root@aixrac1 tuned]# systemctl status chronyd.service
● chronyd.service - NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2018-07-18 20:10:38 EEST; 5 days ago
Docs: man:chronyd(8)
man:chrony.conf(5)
Main PID: 8682 (chronyd)
CGroup: /system.slice/chronyd.service
└─8682 /usr/sbin/chronyd
Jul 18 20:10:38 aixrac1 systemd[1]: Starting NTP client/server...
Jul 18 20:10:38 aixrac1 chronyd[8682]: chronyd version 3.2 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SECHASH +SIGND +ASYNCDNS +IPV6 +DEBUG)
Jul 18 20:10:38 aixrac1 chronyd[8682]: Frequency 0.000 +/- 1000000.000 ppm read from /var/lib/chrony/drift
Jul 18 20:10:38 aixrac1 systemd[1]: Started NTP client/server.
Jul 18 20:12:47 aixrac1 chronyd[8682]: Selected source 10.5.26.10
Jul 18 20:12:47 aixrac1 chronyd[8682]: System clock wrong by -10578.325562 seconds, adjustment started
Jul 18 17:16:29 aixrac1 chronyd[8682]: System clock was stepped by -10578.325562 seconds
[root@aixrac1 tuned]#
Install preinstall rpm packages
# From Public Yum or ULN
yum install binutils -y
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libXext -y
yum install libXext.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install libXi -y
yum install libXi.i686 -y
yum install make -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel -y
yum install zlib-devel -y
yum install zlib-devel.i686 -y
or
Execute the below run which will create req-rpm.txt file with all required packages
echo \
binutils \
compat-libstdc++-33 \
compat-libstdc++-33.i686 \
gcc \
gcc-c++ \
glibc \
glibc.i686 \
glibc-devel \
glibc-devel.i686 \
ksh \
libgcc \
libgcc.i686 \
libstdc++ \
libstdc++.i686 \
libstdc++-devel \
libstdc++-devel.i686 \
libaio \
libaio.i686 \
libaio-devel \
libaio-devel.i686 \
libXext \
libXext.i686 \
libXtst \
libXtst.i686 \
libX11 \
libX11.i686 \
libXau \
libXau.i686 \
libxcb \
libxcb.i686 \
libXi \
libXi.i686 \
make \
sysstat \
unixODBC \
unixODBC-devel \
zlib-devel \
zlib-devel.i686 >> req-rpm.txt
Execute yum to Install packages from the file
yum install `cat ./req-rpm.txt`
Check SELinux Linux configuration
- this is absolutely supported configuration by Oracle
[root@aixrac1 tuned]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 29
[root@aixrac1 tuned]#
Linux firewall - change to disable or add special rules
systemctl stop firewalld
systemctl disable firewalld
List disks from AIXARC1 node
[root@aixrac1 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdc
36000c29636476b1267d7d43aa6655032
[root@aixrac1 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdd
36000c29def45ee5327fc769f266193c2
[root@aixrac1 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sde
36000c29d5b94c0e6fac80de5a5eb2f3b
[root@aixrac1 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdf
36000c29b86aa828f89344184bfaeaa24
[root@aixrac1 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdg
36000c29616efe1f094f6c080c4d0e141
[root@aixrac1 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdh
36000c295db050612056d52225e557f29
[root@aixrac1 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdi
36000c297ad91585780dec23f4ff9d9f7
[root@aixrac1 ~]#
List disks from AIXARC2 node
[root@aixrac2 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdc
36000c29636476b1267d7d43aa6655032
[root@aixrac2 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdd
36000c29def45ee5327fc769f266193c2
[root@aixrac2 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sde
36000c29d5b94c0e6fac80de5a5eb2f3b
[root@aixrac2 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdf
36000c29b86aa828f89344184bfaeaa24
[root@aixrac2 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdg
36000c29616efe1f094f6c080c4d0e141
[root@aixrac2 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdh
36000c295db050612056d52225e557f29
[root@aixrac2 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sdi
36000c297ad91585780dec23f4ff9d9f7
[root@aixrac2 ~]#
AIXRAC1
/usr/lib/udev/scsi_id -g -u -d /dev/sdc: 5368 MB, 5368709120 bytes, 10485760 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sdd: 5368 MB, 5368709120 bytes, 10485760 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sde: 5368 MB, 5368709120 bytes, 10485760 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sdf: 21.5 GB, 21474836480 bytes, 41943040 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sdg: 21.5 GB, 21474836480 bytes, 41943040 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sdh: 21.5 GB, 21474836480 bytes, 41943040 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sdi: 32.2 GB, 32212254720 bytes, 62914560 sectors
AIXRAC2
/usr/lib/udev/scsi_id -g -u -d /dev/sdc: 5368 MB, 5368709120 bytes, 10485760 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sdd: 5368 MB, 5368709120 bytes, 10485760 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sde: 5368 MB, 5368709120 bytes, 10485760 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sdf: 21.5 GB, 21474836480 bytes, 41943040 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sdg: 21.5 GB, 21474836480 bytes, 41943040 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sdh: 21.5 GB, 21474836480 bytes, 41943040 sectors
/usr/lib/udev/scsi_id -g -u -d /dev/sdi: 32.2 GB, 32212254720 bytes, 62914560 sectors
Udev configuration
[root@aixrac1 rhp_storage]# cat /etc/udev/rules.d/99-vmware-scsi-timeout.rules
ACTION=="add", SUBSYSTEMS=="scsi", ATTRS{vendor}=="VMware ", ATTRS{model}=="Virtual disk ", RUN+="/bin/sh -c 'echo 180 > /sys$DEVPATH/timeout'"
KERNEL=="sd*", ENV{ID_SERIAL}=="36000c29636476b1267d7d43aa6655032", SYMLINK+="oracleasm/asm-OCR01", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", ENV{ID_SERIAL}=="36000c29def45ee5327fc769f266193c2", SYMLINK+="oracleasm/asm-OCR02", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", ENV{ID_SERIAL}=="36000c29d5b94c0e6fac80de5a5eb2f3b", SYMLINK+="oracleasm/asm-OCR03", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", ENV{ID_SERIAL}=="36000c29b86aa828f89344184bfaeaa24", SYMLINK+="oracleasm/asm-DATA01", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", ENV{ID_SERIAL}=="36000c29616efe1f094f6c080c4d0e141", SYMLINK+="oracleasm/asm-DATA02", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", ENV{ID_SERIAL}=="36000c295db050612056d52225e557f29", SYMLINK+="oracleasm/asm-DATA03", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", ENV{ID_SERIAL}=="36000c297ad91585780dec23f4ff9d9f7", SYMLINK+="oracleasm/asm-MGMT01", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", ENV{ID_SERIAL}=="36000c2905aad232706e3f65c7858afca", SYMLINK+="oracleasm/asm-MGMT02", OWNER="grid", GROUP="asmadmin", MODE="0660"
[root@aixrac1 rhp_storage]#
Extract Oracle Grid Software to /opt/app/18.0.0/grid from zip file V974952-01.zip or new version V978971-01.zip
Patching existing software with patch 28096386 (18.3) which will perform patching prior actual installation and this can be used and golden image for future RHP or other actions
Also you need to update OPatch software - please download from metalink
Start with patching of existing Oracle Grid Software 18.0.0.0.0 to 18.3
[grid@aixrac1 grid]$ ./gridSetup.sh -applyRU /opt/app/18.0.0/patch/28096386 ERROR: Unable to verify the graphical display setup.
This application requires X display. Make sure that xdpyinfo exist under PATH variable. Preparing the home to patch...
Applying the patch /opt/app/18.0.0/patch/28096386...
Successfully applied the patch.
The log can be found at: /tmp/GridSetupActions2018-07-19_00-33-29AM/installerPatchActions_2018-07-19_00-33-29AM.log
We did the Successful pathing process prior to installation!!!! OOOOHOOO!!
Also don’t forget to install cvuqdisk-1.0.10-1.rpm
[root@aixrac1 /]# rpm -Uvh /opt/app/18.0.0/grid/cv/rpm/cvuqdisk-1.0.10-1.rpm
Preparing... ######### [100%]
Using default group oinstall to install package Updating / installing...
1:cvuqdisk-1.0.10-1 ######### [100%]
[root@aixrac1 /]#
You should copy rpm to second node aixrac2 and execute install
[root@aixrac2 /]# rpm -Uvh /tmp/cvuqdisk-1.0.10-1.rpm
Preparing... ######### [100%]
Using default group oinstall to install package Updating / installing...
1:cvuqdisk-1.0.10-1 ######### [100%]
[root@aixrac2 /]#
Now we are ready to start Grid Setup by exporting display and executing gridSetup.sh ---- finally!!!!!
Step 1 - select -Configure Oracle Grid Infrastructure for a New Cluster and Click on NEXT
Step 2 - select -Configure Oracle Standalone Cluster and Click on NEXT
Step 3 - select - Create local SCAN and add the name of the cluster, SCAN Name and SCAN port in case of differences
Step 4 - click on add - add a single node - you should add here the second node of the cluster with Public and Virtual hostnames
This should be the final configuration of the nodes in regards to private and virtual hostnames - click on ssh connectivity
Step 5 - Add username which is grid and password in order to setup user equivalence between the nodes - click on Setup
If all have been setup correctly you should see this message and click OK and Next
Step 6 - this is just to review your network interfaces and select which one is Public and Private and click Next
Step 7 - select - Configure ASM using block devices and click Next
Step 8 - select YES - this is an important step in order to create on separate ASM disk group repository and click Next
Step 9 - select - Change Discovery Path and add /dev/oracleasm/* if this is a correct path in your case and click ok
Step 10 -Change the name of the ASM disk group to OCR and select normal redundancy
Step 11 - select disks related to OCR disk group - should be minimum 3
Step 12 - uncheck - Configure Oracle ASM filter driver and click on next
Step 13 - Add the name of the MGMT ASM disk group, select external redundancy and select corresponding disks - click on next
Step 14 -select Use same password for those accounts and click on next
Step 15 - You will be prompted that password recommendation is different but in this case, we confirm with YES
Step 16 - select - Do not use Integration Platform Management Interface (IPMI) and click on Next
Step 17 - don’t select Register in cloud Control if you don’t have it, in case of such you should add it and click on Next
Step 18 - you need to review Groups in case of no changes just click on Next
Step 19 - add here Oracle Base Directory and click on Next
Step 20 -add here Oracle inventory location and click on Next
Step 21 -don’t change if you don’t need special scripts to be executed
Progress start
Step 22 - As you can see there are some issue with SCAN due to the fact that we have only one in this case and Swap size - review all issues
Step 23 - In our case, we have to fix ASM disk owner --- small mistake :)
Step 24 -execute Check again
The step is the final list of the issue which can be ignored
Step 25 - select - ignore All and click on Next
Step 26 - Confirm with YES that you accept to ignored all issues
Step 27 - You can validate a list of changes and final results - click on Install
Step 28 - Installation process start
Step 29 - Installation process start
Step 30 - Installation process start
Step 31 - Setup finish at some point but we need to execute two scripts on both nodes as per the information on the picture - don’t mix it!!!
Execute orainstRoot.sh script on the first node - AIXRAC1
[root@aixrac1 app]# /opt/app/oraInventory/orainstRoot.sh
Changing permissions of /opt/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /opt/app/oraInventory to oinstall.
The execution of the script is complete.
Execute orainstRoot.sh script on the first node - AIXRAC2
[root@aixrac2 dev]# /opt/app/oraInventory/orainstRoot.sh
Changing permissions of /opt/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /opt/app/oraInventory to oinstall.
The execution of the script is complete.
[root@aixrac2 dev]#
Execute root.sh script on the first node - aixrac1
[root@aixrac1 app]# /opt/app/18.0.0/grid/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /opt/app/18.0.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /opt/app/18.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/opt/app/oracle/crsdata/aixrac1/crsconfig/rootcrs_aixrac1_2018-07-19_01-57-50AM.log
2018/07/19 01:58:09 CLSRSC-594: Executing installation step 1 of 20: 'SetupTFA'.
2018/07/19 01:58:09 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.
2018/07/19 01:58:40 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2018/07/19 01:58:40 CLSRSC-594: Executing installation step 2 of 20: 'ValidateEnv'.
2018/07/19 01:58:40 CLSRSC-363: User ignored prerequisites during installation
2018/07/19 01:58:40 CLSRSC-594: Executing installation step 3 of 20: 'CheckFirstNode'.
2018/07/19 01:58:42 CLSRSC-594: Executing installation step 4 of 20: 'GenSiteGUIDs'.
2018/07/19 01:58:48 CLSRSC-594: Executing installation step 5 of 20: 'SaveParamFile'.
2018/07/19 01:59:04 CLSRSC-594: Executing installation step 6 of 20: 'SetupOSD'.
2018/07/19 01:59:04 CLSRSC-594: Executing installation step 7 of 20: 'CheckCRSConfig'.
2018/07/19 01:59:04 CLSRSC-594: Executing installation step 8 of 20: 'SetupLocalGPNP'.
2018/07/19 01:59:37 CLSRSC-594: Executing installation step 9 of 20: 'CreateRootCert'.
2018/07/19 01:59:47 CLSRSC-594: Executing installation step 10 of 20: 'ConfigOLR'.
2018/07/19 02:00:09 CLSRSC-594: Executing installation step 11 of 20: 'ConfigCHMOS'.
2018/07/19 02:00:09 CLSRSC-594: Executing installation step 12 of 20: 'CreateOHASD'.
2018/07/19 02:00:24 CLSRSC-594: Executing installation step 13 of 20: 'ConfigOHASD'.
2018/07/19 02:00:24 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2018/07/19 02:03:25 CLSRSC-594: Executing installation step 14 of 20: 'InstallAFD'.
2018/07/19 02:03:41 CLSRSC-594: Executing installation step 15 of 20: 'InstallACFS'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'aixrac1'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'aixrac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
2018/07/19 02:05:44 CLSRSC-594: Executing installation step 16 of 20: 'InstallKA'.
2018/07/19 02:05:59 CLSRSC-594: Executing installation step 17 of 20: 'InitConfig'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'aixrac1'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'aixrac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2672: Attempting to start 'ora.evmd' on 'aixrac1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'aixrac1'
CRS-2676: Start of 'ora.mdnsd' on 'aixrac1' succeeded
CRS-2676: Start of 'ora.evmd' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'aixrac1'
CRS-2676: Start of 'ora.gpnpd' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'aixrac1'
CRS-2672: Attempting to start 'ora.gipcd' on 'aixrac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'aixrac1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'aixrac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'aixrac1'
CRS-2676: Start of 'ora.diskmon' on 'aixrac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'aixrac1' succeeded
[INFO] [DBT-30001] Disk groups created successfully. Check /opt/app/oracle/cfgtoollogs/asmca/asmca-180719AM020639.log for details.
2018/07/19 02:08:29 CLSRSC-482: Running command: '/opt/app/18.0.0/grid/bin/ocrconfig -upgrade grid oinstall'
CRS-2672: Attempting to start 'ora.crf' on 'aixrac1'
CRS-2672: Attempting to start 'ora.storage' on 'aixrac1'
CRS-2676: Start of 'ora.storage' on 'aixrac1' succeeded
CRS-2676: Start of 'ora.crf' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'aixrac1'
CRS-2676: Start of 'ora.crsd' on 'aixrac1' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk 772ce36e6c394fa4bfd53b1952108436.
Successful addition of voting disk c1831b6791604f4ebf72c3c37e206548.
Successful addition of voting disk 4b883d9495ea4f4abfdc0bb14744a3ab.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 772ce36e6c394fa4bfd53b1952108436 (/dev/oracleasm/asm-OCR01) [OCR]
2. ONLINE c1831b6791604f4ebf72c3c37e206548 (/dev/oracleasm/asm-OCR02) [OCR]
3. ONLINE 4b883d9495ea4f4abfdc0bb14744a3ab (/dev/oracleasm/asm-OCR03) [OCR]
Located 3 voting disk(s).
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'aixrac1'
CRS-2673: Attempting to stop 'ora.crsd' on 'aixrac1'
CRS-2677: Stop of 'ora.crsd' on 'aixrac1' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'aixrac1'
CRS-2673: Attempting to stop 'ora.crf' on 'aixrac1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'aixrac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'aixrac1'
CRS-2677: Stop of 'ora.crf' on 'aixrac1' succeeded
CRS-2677: Stop of 'ora.storage' on 'aixrac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'aixrac1'
CRS-2677: Stop of 'ora.drivers.acfs' on 'aixrac1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'aixrac1' succeeded
CRS-2677: Stop of 'ora.asm' on 'aixrac1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'aixrac1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'aixrac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'aixrac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'aixrac1'
CRS-2677: Stop of 'ora.evmd' on 'aixrac1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'aixrac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'aixrac1'
CRS-2677: Stop of 'ora.cssd' on 'aixrac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'aixrac1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'aixrac1'
CRS-2677: Stop of 'ora.gipcd' on 'aixrac1' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'aixrac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'aixrac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2018/07/19 02:14:13 CLSRSC-594: Executing installation step 18 of 20: 'StartCluster'.
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.mdnsd' on 'aixrac1'
CRS-2672: Attempting to start 'ora.evmd' on 'aixrac1'
CRS-2676: Start of 'ora.mdnsd' on 'aixrac1' succeeded
CRS-2676: Start of 'ora.evmd' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'aixrac1'
CRS-2676: Start of 'ora.gpnpd' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'aixrac1'
CRS-2676: Start of 'ora.gipcd' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.crf' on 'aixrac1'
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'aixrac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'aixrac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'aixrac1'
CRS-2676: Start of 'ora.diskmon' on 'aixrac1' succeeded
CRS-2676: Start of 'ora.crf' on 'aixrac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'aixrac1'
CRS-2672: Attempting to start 'ora.ctssd' on 'aixrac1'
CRS-2676: Start of 'ora.ctssd' on 'aixrac1' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'aixrac1'
CRS-2676: Start of 'ora.asm' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'aixrac1'
CRS-2676: Start of 'ora.storage' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'aixrac1'
CRS-2676: Start of 'ora.crsd' on 'aixrac1' succeeded
CRS-6023: Starting Oracle Cluster Ready Services-managed resources
CRS-6017: Processing resource auto-start for servers: aixrac1
CRS-6016: Resource auto-start has completed for server aixrac1
CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
CRS-4123: Oracle High Availability Services has been started.
2018/07/19 02:17:00 CLSRSC-343: Successfully started Oracle Clusterware stack
2018/07/19 02:17:00 CLSRSC-594: Executing installation step 19 of 20: 'ConfigNode'.
CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'aixrac1'
CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'aixrac1'
CRS-2676: Start of 'ora.asm' on 'aixrac1' succeeded
CRS-2672: Attempting to start 'ora.OCR.dg' on 'aixrac1'
CRS-2676: Start of 'ora.OCR.dg' on 'aixrac1' succeeded
2018/07/19 02:18:37 CLSRSC-594: Executing installation step 20 of 20: 'PostConfig'.
[INFO] [DBT-30001] Disk groups created successfully. Check /opt/app/oracle/cfgtoollogs/asmca/asmca-180719AM021840.log for details.
2018/07/19 02:22:11 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@aixrac1 app]#
Execute on second node
[root@aixrac2 dev]# /opt/app/18.0.0/grid/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /opt/app/18.0.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /opt/app/18.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/opt/app/oracle/crsdata/aixrac2/crsconfig/rootcrs_aixrac2_2018-07-19_02-23-32AM.log
2018/07/19 02:23:35 CLSRSC-594: Executing installation step 1 of 20: 'SetupTFA'.
2018/07/19 02:23:35 CLSRSC-4001: Installing Oracle Trace File Analyzer (TFA) Collector.
2018/07/19 02:24:06 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2018/07/19 02:24:06 CLSRSC-594: Executing installation step 2 of 20: 'ValidateEnv'.
2018/07/19 02:24:06 CLSRSC-363: User ignored prerequisites during installation
2018/07/19 02:24:06 CLSRSC-594: Executing installation step 3 of 20: 'CheckFirstNode'.
2018/07/19 02:24:07 CLSRSC-594: Executing installation step 4 of 20: 'GenSiteGUIDs'.
2018/07/19 02:24:07 CLSRSC-594: Executing installation step 5 of 20: 'SaveParamFile'.
2018/07/19 02:24:09 CLSRSC-594: Executing installation step 6 of 20: 'SetupOSD'.
2018/07/19 02:24:09 CLSRSC-594: Executing installation step 7 of 20: 'CheckCRSConfig'.
2018/07/19 02:24:10 CLSRSC-594: Executing installation step 8 of 20: 'SetupLocalGPNP'.
2018/07/19 02:24:11 CLSRSC-594: Executing installation step 9 of 20: 'CreateRootCert'.
2018/07/19 02:24:11 CLSRSC-594: Executing installation step 10 of 20: 'ConfigOLR'.
2018/07/19 02:24:13 CLSRSC-594: Executing installation step 11 of 20: 'ConfigCHMOS'.
2018/07/19 02:24:13 CLSRSC-594: Executing installation step 12 of 20: 'CreateOHASD'.
2018/07/19 02:24:14 CLSRSC-594: Executing installation step 13 of 20: 'ConfigOHASD'.
2018/07/19 02:24:14 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2018/07/19 02:27:15 CLSRSC-594: Executing installation step 14 of 20: 'InstallAFD'.
2018/07/19 02:27:17 CLSRSC-594: Executing installation step 15 of 20: 'InstallACFS'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'aixrac2'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'aixrac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
2018/07/19 02:29:05 CLSRSC-594: Executing installation step 16 of 20: 'InstallKA'.
2018/07/19 02:29:06 CLSRSC-594: Executing installation step 17 of 20: 'InitConfig'.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'aixrac2'
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'aixrac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'aixrac2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'aixrac2'
CRS-2677: Stop of 'ora.drivers.acfs' on 'aixrac2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'aixrac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2018/07/19 02:29:15 CLSRSC-594: Executing installation step 18 of 20: 'StartCluster'.
CRS-4123: Starting Oracle High Availability Services-managed resources
CRS-2672: Attempting to start 'ora.mdnsd' on 'aixrac2'
CRS-2672: Attempting to start 'ora.evmd' on 'aixrac2'
CRS-2676: Start of 'ora.mdnsd' on 'aixrac2' succeeded
CRS-2676: Start of 'ora.evmd' on 'aixrac2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'aixrac2'
CRS-2676: Start of 'ora.gpnpd' on 'aixrac2' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'aixrac2'
CRS-2676: Start of 'ora.gipcd' on 'aixrac2' succeeded
CRS-2672: Attempting to start 'ora.crf' on 'aixrac2'
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'aixrac2'
CRS-2676: Start of 'ora.cssdmonitor' on 'aixrac2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'aixrac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'aixrac2'
CRS-2676: Start of 'ora.diskmon' on 'aixrac2' succeeded
CRS-2676: Start of 'ora.crf' on 'aixrac2' succeeded
CRS-2676: Start of 'ora.cssd' on 'aixrac2' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'aixrac2'
CRS-2672: Attempting to start 'ora.ctssd' on 'aixrac2'
CRS-2676: Start of 'ora.ctssd' on 'aixrac2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'aixrac2'
CRS-2676: Start of 'ora.crsd' on 'aixrac2' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'aixrac2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'aixrac2'
CRS-2676: Start of 'ora.asm' on 'aixrac2' succeeded
CRS-6017: Processing resource auto-start for servers: aixrac2
CRS-2672: Attempting to start 'ora.ASMNET1LSNR_ASM.lsnr' on 'aixrac2'
CRS-2672: Attempting to start 'ora.ons' on 'aixrac2'
CRS-2676: Start of 'ora.ASMNET1LSNR_ASM.lsnr' on 'aixrac2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'aixrac2'
CRS-2676: Start of 'ora.ons' on 'aixrac2' succeeded
CRS-2676: Start of 'ora.asm' on 'aixrac2' succeeded
CRS-2672: Attempting to start 'ora.proxy_advm' on 'aixrac1'
CRS-2672: Attempting to start 'ora.proxy_advm' on 'aixrac2'
CRS-2676: Start of 'ora.proxy_advm' on 'aixrac1' succeeded
CRS-2676: Start of 'ora.proxy_advm' on 'aixrac2' succeeded
CRS-6016: Resource auto-start has completed for server aixrac2
CRS-6024: Completed start of Oracle Cluster Ready Services-managed resources
CRS-4123: Oracle High Availability Services has been started.
2018/07/19 02:31:52 CLSRSC-343: Successfully started Oracle Clusterware stack
2018/07/19 02:31:52 CLSRSC-594: Executing installation step 19 of 20: 'ConfigNode'.
2018/07/19 02:32:06 CLSRSC-594: Executing installation step 20 of 20: 'PostConfig'.
2018/07/19 02:32:11 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@aixrac2 dev]#
Check status of All Cluster services
[root@aixrac1 18.0.0]# /opt/app/18.0.0/grid/bin/crsctl stat res -t
Check status of All local services
[root@aixrac1 18.0.0]# /opt/app/18.0.0/grid/bin/crsctl stat res -t -init
Feedback with issue:
Patching
This is normal if you haven't apply latest OPatch Version
[Aug 8, 2018 10:39:25 AM] [INFO] Prerequisite check "CheckMinimumOPatchVersion" failed.
The details are:
The OPatch being used has version 12.2.0.1.11 while the following patch(es) require higher versions:
Patch 28090523 requires OPatch version 12.2.0.1.14.
Please download latest OPatch from My Oracle Support.
[Aug 8, 2018 10:39:25 AM] [SEVERE] OUI-67073:UtilSession failed: Prerequisite check "CheckMinimumOPatchVersion" failed.
[Aug 8, 2018 10:39:25 AM] [INFO] Finishing UtilSession at Wed Aug 08 10:39:25 EEST 2018
[Aug 8, 2018 10:39:25 AM] [INFO] Log file location: /opt/app/18.0.0/grid/cfgtoollogs/opatch/opatch2018-08-08_10-39-21AM_1.log
[Aug 8, 2018 10:39:25 AM] [INFO] Stack Description: java.lang.RuntimeException: Prerequisite check "CheckMinimumOPatchVersion" failed.
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: oracle.opatch.OPatchSessionHelper.runApplyPrereqs(OPatchSessionHelper.java:5933)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:929)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:361)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: oracle.opatch.opatchutil.NApply.process(NApply.java:341)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: oracle.opatch.opatchutil.OUSession.napply(OUSession.java:1104)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: java.lang.reflect.Method.invoke(Method.java:498)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: oracle.opatch.UtilSession.process(UtilSession.java:352)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: oracle.opatch.OPatchSession.process(OPatchSession.java:2637)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: oracle.opatch.OPatch.process(OPatch.java:821)
[Aug 8, 2018 10:39:25 AM] [INFO] StackTrace: oracle.opatch.OPatch.main(OPatch.java:871)
In case of -> ERROR: The home is not clean
ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.
ERROR: The home is not clean. This home cannot be used since there was a failed OPatch execution in this home. Use a different home to proceed.
You should remove one flag - rm -f /opt/app/18.0.0/grid/install/patch - this file is 0 size
-rw-r--r--. 1 grid oinstall 0 Aug 8 10:39 patch <---- this is the file
once you are ready with this, you can re-run patching :)
Thanks for your time, next post will be how to patch and install Oracle 18c Database
2 comments
5 star: | (1) | |
---|---|---|
4 star: | (0) | |
3 star: | (0) | |
2 star: | (0) | |
1 star: | (0) | |
(5.0)
Comment from: Julien Andonov Visitor
Hey Krasi
Feel free to use the following script for the asm disks:
#!/bin/bash
#file ~/createOracleAsmUdevRules.sh
i=1
# ol7 / rhel7 / centos 7
cmd="/lib/udev/scsi_id -g -u -d"
for disk in sdc sdd sde sdf ; do
cat <<EOF >> /etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="$cmd /dev/\$parent", \
RESULT=="`$cmd /dev/$disk`", SYMLINK+="asm-disk$i", OWNER="oracle", GROUP="dba", MODE="0660"
EOF
i=$(($i+1))
done
At least this is what I used :)
Best regards
Julien Andonov
Comment from: kkovachki Member
Hello Julien,
Thanks for your feedback!
Unfortunately based on my experience everything depends of the Linux version , virtualization etc.
Such script may not work in some case and i prefere to collect information from command “udevadm info –name sdb” prior selecting one rule or other
ps: check this out - https://fritshoogland.wordpress.com/2016/02/19/oracle-linux-7-disks-and-udev/
Regards,
Krasimir Kovachki