Part 1: Preparing two Oracle Linux nodes for Oracle AI Database 26ai RAC with ASM

Share on LinkedIn ↗

Part 1 · By Venkata Rachuri · October 20, 2026

In the previous post, we installed Oracle AI Database 26ai with ASM on a single server. Now we are taking the next step: two Linux nodes, one set of shared disks, and a network designed for Oracle RAC.

Before opening the Grid Infrastructure installer, we need a consistent foundation. Both nodes must recognize the same disks, resolve the same names, use matching Oracle accounts, and keep their clocks synchronized. This part walks through the preparation we completed and explains why each piece matters.

Our endpoint is a prepared pair of nodes with shared ASMLib disks. Part 2 installs Grid Infrastructure, creates the ASM disk groups, installs the RAC database software, and creates and verifies the RAC database.

Two nodes with one shared storage layer

Two nodes and shared storage for ASM
Two nodes and shared storage for ASM

Each node has its own operating system disk. The three additional disks are shared: both nodes access the same underlying storage. Creating two independent disks with the same label would not provide shared database storage.

Setting Node1 Node2
Hostname rac26ai-node1 rac26ai-node2
Operating system Oracle Linux 8.10 Oracle Linux 8.10
Kernel 5.15.0-206.153.7.1.el8uek.x86_64 Same
CPU and memory 4 vCPUs, 16 GiB RAM 4 vCPUs, 16 GiB RAM
Local OS disk 80 GiB 80 GiB
Public interface enp1s0 enp1s0
Public hostname rac26ai-node1.lab.test rac26ai-node2.lab.test
Private interface enp7s0 enp7s0
Private hostname rac26ai-node1-priv.lab.test rac26ai-node2-priv.lab.test

Interface names, MAC addresses, and device paths in the commands are specific to this lab. Match your own interfaces and disks before applying them. This learning layout uses one shared storage backing; it does not provide redundancy across independent storage failure domains.

Unless otherwise stated, node commands run as root. Both nodes means execute the command separately on each Oracle Linux node. Virtualization host means the Linux system running libvirt.

Build consistent Linux installations

Create both VMs in Cockpit using the Oracle Linux 8.10 ISO. Allocate 16 GiB RAM, four vCPUs in host-passthrough mode, and a separate 80 GiB OS disk to each. Connect the first virtio NIC to the public lab network and the second to the isolated rac-interconnect network.

Choose Server with GUI so we can use Oracle's graphical installers later. Set America/Chicago as the time zone on both nodes.

Use Custom partitioning for each OS disk:

Mount point Requested capacity Device type Filesystem
/boot 2048 MiB Standard partition XFS
swap 12288 MiB LVM swap
/ Remaining space, approximately 66 GiB LVM XFS
OS partition layout used on both nodes
OS partition layout used on both nodes

The partition screenshot shows the base OS layout, including 12 GiB of swap. Step 1 of the final validation below adds a 4 GiB swap file, giving each node 16 GiB total swap for this lab's 16 GiB RAM configuration.

The root filesystem holds Linux and the Oracle software under /u01. Database storage will use the separate shared disks. ASM does not replace Linux's boot and root filesystems.

Set the root password privately, finish installation, and reboot. If the first-login assistant requests a desktop account, create labadmin. Create grid and oracle separately using the matching identities described below.

Record your network values before running network commands

The commands use hostnames for readability and shell variables wherever an actual address or MAC is required. Choose values for your own lab; do not paste an empty variable into a network change. The public node addresses, VIPs, and SCAN addresses belong to the same public subnet. The two private addresses belong to a different, isolated subnet, with no private default gateway.

First find the values already assigned to the VMs. As root on the virtualization host, run:

virsh domiflist rac26ai-node1
virsh domiflist rac26ai-node2
virsh net-dhcp-leases default
virsh net-dumpxml default
virsh net-list --all

In domiflist, the interface connected to the default network is the public NIC; record its MAC. Match that MAC to net-dhcp-leases to find the current public address. In the network XML, record the DHCP range's current start and end. Select a reduced end that keeps both reserved public node addresses inside the intended allocation and leaves the two VIPs and three SCAN addresses outside the dynamic pool. Review existing leases before changing that range; choose five unused public-subnet addresses.

Inside each node as root, confirm the interface names and addresses:

hostname
ip -br link
ip -br -4 addr
ip -4 route

Match the MAC from ip -br link to the public MAC from libvirt. This lab uses enp1s0 for public and enp7s0 for private. Record the private addresses already assigned during Linux setup, or choose the two private addresses now and apply them in the next section. If your names differ, substitute them throughout the guide.

Variable Value to record
NODE1_PUBLIC_IP / NODE2_PUBLIC_IP Current public node addresses to reserve in DHCP
NODE1_PUBLIC_MAC / NODE2_PUBLIC_MAC MACs of the public NICs connected to default
NODE1_PRIVATE_IP / NODE2_PRIVATE_IP Planned private addresses to apply during node network configuration
NODE1_VIP_IP / NODE2_VIP_IP Two unused public-subnet addresses, outside the dynamic pool
SCAN_IP1 / SCAN_IP2 / SCAN_IP3 Three more unused public-subnet addresses, outside the dynamic pool
DHCP_RANGE_START Existing DHCP range start from the network XML
DHCP_OLD_END Existing DHCP range end from the network XML
DHCP_NEW_END Planned reduced range end, before the reserved VIP/SCAN range

Create a reusable values file as root on the virtualization host. This prompts for every value, rejects blank input, and refuses to overwrite a previous worksheet. Enter IPv4 addresses without a /24 suffix and MAC addresses in colon-separated notation.

(
  set -e
  umask 077
  if [ -e /root/rac-network.env ]; then
    echo "Worksheet already exists. Review /root/rac-network.env instead of recreating it."
    exit 1
  fi

  for field in NODE1_PUBLIC_IP NODE2_PUBLIC_IP \
    NODE1_PUBLIC_MAC NODE2_PUBLIC_MAC \
    NODE1_PRIVATE_IP NODE2_PRIVATE_IP \
    NODE1_VIP_IP NODE2_VIP_IP SCAN_IP1 SCAN_IP2 SCAN_IP3 \
    DHCP_RANGE_START DHCP_OLD_END DHCP_NEW_END; do
    value=''
    while [ -z "$value" ]; do
      read -r -p "$field: " value
    done
    printf '%s=%q\n' "$field" "$value" >> /root/rac-network.env
  done
)

cat /root/rac-network.env
. /root/rac-network.env

Compare every entry with your network plan before using it. Copy this same values file to /root/rac-network.env on both nodes using your trusted file-transfer connection, such as WinSCP. Set permissions and load it as root on each node:

chmod 600 /root/rac-network.env
. /root/rac-network.env

Run . /root/rac-network.env again in each new root terminal before using the network commands below. Variables loaded in one shell are not automatically available in another terminal or after su -. The file records values; it does not change any interfaces, DNS records, or firewall rules.

Give the nodes two communication paths

The public interface provides administration and, later, client connectivity. The private interface carries communication between the cluster nodes.

In Network & Host Name, set each hostname and click Apply. Enable DHCP on the public interface. For the private interface, choose IPv4 Settings → Manual, enter the address assigned to that node's private hostname with a /24 prefix, and leave gateway and DNS blank.

Enable General → Connect automatically with priority, with priority zero, for both interfaces. On the private connection, select Routes → Use this connection only for resources on its network. This keeps the default route on the public interface.

After reboot, verify on both nodes:

hostname
ip -br addr
ip route
systemctl status sshd --no-pager

For our public connection profile named enp1s0, enable automatic activation explicitly:

