Skip to Main Content
  • Questions
  • Deploying Oracle RAC 18c for Linux x86_64 on OL 7.5

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Quanwen.

Asked: September 04, 2018 - 2:17 am UTC

Last updated: September 05, 2018 - 4:57 am UTC

Version: 18c

Viewed 1000+ times

You Asked

Hello, teams

These two days I've deployed Oracle RAC 18c on OL 7.5 (my Linux server) via VirtualBox 5.2.18. During this time I encountered some problems as follows,

(1) after installing RPM "oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm", I observed some contents on the file "orakernel.log",

[root@adccrac1 ~]# cat /var/log/oracle-database-preinstall-18c/results/orakernel.log
Adding group oinstall with gid 54321
Adding group dba with gid 54322
Adding group oper with gid 54323
Adding group backupdba with gid 54324
Adding group dgdba with gid 54325
Adding group kmdba with gid 54326
Adding group racdba with gid 54330
Adding user oracle with user id 54321, initial login group oinstall, supplementary groups oinstall,dba,oper,backupdba,dgdba,kmdba,racdba and  home directory /home/oracle
Changing ownership of /home/oracle to oracle:oinstall
Please set password for user - oracle
uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba),54323(oper),54324(backupdba),54325(dgdba),54326(kmdba),54330(racdba)
User creation passed
......


It doesn't create related groups and user for "grid" such as,
groupadd -g 54327 asmdba
groupadd -g 54328 asmoper
groupadd -g 54329 asmadmin
useradd -m -u 54322 -g oinstall -G asmadmin,asmdba,asmoper,dba,oper,racdba  grid


(2) when I configure ASM disks via ASMFD, and next to reboot server, afterwards I'm not aware of ASM disks never have been found until configuring GI (./gridSetup.sh) and skip to "Create ASM Disk Group"

[root@adccrac1 ~]# export ORACLE_HOME=/u01/app/18.0.0/grid
[root@adccrac1 ~]# export PATH=$PATH:$ORACLE_HOME/bin
[root@adccrac1 ~]# export ORACLE_BASE=/tmp

[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label CRSDG1 /dev/sdb --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label CRSDG2 /dev/sdc --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label CRSDG3 /dev/sdd --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label MGMT /dev/sde --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label DATA1 /dev/sdf --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label DATA2 /dev/sdg --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label ARCH /dev/sdh --init
[root@adccrac1 ~]# /u01/app/18.0.0/grid/bin/asmcmd afd_label FTRA /dev/sdi --init

[root@adccrac1 ~]# init 6

[root@adccrac1 ~]# ls -ld /dev/oracleafd/disks/
drwxrwxr-x 2 grid oinstall 40 Aug 30 09:59 /dev/oracleafd/disks/

[root@adccrac1 ~]# cd /dev/oracleafd/disks/
[root@adccrac1 disks]# ls -lrht
total 0


Best Regards
Quanwen Zhao

and Connor said...

From the docs:

https://docs.oracle.com/en/database/oracle/oracle-database/18/cwlin/overview-of-oracle-linux-configuration-with-oracle-rpms.html#GUID-693599D4-BD32-4E6A-9689-FA7D1CD75653

Configuring a server using Oracle Linux and the Oracle Preinstallation RPM consists of the following steps:

Install Oracle Linux.

Register your Linux distribution with Oracle Unbreakable Linux Network (ULN) or download and configure the yum repository for your system using the Oracle Linux yum server for your Oracle Linux release.

Install the Oracle Preinstallation RPM with the RPM for your Oracle Grid Infrastructure and Oracle Database releases, and update your Linux release.

Create role-allocated groups and users with identical names and ID numbers.

Complete network interface configuration for each cluster node candidate.

Complete system configuration for shared storage access as required for each standard or core node cluster candidate.

After these steps are complete, you can proceed to install Oracle Grid Infrastructure and Oracle Database.


So the user setup is not done by the rpm - and this makes sense to me, because *we* don't know what you want your user names and ID's to be.

I'm not sure exactly what you are asking for (2).

Rating

  (2 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Quanwen Zhao, September 04, 2018 - 7:50 am UTC

Hello, Connor

I've seen the Docs which you supplied to me, but the second step "Register your Linux distribution with Oracle Unbreakable Linux Network (ULN)...", do I need to register ULN?

Meanwhile I find the RPM package "oracle-database-preinstall-18c-1.0-1.el7.x86_64.rpm" on <a href=" http://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.html" > http://yum.oracle.com/repo/OracleLinux/OL7/latest/x86_64/index.html </a>, you can press this composite keyboard button "Ctrl+F" and input keyword "18c" and you'll find that RPM file based on the first search result on previous link page.

About (2) question, my meaning is that firstly I configure ASM disks via ASMFD and next to reboot my server and look back to see this location "/dev/oracleafd/disks/", and there is no any file.
If I don't reboot server after I configure ASM disk via ASMFD on 18c and that location will appear some disk file such as,

[root@adccrac1 ~]# cd /dev/oracleafd/disks/
[root@adccrac1 disks]# ls -lrht
total 32K
-rw-rw-r-- 1 grid oinstall 9 Sep  1 11:25 FTRA
-rw-rw-r-- 1 grid oinstall 9 Sep  1 11:25 DATA2
-rw-rw-r-- 1 grid oinstall 9 Sep  1 11:25 MGMT
-rw-rw-r-- 1 grid oinstall 9 Sep  1 11:25 DATA1
-rw-rw-r-- 1 grid oinstall 9 Sep  1 11:25 CRSDG3
-rw-rw-r-- 1 grid oinstall 9 Sep  1 11:25 CRSDG2
-rw-rw-r-- 1 grid oinstall 9 Sep  1 11:25 CRSDG1
-rw-rw-r-- 1 grid oinstall 9 Sep  1 11:25 ARCH


About this issue, afterwards I solve it like this,

[root@adccrac1 ~]# dd if=/dev/zero of=/dev/sdb bs=1024M count=1
1+0 records in
1+0 records out
1073741824 bytes (1.1 GB) copied, 5.77927 s, 186 MB/s
......


And reconfiguring them like this,
/u01/app/18.0.0/grid/bin/asmcmd afd_label CRSDG1 /dev/sdb --init
......


Best Regards
Quanwen Zhao
Connor McDonald
September 05, 2018 - 4:57 am UTC

What does asmcmd afd_state give you ?

Quanwen Zhao, September 06, 2018 - 6:11 am UTC

Sorry, Connor!

At that time I didn't check "asmcmd afd_state", but I re-init disk "/dev/sdb" via ASMFD and then it showed this info as follows,

/u01/app/18.0.0/grid/bin/asmcmd afd_label CRSDG1 /dev/sdb --init

disk /dev/sdb is already <b>provisioned</b> for ASM


Best Regards
Quanwen Zhao

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database