Difference between revisions of "RAC 12c installation on OEL"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
=Installation= | =Installation= | ||
This is not intended to be a full guide. | This is not intended to be a full guide. | ||
+ | |||
+ | Minimum sizes for partitions: | ||
+ | /boot = 250M | ||
+ | / = 5G | ||
+ | /oracle = 10G | ||
+ | swap = 5G | ||
+ | |||
+ | 4G RAM | ||
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. | 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. | ||
Line 13: | Line 21: | ||
tgtadm --lld iscsi --mode logicalunit --op new --tid 2 --lun 2 -b /dev/vg0/tomora-ocr | 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 --lld iscsi --mode target --op bind --tid 2 -I ALL | ||
− | |||
# Save iscsi config: | # Save iscsi config: |
Revision as of 04:03, 8 May 2016
Installation
This is not intended to be a full guide.
Minimum sizes for partitions: /boot = 250M / = 5G /oracle = 10G swap = 5G
4G RAM
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
# 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