nmcli connection modify enp1s0 connection.autoconnect yes
nmcli -f connection.id,connection.autoconnect connection show enp1s0

If your profile has another name, obtain it with nmcli -g GENERAL.CONNECTION device show enp1s0 and use the returned name. A connection UUID from one node must not be reused on the other.

After configuring name resolution as described below, test both paths from node1:

ping -c 3 rac26ai-node2
ping -c 3 rac26ai-node2-priv

Then from node2:

ping -c 3 rac26ai-node1
ping -c 3 rac26ai-node1-priv

All four checks returned three replies with zero packet loss. The default route remained on enp1s0, while the private subnet used enp7s0.

For example, node1's successful tests look like this. The excerpts below omit numeric addresses; node2 shows the same packet counts when testing the corresponding node1 hostnames.

[root@rac26ai-node1 ~]# ping -c 3 rac26ai-node2
... replies omitted ...
--- rac26ai-node2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss

[root@rac26ai-node1 ~]# ping -c 3 rac26ai-node2-priv
... replies omitted ...
--- rac26ai-node2-priv ping statistics ---
3 packets transmitted, 3 received, 0% packet loss

The complete set of checks and expected paths is:

Run from Destination hostname Interface used Result
rac26ai-node1 rac26ai-node2 enp1s0 3 sent, 3 received, 0% loss
rac26ai-node1 rac26ai-node2-priv enp7s0 3 sent, 3 received, 0% loss
rac26ai-node2 rac26ai-node1 enp1s0 3 sent, 3 received, 0% loss
rac26ai-node2 rac26ai-node1-priv enp7s0 3 sent, 3 received, 0% loss

Ping confirms reachability. Check ip route separately to confirm the default route uses enp1s0 and the private subnet route uses enp7s0. Traffic between the nodes' public hostnames stays on their directly connected public network; it does not need the default gateway.

Prepare shared storage

The three disks have different purposes:

Label Capacity Intended use
OCR01 40 GiB Cluster registry and voting files
DATA01 100 GiB Database files
RECO01 50 GiB Recovery files

OCR means Oracle Cluster Registry. It stores cluster configuration and resource information. Voting files support cluster membership decisions. These serve the cluster itself, while DATA and RECO serve the database and its recovery needs.

At this stage these are disk labels and intended uses. We have not yet created ASM disk groups or Oracle cluster files.

Use a portion of the available disk

We allocated 250 GiB for the shared disk images: 40 GiB for OCR, 100 GiB for DATA, and 50 GiB for RECO, leaving room for filesystem overhead and free space.

Before preparing it, inspect the virtualization host:

lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT
wipefs -n /dev/sdb
blkid /dev/sdb
findmnt -S /dev/sdb
pvs
swapon --show
cat /proc/mdstat

lsblk shows device layout. wipefs -n reads signatures without erasing them. blkid checks recognized metadata, and findmnt checks mounting. The remaining commands check LVM, swap, and active Linux software RAID. Also inspect every VM's disk attachments with virsh domblklist before treating a host disk as unused.

The following commands replace the partition table on the confirmed unused /dev/sdb and format its new partition. Use them only on the intended empty disk. Run on the virtualization host:

parted -s /dev/sdb mklabel gpt
parted -s /dev/sdb mkpart rac-storage ext4 1MiB 256001MiB
partprobe /dev/sdb
udevadm settle
mkfs.ext4 -L rac-storage /dev/sdb1
mkdir -p /var/lib/libvirt/rac-storage
mount /dev/sdb1 /var/lib/libvirt/rac-storage

The endpoints allocate 250 GiB starting at a 1 MiB boundary. partprobe rereads the table, and udevadm settle waits for device events. This host ext4 filesystem holds virtual disk images; the ASM partitions inside the guests will not receive Linux filesystems.

Make the mount persistent:

cp -a /etc/fstab /etc/fstab.before-rac-storage
grep -q ' /var/lib/libvirt/rac-storage ' /etc/fstab || echo 'LABEL=rac-storage /var/lib/libvirt/rac-storage ext4 defaults 0 2' >> /etc/fstab
systemctl daemon-reload
findmnt --verify --verbose
mount -a
findmnt /var/lib/libvirt/rac-storage

Our checks reported no errors or warnings. The label-based entry avoids relying on a disk letter remaining unchanged. The mount must be available before starting VMs that depend on these images.

Virtualization host: shared storage partition, filesystem creation, and successful mount verification
Virtualization host: shared storage partition, filesystem creation, and successful mount verification

This capture shows the 250 GiB partition after creation, the ext4 filesystem, and its mount at /var/lib/libvirt/rac-storage. The final checks confirm a valid persistent mount configuration and an active mount. The initial checks for existing disk use are listed above; their complete output is not shown in this capture.

Create one set of images and attach it twice

Cleanly shut down both RAC VMs. On the virtualization host, create the images:

cd /var/lib/libvirt/rac-storage
test -e ocr01.img || qemu-img create -f raw -o preallocation=falloc ocr01.img 40G
test -e data01.img || qemu-img create -f raw -o preallocation=falloc data01.img 100G
test -e reco01.img || qemu-img create -f raw -o preallocation=falloc reco01.img 50G
ls -lh *.img
df -h .

The raw images reserve space using fallocate. Existing files are skipped rather than recreated; if they already exist, verify their format and size.

Shared disk images and available storage
Shared disk images and available storage

Create the libvirt disk descriptions:

mkdir -p /root/rac-disk-xml
for spec in "ocr01 vdb RAC_OCR01" "data01 vdc RAC_DATA01" "reco01 vdd RAC_RECO01"; do
  read -r disk target serial <<< "$spec"
  cat > "/root/rac-disk-xml/${disk}.xml" <<EOF
<disk type='file' device='disk' snapshot='no'>
  <driver name='qemu' type='raw' cache='none' io='native'/>
  <source file='/var/lib/libvirt/rac-storage/${disk}.img'/>
  <target dev='${target}' bus='virtio'/>
  <shareable/>
  <serial>${serial}</serial>
</disk>
EOF
done

for vm in rac26ai-node1 rac26ai-node2; do
  for disk in ocr01 data01 reco01; do
    virsh attach-device "$vm" "/root/rac-disk-xml/${disk}.xml" --config
  done
done

Both VM definitions reference the same files. <shareable/> marks concurrent sharing, cache='none' bypasses the host page cache, and the serials let us recognize the disks consistently inside the guests. These attributes are described in the libvirt domain XML reference.

Verify and start:

virsh domblklist rac26ai-node1 --inactive --details
virsh domblklist rac26ai-node2 --inactive --details
virsh start rac26ai-node1
virsh start rac26ai-node2
Successful shared disk attachments and domblklist verification for both nodes
Successful shared disk attachments and domblklist verification for both nodes

The screenshot captures the six successful disk attachments and both domblklist results. Each VM has its own vda OS disk, while vdb, vdc, and vdd reference the same OCR, DATA, and RECO image files. The --inactive option checks the persistent configuration used at the next start. The startup responses are not included in this capture; the guest-side output below shows the disks visible inside both running nodes.

Run inside each node:

hostname
lsblk -d -o NAME,SIZE,MODEL,SERIAL

The saved output below shows each hostname followed by the disk sizes and serials. Only the relevant terminal area is displayed to keep earlier network output out of view.

Node1 hostname and shared disk sizes and serials
Node1: separate OS disk and the three shared disks.
Node2 hostname and matching shared disk sizes and serials
Node2: matching shared disk sizes and serials.

Both showed vdb at 40 GiB with RAC_OCR01, vdc at 100 GiB with RAC_DATA01, and vdd at 50 GiB with RAC_RECO01. Their vda devices remained separate 80 GiB OS disks.

