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

From Tom's notes
Jump to navigation Jump to search
Line 33: Line 33:
 
<source lang="sh">
 
<source lang="sh">
 
yum install nfs-utils xauth libXp libXtst
 
yum install nfs-utils xauth libXp libXtst
 +
</source>
 +
 +
If key-based ssh access doesn't work anymore after changing the home directory, you can fix this by setting the SELinux policy:
 +
<source lang="sh">
 +
chcon -R -t ssh_home_t /oracle/.ssh
 
</source>
 
</source>

Revision as of 01:11, 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

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