[Oracle RAC 12.1 Installation on Oracle Linux 6.7 (ISCSI + ASM)]: Checking cluster configuration before RAC installation

Server: rac1


It may be better to download the latest version of “Oracle Cluster Verification Utility” from the Oracle website

http://www.oracle.com/technetwork/products/clustering/downloads/cvu-download-homepage-099973.html


Install the testing package on both cluster nodes.

# cd /tmp/oracle/12.1/database/rpm
# rpm -Uvh cvuqdisk-1.0.9-1.rpm

# scp ./cvuqdisk-1.0.9-1.rpm root@rac2:/tmp/
# ssh rac2 rpm -Uvh /tmp/cvuqdisk-1.0.9-1.rpm


# su - oracle12
$ cd /tmp/oracle/12.1/grid


$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -r 12.1

If errors occurred, you can get a log with a more detailed report of the issues:

$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -r 12.1  -verbose > /tmp/log.log


Got an error:

Check: Swap space
  Node Name     Available                 Required                  Status
  ------------  ------------------------  ------------------------  ----------
  rac2          4GB (4194300.0KB)         4.1026GB (4301836.0KB)    failed
  rac1          4GB (4194300.0KB)         4.1026GB (4301836.0KB)    failed
Result: Swap space check failed
Server: rac1, rac2
# dd if=/dev/zero of=/root/swapfile count=1024 bs=4718592

# mkswap -f /root/swapfile

# swapon /root/swapfile

# swapon -s
Filename				Type		Size	Used	Priority
/dev/dm-1                               partition	4194300	0	-1
/root/swapfile                          file		4301832	0	-2


# vi /etc/fstab

Comment out:

# /dev/mapper/VolGroup-lv_swap swap                    swap    defaults        0 0

Add:

/root/swapfile      swap                    swap    defaults        0 0


Server: rac1
# su - oracle12
$ cd /tmp/oracle/12.1/grid
$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -r 12.1

***
Pre-check for cluster services setup was successful.

Since I am working with virtual machines, I think I should save (create a snapshot).