Create consistent Oracle software owners

The nodes need matching numeric identities as well as matching storage. Start on both nodes with:

dnf install -y oracle-ai-database-preinstall-26ai
id oracle
getent group oinstall dba oper

The prerequisite package installed dependencies and applied database prerequisites. Both nodes received oracle UID 54321, oinstall GID 54321, dba GID 54322, and oper GID 54323.

Node1: prerequisite package completion and Oracle account IDs
Node1: prerequisite package completion and Oracle account IDs
Node2: prerequisite package completion and matching Oracle account IDs
Node2: prerequisite package completion and matching Oracle account IDs

Compare the id oracle and getent group output in both captures: the Oracle UID and the oinstall, dba, and oper GIDs match across the two nodes.

After checking the additional IDs are unused, run on both nodes:

groupadd -g 54327 asmadmin
groupadd -g 54328 asmdba
groupadd -g 54329 asmoper
useradd -u 54322 -g oinstall -G asmadmin,asmdba,asmoper,dba -m -s /bin/bash grid
usermod -aG asmdba oracle
passwd grid
passwd oracle

Enter passwords privately. Grid Infrastructure and ASM will be owned by grid; database software will be owned by oracle. The asmdba membership supplies oracle's ASM access role.

Verify on both nodes:

id grid
id oracle
getent group asmadmin asmdba asmoper

Our grid UID is 54322, with primary group oinstall and supplementary groups dba, asmadmin, asmdba, and asmoper. Oracle retains its prerequisite groups and also belongs to asmdba. All IDs and memberships match across the nodes.

Configure ASMLib on both nodes

Copy the Oracle Linux 8 ASMLib RPM to /root/Downloads on each node. Run on both:

dnf --enablerepo=ol8_addons install -y oracleasm-support /root/Downloads/oracleasmlib-3.1.3-1.el8.x86_64.rpm
rpm -q oracleasm-support oracleasmlib

Our installed versions are oracleasm-support 3.1.1-6 and oracleasmlib 3.1.3-1. Obtain the library from Oracle's ASMLib downloads.

UEK R7 uses io_uring for ASMLib and does not need an additional oracleasm kernel driver. See Oracle's ASMLib installation guide.

Configure on both nodes:

oracleasm configure -i
Prompt Answer
Default user grid
Default group asmdba
Start on boot y
Scan disks on boot y
Maximum ASM disks 2048
Enable I/O filter if supported y

Use grid as the disk owner and asmdba as the disk-access group. Keep asmadmin for the OSASM administration role selected later in Grid Setup. These are separate settings.

Start and verify:

systemctl enable --now oracleasm
oracleasm status

If reconfiguring an already-running service, restart oracleasm to apply the changes before ASM instances are installed or running.

ASMLib access and I/O filter checks on both nodes
ASMLib access and I/O filter checks on both nodes

Both reported io_uring (KABI_V3), successful library loading, access for the configured owner, correct permissions, and an initialized I/O filter. The kernel module and /dev/oracleasm mount are not required with UEK7. Integrity passthrough reports no for these virtual disks; it is distinct from the successful ASMLib access checks.

Label on node1 and discover on node2

On node1, inspect before writing:

lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,SERIAL
wipefs -n /dev/vdb /dev/vdc /dev/vdd
oracleasm listdisks

After confirming the intended blank shared disks and their serials, run only on node1:

parted -s /dev/vdb mklabel gpt
parted -s /dev/vdb mkpart primary 1MiB 100%
parted -s /dev/vdc mklabel gpt
parted -s /dev/vdc mkpart primary 1MiB 100%
parted -s /dev/vdd mklabel gpt
parted -s /dev/vdd mkpart primary 1MiB 100%
partprobe /dev/vdb /dev/vdc /dev/vdd
udevadm settle
oracleasm createdisk OCR01 /dev/vdb1
oracleasm createdisk DATA01 /dev/vdc1
oracleasm createdisk RECO01 /dev/vdd1
oracleasm scandisks
oracleasm listdisks
Node1: successful creation of OCR01, DATA01, and RECO01 ASMLib labels, followed by disk discovery
Node1: successful creation of OCR01, DATA01, and RECO01 ASMLib labels, followed by disk discovery

Node1 reports successful header writing and disk instantiation for all three labels. Its final oracleasm listdisks output lists DATA01, OCR01, and RECO01.

Each disk receives a GPT partition starting at 1 MiB and extending to its end. createdisk writes the ASMLib label. Do not run mkfs on these partitions or modify the OS disk vda.

On node2, discover the labels:

partprobe /dev/vdb /dev/vdc /dev/vdd
udevadm settle
oracleasm scandisks
oracleasm listdisks

Do not repeat partitioning or createdisk on node2: those structures already exist on the shared storage.

Node2 discovers the three labels written on node1
Node2 discovers the three labels written on node1

Both nodes list DATA01, OCR01, and RECO01. This confirms discovery through ASMLib, ready for later ASM disk-group creation.

Give the future cluster a stable front door

Both nodes can now discover the same three ASMLib disks. With shared storage prepared, the next step is to give the future RAC cluster a consistent set of network names.

Before configuring names, it helps to separate three questions: What is this node called? Which address belongs to it? How will an application find a database service? They are related, but each requires a different part of the setup.

Linux gives each node a hostname. DHCP supplies its public network address, and a reservation keeps that assignment consistent. Name resolution then associates readable names with the planned addresses. Later, Oracle Clusterware brings the VIP and SCAN resources online and manages where they run. The connection-flow graphic in “Why two nodes have three SCAN addresses” shows how these pieces serve applications after installation.

What does lab.test mean?

Throughout this lab, we use lab.test as our local naming domain. In rac26ai-node1.lab.test, rac26ai-node1 is the short hostname and lab.test is the domain suffix. Together they form a fully qualified domain name (FQDN), which identifies the host within our naming setup.

The word lab is our choice. The .test ending is reserved for testing, so we do not need to buy or register lab.test as a public domain. IANA's .test domain reference

Choosing the suffix does not automatically make these names resolve. We configure local DNS records and node /etc/hosts mappings in the steps below. These names work for systems using that lab name-resolution setup; public internet DNS will not resolve them. Also, “public” in this RAC lab means the client-facing network, not a publicly registered internet hostname.

Name component Example Meaning
Short hostname rac26ai-node1 A node's short name
Local domain lab.test The naming domain chosen for this lab
Fully qualified hostname rac26ai-node1.lab.test Short hostname plus domain

RAC does not require the suffix lab.test. It requires consistent name resolution for the names you configure. We use the same suffix for public node names, private interconnect names, VIPs, and SCAN so their relationship is easy to follow.

Each node needs a public hostname for administration and client connectivity, a private hostname for communication between nodes, and a VIP hostname for a Clusterware-managed address. Applications will use one shared SCAN hostname to find database services across the cluster.

Role Hostname
Node1 public rac26ai-node1.lab.test
Node2 public rac26ai-node2.lab.test
Node1 private rac26ai-node1-priv.lab.test
Node2 private rac26ai-node2-priv.lab.test
Node1 VIP rac26ai-node1-vip.lab.test
Node2 VIP rac26ai-node2-vip.lab.test
SCAN — three DNS records rac26ai-scan.lab.test

What each name is for

Think of the public hostname as the identity of a particular Linux server. We use rac26ai-node1.lab.test when we want to administer node1 specifically. Its private counterpart, rac26ai-node1-priv.lab.test, identifies the interface used for communication with the other cluster node. Both names belong to the same machine, but lead to different network interfaces. Node2 follows the same pattern.

