暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

oracle 12c rac 配置ASM

原创 亂了乱了 2023-01-04
1021

== 配置ASM ==

cat > /etc/hostname << EOF
asm-12c
EOF

cat > /etc/hosts << EOF
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.14.30 asm
192.168.14.31 rac1
192.168.14.32 rac2
EOF

cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF
TYPE=Ethernet
BOOTPROTO=static
NAME=eth0
DEVICE=eth0
ONBOOT=yes
IPADDR=192.168.14.200
NETMASK=255.255.255.0
EOF

cat > /etc/sysconfig/network-scripts/ifcfg-eth1 << EOF
TYPE=Ethernet
BOOTPROTO=static
NAME=eth1
DEVICE=eth1
ONBOOT=yes
IPADDR=192.168.14.200
NETMASK=255.255.255.0
EOF


cat > /etc/selinux/config << EOF
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
EOF

setenforce 1

systemctl stop firewalld.service
systemctl disable firewalld.service

mkdir /etc/yum.repos.d/bk
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bk/

cat > /etc/yum.repos.d/local.repo << EOF
[c7-media]
name=centos7 - media
baseurl=http://192.168.14.244/centos74
gpgcheck=0
enabled=1
EOF

yum -y install nfs-utils rpcbind

systemctl enable rpcbind.service

systemctl enable nfs-server.service

systemctl restart rpcbind.service

systemctl restart nfs-server

mkdir -p /home/asm

cat > /etc/exports << EOF
/home/asm *(rw,sync,no_wdelay,insecure,no_root_squash)
EOF

systemctl restart nfs-server.service

showmount -e

exportfs -v

dd if=/dev/zero of=/home/asm/asm1 bs=8192k count=1280
dd if=/dev/zero of=/home/asm/asm2 bs=8192k count=1280
dd if=/dev/zero of=/home/asm/asm3 bs=8192k count=1280
dd if=/dev/zero of=/home/asm/asm4 bs=8192k count=1280
dd if=/dev/zero of=/home/asm/asm5 bs=8192k count=1280

dd if=/dev/zero of=/home/asm/asm6 bs=8192k count=128
dd if=/dev/zero of=/home/asm/asm7 bs=8192k count=128

dd if=/dev/zero of=/home/asm/asm8 bs=8192k count=1280
dd if=/dev/zero of=/home/asm/asm9 bs=8192k count=1280
dd if=/dev/zero of=/home/asm/asm10 bs=8192k count=1280
dd if=/dev/zero of=/home/asm/asm11 bs=8192k count=1280
dd if=/dev/zero of=/home/asm/asm12 bs=8192k count=1280

dd if=/dev/zero of=/home/asm/asm13 bs=8192k count=128
dd if=/dev/zero of=/home/asm/asm14 bs=8192k count=128






「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论