Difference between revisions of "RAC 12c installation on OEL"

From Tom's notes
Jump to navigation Jump to search
Line 32: Line 32:
 
Install some useful utilities:
 
Install some useful utilities:
 
<source lang="sh">
 
<source lang="sh">
yum install nfs-utils xauth libXp libXtst compat-libcap1 compat-libstdc++-33 libstdc++-devel sysstat gcc gcc-c++ ksh glibc-devel libaio-devel
+
yum install nfs-utils xauth libXp libXtst compat-libcap1 compat-libstdc++-33 libstdc++-devel sysstat gcc gcc-c++ ksh glibc-devel libaio-devel bind-utils
 
</source>
 
</source>
  

Revision as of 03:08, 8 May 2016

Installation

This is not intended to be a full guide.

Minimum requirements votings disks when storing them on ASM using external redundancy: At least 1 300MB volume for the voting disk and at least 1 300MB volume for the OCR.

# Create volumes
lvcreate -L 300M -n tomora-vote /dev/vg0
lvcreate -L 300M -n tomora-ocr /dev/vg0

# Export them as iscsi LUNs
tgtadm --lld iscsi --mode target --op new --tid=2 --targetname iqn.2007-01.be.hacks:tomora
tgtadm --lld iscsi --mode logicalunit --op new --tid 2 --lun 1 -b /dev/vg0/tomora-vote
tgtadm --lld iscsi --mode logicalunit --op new --tid 2 --lun 2 -b /dev/vg0/tomora-ocr
tgtadm --lld iscsi --mode target --op bind --tid 2 -I ALL
tgtadm --

# Save iscsi config:
tgt-admin --dump > /etc/tgt/targets.conf

# Mount them on the rac nodes:
# Discover target:
iscsiadm -m discovery -t st -p <ip> -P 1

# Add targets:
iscsiadm -m node -T iqn.2007-01.be.hacks:tomora [-p <ip[:port]>] -l

# Add target to auto-startup:
iscsiadm -m node -T iqn.2007-01.be.hacks:tomora [-p <ip[:port]>] -o update -n node.startup -v automatic


Install some useful utilities:

yum install nfs-utils xauth libXp libXtst compat-libcap1 compat-libstdc++-33 libstdc++-devel sysstat gcc gcc-c++ ksh glibc-devel libaio-devel bind-utils

If key-based ssh access doesn't work anymore after changing the home directory, you can fix this by setting the SELinux policy:

chcon -R -t ssh_home_t /oracle/.ssh

Disable firewall as it probably will cause issues:

systemctl disable firewalld.service
systemctl stop firewalld.service

Shared disks for ASM should be owned by oracle:dba