The VIP name has a different job. rac26ai-node1-vip.lab.test names an additional public-network address that Clusterware will manage. It is separate from node1's ordinary public address. Clusterware can relocate the VIP following a node failure; this supports prompt connection failure detection, rather than transferring an existing database session to another node.

The SCAN name, rac26ai-scan.lab.test, identifies the cluster's connection entry points rather than one fixed server. It resolves to three distinct addresses. Once Grid Infrastructure is installed, SCAN listeners will accept initial connection requests and redirect clients to a node listener offering the requested database service. Three SCAN addresses do not require three Linux nodes.

Four configuration tasks, four different purposes

Task Where we configure it What it accomplishes
Set the short hostname Each Linux node Gives each operating system its own name
Reserve public addresses by MAC The virtualization host's libvirt network Keeps DHCP assignments stable for each node's public NIC
Configure DNS and local host mappings Libvirt DNS and each node's /etc/hosts Makes names resolve to their intended addresses
Configure VIP and SCAN resources Grid Infrastructure installation, in the next part Lets Clusterware activate and manage the additional addresses and listeners

These tasks do not substitute for one another. A DHCP reservation does not append .lab.test to the Linux hostname. Writing a name into DNS or /etc/hosts does not activate a VIP. Successful DNS queries at this stage demonstrate naming readiness; the cluster resources will come later.

We will first stabilize the public addresses and set aside space for the future cluster resources. Then we will add and test DNS records, followed by the node-local mappings that let both nodes resolve the same public and private names.

Load the network worksheet created earlier in this root terminal before running the following commands:

. /root/rac-network.env

The XML and hosts-file examples expand those values into actual addresses. Check the worksheet again if you switch terminals or nodes.

Keep public addresses stable and leave room for VIPs

The public interfaces currently obtain their addresses through DHCP. We want each node to keep its assigned public address after a reboot, so we associate that address with the public NIC's MAC address in libvirt's DHCP configuration. This is a DHCP reservation: the guest can continue using DHCP while receiving the same planned address.

Run once on the virtualization host, using your actual public NIC MAC addresses and assigned public addresses in the variables:

virsh net-dumpxml default > /root/default-network-before-rac.xml
virsh net-update default add ip-dhcp-host "<host mac='${NODE1_PUBLIC_MAC}' name='rac26ai-node1' ip='${NODE1_PUBLIC_IP}'/>" --live --config
virsh net-update default add ip-dhcp-host "<host mac='${NODE2_PUBLIC_MAC}' name='rac26ai-node2' ip='${NODE2_PUBLIC_IP}'/>" --live --config

The first command writes a backup of the current network XML to /root/default-network-before-rac.xml; it does not change the network. Each net-update ... add ip-dhcp-host command then adds one reservation. The mac field identifies the node's public NIC, the ip field contains its reserved address, and name labels the reservation.

--live updates the running network, while --config updates the persistent definition used after a network restart. Neither option changes the guest's short hostname or configures Oracle listeners. These commands add new entries; if the reservations already exist, inspect the network XML instead of repeating the additions.

We also need to keep the future node VIPs and three SCAN addresses away from ordinary dynamic DHCP allocation. Clusterware will manage those addresses, so another VM must not receive them from the DHCP pool. Reducing the pool creates a set-aside range; it does not assign those addresses to an interface or create DNS records.

We reduced the dynamic DHCP pool to leave the planned VIP and SCAN addresses outside it. Substitute your existing range and reduced endpoint in these two consecutive commands on the virtualization host:

virsh net-update default delete ip-dhcp-range "<range start='${DHCP_RANGE_START}' end='${DHCP_OLD_END}'/>" --live --config
virsh net-update default add ip-dhcp-range "<range start='${DHCP_RANGE_START}' end='${DHCP_NEW_END}'/>" --live --config
virsh net-dumpxml default

The updates apply immediately and persist across restarts without restarting the network. Exclusion prevents new DHCP assignments; it does not establish that an address is unused. Check active conflicts from node1:

for ip in ${NODE1_VIP_IP} ${NODE2_VIP_IP} ${SCAN_IP1} ${SCAN_IP2} ${SCAN_IP3}; do
  echo "Checking $ip"
  arping -D -I enp1s0 -c 3 "$ip"
done

All five returned zero responses during our probes. Keep these addresses set aside for the cluster.

Why two nodes have three SCAN addresses

A public address identifies a Linux node. A node VIP is an additional address managed by Clusterware. If a node fails, its VIP can relocate, helping new connection attempts fail promptly instead of waiting for a network timeout. Relocation alone does not transfer an existing database session.

SCAN, or Single Client Access Name, gives clients one cluster connection name: rac26ai-scan.lab.test.

Planned client connection flow through SCAN and node listeners
Planned client connection flow through SCAN and node listeners

The three SCAN addresses represent three entry points, not three machines. One node can host two SCAN VIPs and listeners while the other hosts the third. Clusterware manages placement and relocation.

A SCAN listener redirects a client to a node listener offering the requested database service; the client then connects through that node listener. Applications retain the same SCAN name as services move or the cluster grows. Oracle recommends three SCAN addresses for availability and scalability. About the SCAN

SCAN belongs to RAC connectivity. ASM manages storage and does not itself require SCAN. Our earlier single-instance ASM setup did not need this RAC connection design.

Create DNS records and test from both nodes

Use the lab's existing libvirt DNS service. Run once on the virtualization host:

virsh net-update default add dns-host "<host ip='${NODE1_VIP_IP}'><hostname>rac26ai-node1-vip.lab.test</hostname><hostname>rac26ai-node1-vip</hostname></host>" --live --config
virsh net-update default add dns-host "<host ip='${NODE2_VIP_IP}'><hostname>rac26ai-node2-vip.lab.test</hostname><hostname>rac26ai-node2-vip</hostname></host>" --live --config
for ip in ${SCAN_IP1} ${SCAN_IP2} ${SCAN_IP3}; do
  virsh net-update default add dns-host "<host ip='$ip'><hostname>rac26ai-scan.lab.test</hostname><hostname>rac26ai-scan</hostname></host>" --live --config
done

Both nodes use the public libvirt network's DNS service as their resolver. Run on both nodes:

dnf install -y bind-utils
dig +short rac26ai-node1-vip.lab.test
dig +short rac26ai-node2-vip.lab.test
dig +short rac26ai-scan.lab.test

Each VIP hostname resolves to its assigned address. The SCAN hostname returns its three assigned addresses in any order. DNS resolves the names now; Clusterware will activate these addresses during installation. Do not add VIP or SCAN addresses to Linux connection profiles.

Resolve public and private node names consistently

During Linux network setup, we set the short hostnames to rac26ai-node1 and rac26ai-node2. The .lab.test suffix was not added automatically. We explicitly supply the full names in the /etc/hosts mappings below, placing each fully qualified hostname first and its short alias second.

For example, the public mapping for node1 associates its assigned address with rac26ai-node1.lab.test and the alias rac26ai-node1. This lets the system resolve its short name to the full name. The short hostname itself remains unchanged; hostname -f reports the fully qualified name obtained through name resolution.

Load /root/rac-network.env as root on each node before this block. Preserve localhost entries and append these mappings once on both nodes. The unquoted EOF expands the variables:

cp -a /etc/hosts /etc/hosts.before-rac
cat >> /etc/hosts <<EOF

# RAC public addresses
${NODE1_PUBLIC_IP} rac26ai-node1.lab.test rac26ai-node1
${NODE2_PUBLIC_IP}  rac26ai-node2.lab.test rac26ai-node2

# RAC private interconnect
${NODE1_PRIVATE_IP} rac26ai-node1-priv.lab.test rac26ai-node1-priv
${NODE2_PRIVATE_IP} rac26ai-node2-priv.lab.test rac26ai-node2-priv

