环境配置
公司要上新一体机,需要对新版本研究下,自己先在电脑上虚拟一下Oracle exadata环境。方便研究。谢谢大家的关注
一、安装操作系统
[root@masterdb ~]# cat /etc/system-release Oracle Linux Server release 7.4
二、配置网络
配置管理网络和infiniband心跳网络 必须静态
计算节点
nmcli connection add type ethernet con-name static-eth0 ifname eth0 ip4 10.201.0.231/24 gw4 10.201.0.254
nmcli connection add type ethernet con-name static-eth1 ifname eth1 ip4 10.0.0.231/24 gw4 10.0.0.254
cell节点
nmcli connection add type ethernet con-name static-eth0 ifname eth0 ip4 10.201.0.232/24 gw4 10.201.0.254
nmcli connection add type ethernet con-name static-eth1 ifname eth1 ip4 10.0.0.232/24 gw4 10.0.0.254
三、配置yum
vim /etc/yum.repos.d/iso.repo
[ISO] name=iso
baseurl=file:///mnt
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=0
#priority=20
enabled=1
yum repolist
四、安装cell依赖包
yum install -y lm_sensors net-snmp perl-Compress perl-HTML perl-libwww
五、配置hosts文件
#db
10.201.0.231 masterdb
10.0.0.231 masterdb
#cell
10.201.0.232 slavecell
10.0.0.232 slavecell
六、创建目录
mkdir /var/log/oracle
chmod 775 /var/log/oracle
mkdir /opt/oracle
chmod 775 /opt/oracle
七、配置系统内核参数
mv /etc/sysctl.conf /etc/sysctl.conf.bak
注:sysctl.conf文件的原有参数可能会对启动celsrv服务有影响,建议不用原有的参数。
vi /etc/sysctl.conf
fs.file-max = 65536
fs.aio-max-nr = 500000000
vm.min_free_kbytes = 512000
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 8388608
net.core.wmem_max = 4194304
执行/sbin/sysctl -p 使参数生效
vi /etc/security/limits.conf
root soft nofile 131072
root hard nofile 131072
celladmin soft nproc 2047
celladmin hard nproc 16384
celladmin soft nofile 131072
celladmin hard nofile 131072
登录策略
vi /etc/pam.d/login
session required pam_limits.so
八、配置RDS协议
12c后需要RDS协议的支持,否则cellsrv服务无法启动
12c以前,除支持RDS协议,还支持UDP协议
手动加载RDS协议
modprobe rds
modprobe rds_tcp
modprobe rds_rdma
设置RDS随系统启动时自动加载RDS协议
vi /etc/modprobe.d/rds.conf
install rds /sbin/modprobe --ignore -install rds && /sbin/modprobe rds_tcp && /sbin/modprobe rds_rdma
九、关闭防火墙和selinux
systemctl stop firewalld.service
vim /etc/selinux/config
SELINUX=enforcing => disabled
十、安装存储软件
1、安装java
unzip V983555-01.zip
tar -xvf nfsimg-18.1.20.0.0-190911-cell.tar
cd cellbits
tar -xjvf cellrpms.tbz
rpm -ivh jdk1.8-1.8.0_221-fcs.x86_64.rpm
2、解压存储软件、
/usr/local/src/software/cellbits unzip cell.bin rpm -ivh cell-18.1.20.0.0_LINUX.X64_190911-1.x86_64.rpm error: Failed dependencies: net-snmp-utils is needed by cell-18.1.20.0.0_LINUX.X64_190911-1.x86_64 perl(Env) is needed by cell-18.1.20.0.0_LINUX.X64_190911-1.x86_64 perl(LWP) is needed by cell-18.1.20.0.0_LINUX.X64_190911-1.x86_64 perl(XML::Simple) is needed by cell-18.1.20.0.0_LINUX.X64_190911-1.x86_64
安装依赖包
for i in `ls perl*`; do rpm -ivh --nodeps $i; done
继续安装
[root@slavecell cellbits]# rpm -ivh cell-18.1.20.0.0_LINUX.X64_190911-1.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:cell-18.1.20.0.0_LINUX.X64_190911################################# [100%] Installation SUCCESSFUL. Done. Please Login as user celladmin, startup RS and MS, then create cell to startup CELLSRV to complete cell configuration. If this is a manual installation, please stop and restart ExaWatcher to pick up newly installed binaries. You can run "/opt/oracle.ExaWatcher/ExaWatcher.sh --stop" and then "/opt/oracle.ExaWatcher/ExaWatcher.sh --fromconf" to stop and restart ExaWatcher. ######################################################### Logout and then re-login to use the new cell environment. #########################################################
说明安装成功
启动服务
cd /opt/oracle/cell/cellsrv/bin
./cellcli
CellCLI> alter cell restart services all
Stopping RS services... CELL-01509:
Restart Server (RS) not responding.
Starting the RS services... Getting the state of RS services... running
Restarting CELLSRV services... The
RESTART of CELLSRV services was not successful.
CELL-01531: Unable to parse the cellinit.ora file due to incorrect parameters in the file.
Restarting MS services... The
RESTART of MS services was successful.
调试存储软件
cellcli -e list cell detail
cellsrvStatus: stopped /var/log/oracle/diag/asm/cell/slavecell/trace [RS]
No IP found in Exadata config file cellinit.ora. Err: 52
添加IP
cd /opt/oracle/cell/cellsrv/deploy/config
vi cellinit.ora
ipaddress1 = 10.0.0.232/24
HTTP_PORT = 8888
参考
cellcli -e create cell cell1 interconnect1=eth0
WARNING: Hugepage allocation failed. CELLSRV is running without hugepage support.
查看状态
CellCLI> list cell detail
name: slavecell cellVersion:
OSS_18.1.20.0.0_LINUX.X64_190911
cpuCount: 4/10 diagHistoryDays: 7 doNotServiceLEDStatus:
off flashCacheMode: WriteThrough id: e8df7589-22ed-42c4-91b3-33db133d76ad
interconnectCount: 0 ipaddress1: 10.0.0.232/24 kernelVersion: 4.1.12-94.3.9.el7uek.x86_64 makeModel: Fake hardware memoryGB: 0 metricHistoryDays: 7
offloadGroupEvents: ramCacheMaxSize: 0 ramCacheMode:
Auto ramCacheSize: 0 releaseImageStatus: success
releaseVersion: 18.1.20.0.0
releaseTrackingBug: 30290356
status: online
upTime: 0 days, 0:00
cellsrvStatus: running
msStatus: running
rsStatus: running
CELLSRV、MS、RS这3个服务已启动,存储节点软件已配置完成。