1 环境准备
主机 | IP地址 | 实例名 | 操作系统 |
---|---|---|---|
DSC1 | 外部网络:192.168.56.102 内部网络:1.1.1.11 | RAC0 | CentOS7.8 |
DSC2 | 外部网络:192.168.56.103 内部网络:1.1.1.12 | RAC1 | CentOS7.8 |
2 安装DM数据库(各节点都需要)
2.1 关闭防火墙
[root@DSC1 ~]# systemctl stop firewalld
[root@DSC1 ~]# systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
2.1 关闭Selinux
[root@DSC1 ~]# vim /etc/selinux/config
2.3 创建DM用户
用户组为:dinstall,用户名为:dmdba,用户目录为:/home/dmdba,用户密码:123456
[root@DSC1 ~]# groupadd dinstall
[root@DSC1 ~]# useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba
[root@DSC1 ~]# passwd dmdba
2.4创建目录
用于存储dm数据库文件的空间,需要提前规划并挂载好
[root@DSC1 ~]# mkdir -p /dm8/dmdbms
//将dm8目录指定给dmdba用户//
[root@DSC1 ~]# chown -R dmdba:dinstall /dm8
//给dm8目录授权//
[root@DSC1 ~]# chmod -R 775 /dm8
2.5 配置系统限制
2.5.1 修改ulimit参数
在/etc/security/limits.conf 文件中添加如下内容:
cat >> /etc/security/limits.conf << EOF
> dmdba soft nofile 65546
> dmdba hard nofile 65536
> EOF
2.5.2 验证配置ulimit是否生效
重启操作系统,并切换至dmdba用户查看
[dmdba@DSC1 ~]$ ulimit -a
2.6 配置环境变量
在dmdba用户~/.bash_profile 里添加如下内容:
[dmdba@DSC1 ~]$ vim ~/.bash_profile
export DM_HOME="/dm8/dmdbms"
export LD_LIBRARY_PATH="/dm8/dmdbms/bin:$LD_LIBRARY_PATH"
export PATH="/dm8/dmdbms/bin:$PATH"
使环境变量生效
[dmdba@DSC1 ~]$ source ~/.bash_profile
2.7 上传DM安装程序到/dm8
使用root用户给DMInstall.bin程序授权
[root@DSC1 dm8]# chmod 755 ./DMInstall.bin
2.8 运行DM安装程序
用dmdba用户运行DM安装程序进行命令行安装
[dmdba@DSC1 dm8]$ ./DMInstall.bin -i
3 共享存储环境准备(虚拟化环境配置)
3.1 规划6个共享存储如下:
Dcr disk: 1G
Voting disk: 2G
Log disk: 3G
Data disk1: 4G
Data disk2: 5G
Data disk3: 6G
3.2 VirtualBox共享磁盘配置
3.2.1 节点DSC1
创建6个上面规划的共享磁盘