# RAC node VIPs
${NODE1_VIP_IP} rac26ai-node1-vip.lab.test rac26ai-node1-vip
${NODE2_VIP_IP} rac26ai-node2-vip.lab.test rac26ai-node2-vip
EOF

Keep SCAN in DNS. Verify:

getent ahostsv4 rac26ai-node1
getent ahostsv4 rac26ai-node2
getent ahostsv4 rac26ai-node1-priv
getent ahostsv4 rac26ai-node2-priv
hostname -f

After adding the mappings on both nodes, hostname -f returned rac26ai-node1.lab.test on node1 and rac26ai-node2.lab.test on node2:

Node1 hostname -f returns rac26ai-node1.lab.test
Node1: hostname -f returns rac26ai-node1.lab.test.
Node2 hostname -f returns rac26ai-node2.lab.test
Node2: hostname -f returns rac26ai-node2.lab.test.

The screenshot excerpts show only the hostname checks to keep numeric addresses out of view. The getent ahostsv4 checks above separately verify the public and private mappings through the system resolver.

Both nodes returned the intended addresses. Their fully qualified names are rac26ai-node1.lab.test and rac26ai-node2.lab.test. Repeated STREAM, DGRAM, and RAW lines in ahostsv4 output refer to socket types.

Prepare local software locations

The nodes share database storage but retain separate local Oracle software homes. Run on both nodes:

mkdir -p /u01/app/26ai/grid /u01/app/grid /u01/app/oraInventory
mkdir -p /u01/app/oracle/product/26ai/dbhome_1
chown grid:oinstall /u01/app/26ai /u01/app/26ai/grid /u01/app/grid /u01/app/oraInventory
chown -R oracle:oinstall /u01/app/oracle
chmod 775 /u01/app /u01/app/26ai /u01/app/26ai/grid /u01/app/grid /u01/app/oraInventory
df -h /u01
Location Purpose Owner
/u01/app/26ai/grid Grid Infrastructure home grid:oinstall
/u01/app/grid Grid base grid:oinstall
/u01/app/oraInventory Central inventory grid:oinstall initially
/u01/app/oracle Database base oracle:oinstall
/u01/app/oracle/product/26ai/dbhome_1 Database home oracle:oinstall

Each node had approximately 59 GiB available at this point. Monitor free space when staging and extracting the Grid and database archives.

Stage and extract the Grid Infrastructure image on node1

The pre-install CVU utility comes from the Grid software image. Extract that image before running the validation section below. This prepares the installer files; it does not install or start Clusterware.

Download the Grid Home ZIP for Linux x86-64 from Oracle's 26ai downloads page, accepting the applicable download terms yourself. The image used in this lab is LINUX.X64_2326100_grid_home.zip. Download the ZIP image rather than the single-instance database RPM. If you select a later release update, use its actual filename and checksum throughout your preparation.

As root on node1, create a staging directory and install the extraction tool:

dnf install -y unzip
mkdir -p /u01/stage
chown grid:oinstall /u01/stage
chmod 750 /u01/stage
df -h /u01

Using WinSCP or another trusted file-transfer client, copy the downloaded ZIP to node1, in /u01/stage. If you connect as grid, upload directly there. If you upload as root, set the archive ownership afterward as root on node1:

chown grid:oinstall /u01/stage/LINUX.X64_2326100_grid_home.zip
chmod 640 /u01/stage/LINUX.X64_2326100_grid_home.zip
ls -lh /u01/stage/LINUX.X64_2326100_grid_home.zip

From a root terminal on node1, switch to grid, then verify the download before extracting:

su - grid
sha256sum /u01/stage/LINUX.X64_2326100_grid_home.zip
unzip -t /u01/stage/LINUX.X64_2326100_grid_home.zip

Run su - grid only when switching from root; if already logged in as grid, start with sha256sum. Compare the full SHA-256 output with the value Oracle publishes for that exact ZIP. unzip -t must finish without archive errors. A checksum mismatch or archive test failure means the download must be corrected before proceeding.

The target /u01/app/26ai/grid was created earlier with grid ownership. For a fresh installation only, extract into that empty home as grid on node1:

(
  set -e
  cd /u01/app/26ai/grid
  if [ -n "$(find . -mindepth 1 -maxdepth 1 -print -quit)" ]; then
    echo "Grid home is not empty. Check whether it was already extracted; do not overwrite it."
    exit 1
  fi
  unzip /u01/stage/LINUX.X64_2326100_grid_home.zip
)

ls -l /u01/app/26ai/grid/gridSetup.sh
ls -l /u01/app/26ai/grid/runcluvfy.sh

If the image is already correctly extracted, skip extraction and verify both files exist. Do not unpack a fresh image over an installed Grid home. Extract as grid, not root. The installer copies the Grid software to node2 during installation, so leave node2's prepared Grid home empty at this point. Run the pre-install CVU command on node1, where runcluvfy.sh now exists. Oracle's image-based installation guidance

The database-home ZIP is separate. It is not required for the Grid pre-check; stage and extract the database software when proceeding to the database installation part of this series.

Put both clocks on the same timeline

The nodes also need synchronized clocks. Enable chrony on both:

systemctl enable --now chronyd
chronyc online
chronyc burst 4/4

Allow measurements to arrive, then check:

chronyc sources -v
chronyc tracking
timedatectl

enable --now starts chronyd and enables it after reboot. online tells chrony to contact its sources, while burst 4/4 requests a short burst of measurements. In the source list, ^* marks the selected source. Tracking should report Leap status: Normal.

Node1 time source and normal synchronization
Node1 time source and normal synchronization
Node2 time source and normal synchronization
Node2 time source and normal synchronization

Both nodes reached normal synchronization. They selected different external time servers, which is acceptable: the goal is aligned clocks, not identical selected-source names.

Validate the installation owner and cluster prerequisites

Complete the following steps in order before launching Grid Setup. Each step states the account and node to use, followed by the result to check. Run commands marked root on both nodes separately on node1 and node2; run the final CVU command only once, as grid on node1, to check both nodes.

Step Where and who Required result
1. Memory and swap root on both nodes 16 GiB assigned RAM and approximately 16 GiB total swap
2. Installation-owner limits root, then fresh grid sessions on both nodes Correct stack and calculated memlock limits
3. SSH name verification grid on both nodes Local and remote short-name and FQDN connections without prompts
4. Firewall root on both nodes Private NIC trusted; public, VIP, and SCAN rules active and persistent
5. DNS root on both nodes Correct node mappings, three SCAN addresses, bounded lookup retries
6. Avahi root on both nodes Service and socket inactive and disabled
7. ASM disk access root on both nodes All three labels visible; partitions owned by grid:asmdba
8. Cluster pre-check grid on node1 CVU reports successful pre-check for both nodes
9. Installer launch session grid in node1's graphical desktop Correct limits in the terminal that starts Grid Setup

Step 1 — Verify memory and provide enough swap

Run as root on both nodes:

hostname
free -h
swapon --show
df -h /

Each VM has 16 GiB assigned RAM. Linux reports approximately 15.34 GiB usable memory after reservations. The verified CVU run required 15.3377 GiB swap on each node. Our original 12 GiB swap partition therefore needs another 4 GiB. The root filesystem must have enough free space for the file and Oracle software.

If your total swap is already sufficient, skip file creation. Otherwise, for this lab's existing 12 GiB swap layout, run this block as root on each node. It refuses to overwrite an existing file and adds the persistent entry only after activation succeeds.

(
  set -e
  swapfile=/swapfile-rac-extra

  if [ -e "$swapfile" ]; then
    echo "$swapfile already exists; inspect it before continuing."
    exit 1
  fi

  dd if=/dev/zero of="$swapfile" bs=1M count=4096 status=progress
  chmod 600 "$swapfile"
  mkswap "$swapfile"
  swapon "$swapfile"

  grep -qF "$swapfile " /etc/fstab ||
    printf '%s none swap defaults 0 0\n' "$swapfile" >> /etc/fstab

  swapon --show
  free -h
)

Expect both the 12 GiB partition and the 4 GiB file in swapon --show. free -h can display a rounded-down 15Gi; the CVU report identifies the combined swap as 16 GB. The file is active immediately and /etc/fstab enables it after reboot.

Additional swap activated on both nodes, alongside the original swap partitions
Additional swap activated on both nodes, alongside the original swap partitions

Step 2 — Set grid limits, then verify a fresh login

The preinstallation RPM does not replace checking every installation owner. Run the following as root on both nodes. The dedicated file applies to grid; it leaves oracle's existing configuration in place.

grid_memlock_kb=$(awk '/^MemTotal:/ {printf "%.0f", $2 * 0.90 + 1}' /proc/meminfo)

cat > /etc/security/limits.d/99-grid-install.conf <<EOF
grid soft stack 10240
grid hard stack 32768
grid soft memlock ${grid_memlock_kb}
grid hard memlock ${grid_memlock_kb}
EOF

su - grid -c 'hostname; ulimit -Ss; ulimit -Hs; ulimit -Sl; ulimit -Hl'

The calculation sets memlock to at least 90 percent of the RAM reported by Linux, in KB. It permits memory locking; it does not reserve that memory or configure HugePages. Recalculate this after changing VM memory. Verify these values in fresh grid logins on both nodes:

Limit Verified value in this lab
Stack soft 10240 KB
Stack hard 32768 KB
Memlock soft At least 90% of current MemTotal, in KB
Memlock hard Same calculated value as the soft limit

Check the open-file and process limits for both grid and oracle. Run this block as root on both nodes. Each su - command checks a fresh login shell for that software owner; the block only reads settings.

for owner in grid oracle; do
  su - "$owner" -c '
    echo "Host: $(hostname) | User: $(whoami)"
    printf "Open files soft: "; ulimit -Sn
    printf "Open files hard: "; ulimit -Hn
    printf "Processes soft:  "; ulimit -Su
    printf "Processes hard:  "; ulimit -Hu
  '
done

Compare each account's output with these minimum values. Higher values are acceptable.

Resource Command for soft limit Minimum soft Command for hard limit Minimum hard
Open files ulimit -Sn 1024 ulimit -Hn 65536
Processes ulimit -Su 2047 ulimit -Hu 16384

If a value is below its minimum, correct that account's limits configuration and repeat the check from a fresh login before proceeding. See Oracle's installation-user resource limits.

Step 3 — Verify SSH with short hostnames and FQDNs

Establish passwordless SSH before running the standalone CVU check. This section uses manual key setup so the preparation does not depend on first opening Grid Setup. During installation, the wizard's SSH connectivity → Test verifies the existing configuration. Oracle's SSH preparation guidance

Establish trust and distribute the grid public keys

First ensure the SSH service and client tools are available. As root on both nodes, run:

dnf install -y openssh-clients openssh-server
systemctl enable --now sshd
systemctl is-active sshd

Expect active. Then as root through the trusted console on each node, record the host's public-key fingerprints:

hostname
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub
ssh-keygen -lf /etc/ssh/ssh_host_ecdsa_key.pub
ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub

Compare the algorithm and fingerprint shown by a first SSH connection with the corresponding destination console output before answering yes. The short and full names of a node must both resolve to that same intended host. A host-key mismatch must be investigated rather than bypassed.

As grid on both nodes, create a key only if this key file does not already exist:

whoami
mkdir -p ~/.ssh
chmod 700 ~/.ssh
if [ ! -f ~/.ssh/id_ed25519 ]; then
  ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519
fi
ls -l ~/.ssh/id_ed25519 ~/.ssh/id_ed25519.pub

This lab uses a key without a passphrase so unattended SSH checks can run. Protect the grid account and its private key; distribute only the .pub file. If an existing key is passphrase-protected, arrange its approved agent-based use for the installation session rather than overwriting it. If passwordless SSH is already working for all the tests below, key creation and copying can be skipped.

Run the following block as grid on node1, then as grid on node2. Each run distributes that node's public key to both grid accounts and establishes trust for both spellings, including local-node SSH:

for host in rac26ai-node1 rac26ai-node1.lab.test \
            rac26ai-node2 rac26ai-node2.lab.test; do
  ssh-copy-id -i ~/.ssh/id_ed25519.pub "grid@$host" || break
done

Enter the destination grid account's password when requested. This is expected during key installation. Verify host fingerprints before accepting first-use prompts. ssh-copy-id can report that a key is already installed; it need not add a duplicate. If a connection fails, correct that host's resolution, SSH service, account access, or trust issue before proceeding to the batch tests. Do not copy private keys between nodes.

Verify all local and remote connections

After key distribution is complete on both nodes, run these checks from fresh grid login shells. The batch tests below must not request passwords or host confirmation.

A short hostname such as rac26ai-node2 and its fully qualified domain name (FQDN), rac26ai-node2.lab.test, refer to the same node. This lab uses both forms. Verify name resolution and SSH trust for both; success with one spelling does not prove the other works. BatchMode=yes makes SSH fail instead of waiting for a password or confirmation, and ConnectTimeout=10 limits connection establishment to ten seconds. The trailing hostname prints the destination node's name.

As grid on node1, check node1 itself and node2:

ssh -o BatchMode=yes -o ConnectTimeout=10 rac26ai-node1 hostname
ssh -o BatchMode=yes -o ConnectTimeout=10 rac26ai-node1.lab.test hostname
ssh -o BatchMode=yes -o ConnectTimeout=10 rac26ai-node2 hostname
ssh -o BatchMode=yes -o ConnectTimeout=10 rac26ai-node2.lab.test hostname

As grid on node2, check node2 itself and node1:

ssh -o BatchMode=yes -o ConnectTimeout=10 rac26ai-node2 hostname
ssh -o BatchMode=yes -o ConnectTimeout=10 rac26ai-node2.lab.test hostname
ssh -o BatchMode=yes -o ConnectTimeout=10 rac26ai-node1 hostname
ssh -o BatchMode=yes -o ConnectTimeout=10 rac26ai-node1.lab.test hostname

Each command must return the intended destination hostname without a password or host-confirmation prompt. The commands above include local-node connections because cluster operations can connect back to the local node. The successful remote tests below were recorded after correcting host-key verification.

Both grid users successfully run batch-mode SSH using the other node's short hostname
Both grid users successfully run batch-mode SSH using the other node's short hostname

The screenshot includes the earlier failed attempts at the top; the final commands show successful short-name connections in both directions. Full-name batch-mode connections had also succeeded.

If ping works but SSH says Host key verification failed

SSH can have separate known-host records for a short name, a full name, and an address. RSA and ECDSA are different host-key types, so different fingerprints across those types are not proof of a stale key. Compare like-for-like fingerprints against the destination node's local public host keys:

ssh-keygen -lf /etc/ssh/ssh_host_ecdsa_key.pub
ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub

Run those on the destination node through its existing trusted console. If a connection reports a conflict, inspect the exact name/address and algorithm involved before changing anything. Back up ~/.ssh/known_hosts; remove only a confirmed conflicting entry with ssh-keygen -R, then verify the new fingerprint. Do not delete the whole file or disable strict host verification.

In our case, once the full-name connections were independently verified and working, these commands learned additional server host keys through those trusted connections:

# As grid on node1
ssh -o BatchMode=yes -o UpdateHostKeys=yes rac26ai-node2.lab.test hostname

# As grid on node2
ssh -o BatchMode=yes -o UpdateHostKeys=yes rac26ai-node1.lab.test hostname

Repeat all short-name and full-name tests afterward. This is a conditional repair for the issue we observed, not a substitute for establishing trust first. See OpenSSH UpdateHostKeys.

Step 4 — Allow cluster traffic and verify persistence

Ping tests ICMP and SSH tests a specific TCP service. Neither establishes that the cluster's other TCP, UDP, or multicast traffic can pass. Validate both public TCP traffic and private interconnect multicast before installation.

The following configuration applies to this lab's isolated private interconnect. Run as root on both nodes to place only enp7s0 in the trusted zone and persist that choice in its NetworkManager profile:

private_profile=$(nmcli -g GENERAL.CONNECTION device show enp7s0)
nmcli connection modify "$private_profile" connection.zone trusted
firewall-cmd --zone=trusted --change-interface=enp7s0
firewall-cmd --get-active-zones

Expect enp7s0 under trusted and enp1s0 under public. Trusted permits incoming traffic on that private interface. Keep the public interface out of trusted. Oracle advises against firewall filtering on the private interconnect.

Allow public node, VIP, and SCAN sources before installation

On both nodes, prepare public-zone rules for the two physical public addresses, two node VIPs, and all three SCAN addresses. VIP and SCAN resources can run on either node, so both nodes need the complete address list. This lab permits traffic from these specific sources across ports; adapt the policy separately for a production environment.

Complete the DNS records and reservations described earlier first. As root on both nodes, resolve the planned addresses and compare them with your network plan:

for name in rac26ai-node1.lab.test rac26ai-node2.lab.test \
            rac26ai-node1-vip.lab.test rac26ai-node2-vip.lab.test; do
  echo "$name"
  getent ahostsv4 "$name" | awk '$2 == "STREAM" {print $1}' | sort -u
done

dig +short A rac26ai-scan.lab.test | sort -u

Expect one planned public address for each node, one for each VIP, and three distinct SCAN addresses. DNS records must exist at this stage, but do not manually activate VIP or SCAN addresses on Linux interfaces; Clusterware creates those resources during installation.

After confirming the mappings, run the following as root on both nodes. It builds a unique list, requires seven IPv4 addresses for this lab, and adds each rule to both the active and permanent configurations:

(
  set -e
  mapfile -t cluster_public_ips < <(
    {
      getent ahostsv4 rac26ai-node1.lab.test rac26ai-node2.lab.test \
        rac26ai-node1-vip.lab.test rac26ai-node2-vip.lab.test |
        awk '$2 == "STREAM" {print $1}'
      dig +short A rac26ai-scan.lab.test
    } | sort -u
  )

  if [ "${#cluster_public_ips[@]}" -ne 7 ]; then
    echo "Expected seven distinct cluster IPv4 addresses; check DNS and host mappings."
    exit 1
  fi

  for ip in "${cluster_public_ips[@]}"; do
    if [[ ! "$ip" =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; then
      echo "Unexpected resolver result: $ip"
      exit 1
    fi
  done

  for ip in "${cluster_public_ips[@]}"; do
    rule="rule family=ipv4 source address=${ip}/32 accept"
    firewall-cmd --permanent --zone=public --add-rich-rule="$rule"
    firewall-cmd --zone=public --add-rich-rule="$rule"
  done
)

ALREADY_ENABLED means that rule is already present. No firewall reload is needed because both active and permanent rules are explicitly added.

Verify both running and saved rules on each node:

hostname
firewall-cmd --get-active-zones
firewall-cmd --zone=public --list-rich-rules
firewall-cmd --permanent --zone=public --list-rich-rules

Both listings must include all seven planned public, VIP, and SCAN source addresses. Keep enp1s0 in public and enp7s0 in trusted. Recheck the active and permanent configurations after network-profile changes, firewall reloads, and reboots. Use persistent rules without an expiry timeout. See firewalld's command reference.

Verify connectivity at two stages

Before Grid Setup, verify the complete planned firewall rules and run the pre-install CVU command in Step 8. VIP and SCAN addresses are not yet active, so a successful pre-install check alone cannot establish that connections using those source addresses will work after installation.

After the root scripts finish successfully on both nodes, Clusterware has activated the configured cluster addresses. Run the following as grid on node1 to check the installed cluster, and let the installer's final verification run as well:

/u01/app/26ai/grid/bin/cluvfy stage -post crsinst \
  -n rac26ai-node1,rac26ai-node2 \
  -verbose 2>&1 | tee ~/rac-postinstall-check.log

Require the final post-check to succeed before treating installation as verified. If it reports PRVG-11067 or PRVG-11095, inspect the named source and destination addresses and verify their active firewall rules on both nodes. A pre-check pass does not replace this post-install validation. Oracle's connectivity error guidance

Step 5 — Verify DNS and bound lookup retries

Configure matching resolver options on both nodes through NetworkManager so the settings persist without replacing the lab DNS server. This bounds retries for unreachable-name lookups, which are also checked by CVU.

As root on both nodes:

public_profile=$(nmcli -g GENERAL.CONNECTION device show enp1s0)
nmcli connection modify "$public_profile" +ipv4.dns-options "timeout:2,attempts:2"
nmcli device reapply enp1s0
cat /etc/resolv.conf

Confirm the existing nameserver is retained and options timeout:2 attempts:2 appears. Then test:

dig +short rac26ai-scan.lab.test
getent ahostsv4 rac26ai-node1
getent ahostsv4 rac26ai-node2

SCAN must still return its three planned addresses, and node mappings must remain correct. Also validate DNS response times: if valid queries fail or nonexistent-name lookups still exceed the threshold, investigate the resolver and its upstream service. Oracle PRVF-05636 guidance

Step 6 — Disable unused Avahi discovery

This lab uses explicit DNS and host mappings. Stop the unused Avahi service and socket, and disable their automatic startup before launching Grid Setup.

As root on both nodes:

systemctl disable --now avahi-daemon.socket avahi-daemon.service
systemctl is-active avahi-daemon.service avahi-daemon.socket
systemctl is-enabled avahi-daemon.service avahi-daemon.socket

Both units should report inactive and disabled. The nonzero exit status from is-active for an inactive service is expected.

Step 7 — Verify ASM labels, ownership, and permissions

Run as root on both nodes:

oracleasm listdisks
oracleasm querydisk -p OCR01
oracleasm querydisk -p DATA01
oracleasm querydisk -p RECO01
ls -l /dev/vdb1 /dev/vdc1 /dev/vdd1

The lab's mappings must match on both nodes:

ASMLib label Partition Expected owner and group Expected permissions
OCR01 /dev/vdb1 grid:asmdba 660
DATA01 /dev/vdc1 grid:asmdba 660
RECO01 /dev/vdd1 grid:asmdba 660

Each query should report a valid ASM disk. Confirm the mappings before applying permissions. If an existing configuration uses another disk-access group, set ASMLib's persistent owner and group and apply the current permissions as root on both nodes, before ASM is installed or running:

oracleasm configure -u grid -g asmdba
oracleasm scandisks
chown grid:asmdba /dev/vdb1 /dev/vdc1 /dev/vdd1
chmod 660 /dev/vdb1 /dev/vdc1 /dev/vdd1
oracleasm configure
ls -l /dev/vdb1 /dev/vdc1 /dev/vdd1

Expect grid asmdba and brw-rw---- for each block device. Keep asmadmin as the OSASM group in Grid Setup; asmdba is the disk-access group. Oracle's OSDBA for ASM guidance describes this ownership. These checks do not require recreating labels, repartitioning disks, or formatting them.

Node2 confirms valid OCR01, DATA01, and RECO01 labels and their partition mappings
Node2 confirms valid OCR01, DATA01, and RECO01 labels and their partition mappings

Step 8 — Run the complete cluster pre-installation check

Run once as grid on node1. This command checks both nodes; do not run the Grid software as root.

cd /u01/app/26ai/grid
set -o pipefail

./runcluvfy.sh stage -pre crsinst \
  -n rac26ai-node1,rac26ai-node2 \
  -crshome /u01/app/26ai/grid \
  -asm -asmgrp asmadmin \
  -asmdev "/dev/vdb1,/dev/vdc1,/dev/vdd1" \
  -osdba asmdba -osoper asmoper \
  -orainv oinstall \
  -verbose 2>&1 | tee ~/rac-preinstall-check.log

printf 'CVU pipeline exit status: %s\n' "$?"

Use the partition paths verified in Step 7. The explicit -asmdev list prevents CVU from using the default /dev/sd* discovery pattern, which does not match this lab's virtio disks. The graphical installer will use the ASMLib discovery string ORCL:*. Oracle's CVU command reference documents the device-list option.

The successful lab report included the following results. This is a text excerpt from the actual CVU run:

  Swap Size ...PASSED
  Multicast or broadcast check ...PASSED
  ASMLib installation and configuration verification. ...PASSED
    Access Control List check ...PASSED
  Device Checks for ASM ...PASSED
  Network Time Protocol (NTP) ...PASSED
  resolv.conf Integrity ...PASSED
  User Equivalence ...PASSED
  Maximum locked memory check ...PASSED

Pre-check for cluster services setup was successful.

The report is saved in ~/rac-preinstall-check.log. Read the final result and all findings. In this lab, RPM database and cgroup checks reported INFORMATION / PRVG-11250 because they require root privileges; ORAchk reported INFORMATION / PRVH-1507 because it was skipped. The overall CVU pre-check succeeded, but these informational entries do not mean those skipped checks ran and passed.

If CVU reports a failure, correct its specific cause on the named node and rerun the command before continuing. A ping or SSH test alone does not replace this cluster check.

Step 9 — Verify the actual graphical launch session

Sign into node1's graphical desktop directly as grid and open Terminal. Run the following in the exact terminal you will use for Grid Setup. A successful SSH or su - grid check does not prove that the graphical terminal inherited the same limits.

whoami
hostname
printf 'DISPLAY=%s\n' "$DISPLAY"
printf 'Open files soft: '; ulimit -Sn
printf 'Open files hard: '; ulimit -Hn
printf 'Processes soft: '; ulimit -Su
printf 'Processes hard: '; ulimit -Hu
printf 'Stack soft: '; ulimit -Ss
printf 'Stack hard: '; ulimit -Hs
printf 'Memlock soft: '; ulimit -Sl
printf 'Memlock hard: '; ulimit -Hl

Expect grid, rac26ai-node1, and a nonempty display value such as :0. Compare the file and process limits with Step 2, check stack limits of at least 10240 KB soft and 32768 KB hard, and check that both memlock limits meet the calculated requirement. Higher limits are acceptable. The $ in "$DISPLAY" is essential: without it, the command prints literal text instead of the environment variable.

If the graphical session has old limits, use the desktop's Log Out option and sign back in as grid. Locking the desktop, opening another terminal, or switching users inside a terminal does not necessarily restart the processes that supply the limits. If DISPLAY is empty, return to a direct grid graphical login rather than guessing a display value or disabling X access controls.

If graphical memlock remains low after logout

Use this conditional diagnostic only if the graphical terminal still reports a low memlock value, such as 64 KB, while a fresh grid login has the expected value. GNOME Terminal can be launched through the systemd user manager, which has its own inherited limits. systemd documents this distinction.

As root on node1, compare a fresh login with the actual desktop processes:

grid_uid=$(id -u grid)
su - grid -c 'ulimit -Sl; ulimit -Hl'
systemctl show "user@${grid_uid}.service" \
  -p MainPID -p LimitMEMLOCK -p LimitMEMLOCKSoft

for pid in $(pgrep -u grid -f 'systemd --user|gnome-terminal-server|gnome-session'); do
  ps -p "$pid" -o pid,ppid,args
  grep 'Max locked memory' "/proc/$pid/limits"
done

ulimit -l reports KB; systemd and /proc/<pid>/limits report bytes. Thus 65536 bytes corresponds to 64 KB. If the fresh grid login is also too low, return to Step 2 and inspect the PAM limits configuration first. If the user manager and terminal are low while the fresh login meets the requirement, apply the following user-specific override. Skip this fix when the graphical checks already pass.

As root on the affected node, before Grid installation:

grid_uid=$(id -u grid)
grid_memlock_kb=$(awk '/^MemTotal:/ {
  print int(($2 * 9 + 9) / 10)
}' /proc/meminfo)
grid_override_dir="/etc/systemd/system/user@${grid_uid}.service.d"
mkdir -p "$grid_override_dir"
if [ -f "$grid_override_dir/90-grid-memlock.conf" ]; then
  cp -p "$grid_override_dir/90-grid-memlock.conf" \
    "$grid_override_dir/90-grid-memlock.conf.bak.$(date +%Y%m%d%H%M%S)"
fi
printf '[Service]\nLimitMEMLOCK=%s\n' \
  "$((grid_memlock_kb * 1024))" \
  > "$grid_override_dir/90-grid-memlock.conf"
systemctl daemon-reload

Save work and log out of the grid desktop. From a separate root SSH session, end the remaining grid sessions so the user manager is recreated:

loginctl terminate-user grid

This ends the user's sessions and associated processes. Use it here before Grid Infrastructure is installed or its installer is running; do not use it as a routine fix on an operating cluster. Sign back into the desktop as grid, open Terminal, and rerun the full launch-session check above. Memlock should now meet the requirement. For this lab's reported RAM, the calculated value is 14474517 KB. The limit permits locked memory; it does not reserve it.

This troubleshooting branch explains what to do if the condition occurs; it is not an extra command sequence every reader must run. Apply account-specific fixes only to an affected account. The database software owner oracle will have its own SSH and launch-session checks in the database installation part.

With CVU and the graphical checks complete, continue to Part 2 from this grid session. Part 2 starts Grid Setup and walks through the wizard. Run its prerequisite checks for both nodes before clicking Install; resolve unexplained failures rather than using Ignore All as a general bypass.

The foundation before the graphical installation

We now have two Oracle Linux nodes, working public and private connectivity, persistent public-address reservations, VIP and SCAN name resolution, matching Oracle identities, synchronized clocks, and shared ASMLib labels visible from both nodes. The Grid image is staged and extracted on node1, and grid SSH access is configured and verified. The database-home image is handled separately in the database installation part.

Grid Infrastructure has not been installed yet. There are no ASM disk groups or RAC database instances, and the VIP and SCAN addresses are not yet active cluster resources.

The standalone CVU pre-check has succeeded for both nodes with the settings above. Verify your own report and graphical launch-session limits, then complete Grid Setup's prerequisite checks before installation. Part 2 continues with the graphical Grid Infrastructure installation; database software installation and DBCA follow after the cluster foundation is verified.

Continue to Part 2: Install Grid Infrastructure and create the RAC database →

Share on LinkedIn ↗

Join the discussion

Ask a question, share a result, or add a useful tip.

Loading comments…

Leave a comment

Your name and comment will be public. Keep passwords, email addresses, IP addresses, and other private details out of your comment. Cloudflare Turnstile checks submissions to help prevent spam.