【Oracle Database】Oracle RAC(一):共享存储
发表于:2024-12-03 作者:千家信息网编辑
千家信息网最后更新 2024年12月03日,[root@wallet03 ~]# yum install -y scsi-target-utils[root@wallet03 ~]# vi /etc/tgt/targets.conf
千家信息网最后更新 2024年12月03日【Oracle Database】Oracle RAC(一):共享存储
[root@wallet03 ~]# yum install -y scsi-target-utils[root@wallet03 ~]# vi /etc/tgt/targets.confbacwallet-store /dev/sdb initiator-address 192.168.40.0/24 incominguser gscf gscf@1234 write-cache off bacwallet-store /dev/sdc initiator-address 192.168.40.0/24 incominguser gscf gscf@1234 write-cache off bacwallet-store /dev/sdd initiator-address 192.168.40.0/24 incominguser gscf gscf@1234 write-cache off bacwallet-store /dev/sde initiator-address 192.168.40.0/24 incominguser gscf gscf@1234 write-cache off bacwallet-store /dev/sdf initiator-address 192.168.40.0/24 incominguser gscf gscf@1234 write-cache off bacwallet-store /dev/sdg initiator-address 192.168.40.0/24 incominguser gscf gscf@1234 write-cache off bacwallet-store /dev/sdh initiator-address 192.168.40.0/24 incominguser gscf gscf@1234 write-cache off bacwallet-store /dev/sdi initiator-address 192.168.40.0/24 incominguser gscf gscf@1234 write-cache off bacwallet-store /dev/sdj initiator-address 192.168.40.0/24 incominguser gscf gscf@1234 write-cache off bacwallet-store /dev/sdk initiator-address 192.168.40.0/24 incominguser gscf gscf@1234 write-cache off [root@wallet03 ~]# service tgtd startStarting SCSI target daemon: [ OK ][root@wallet03 ~]# service tgtd statustgtd (pid 1599 1598) is running...[root@wallet03 ~]# netstat -tunlp | grep tgtdtcp 0 0 0.0.0.0:3260 0.0.0.0:* LISTEN 1879/tgtd tcp 0 0 :::3260 :::* LISTEN 1879/tgtd [root@wallet01 ~]# yum install -y iscsi-initiator-utils[root@wallet01 ~]# vim /etc/iscsi/iscsid.confnode.session.auth.authmethod = CHAPnode.session.auth.username = gscfnode.session.auth.password = gscf@1234[root@wallet01 ~]# iscsiadm -m discovery -t sendtargets -p 192.168.40.36Starting iscsid: [ OK ]192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk01192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk02192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk03192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk04192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk05192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk06192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk07192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk08192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk09192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk10[root@wallet01 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk01 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk01, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk01, portal: 192.168.40.36,3260] successful.[root@wallet01 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk02 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk02, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk02, portal: 192.168.40.36,3260] successful.[root@wallet01 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk03 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk03, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk03, portal: 192.168.40.36,3260] successful.[root@wallet01 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk04 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk04, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk04, portal: 192.168.40.36,3260] successful.[root@wallet01 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk05 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk05, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk05, portal: 192.168.40.36,3260] successful.[root@wallet01 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk06 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk06, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk06, portal: 192.168.40.36,3260] successful.[root@wallet01 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk07 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk07, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk07, portal: 192.168.40.36,3260] successful.[root@wallet01 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk08 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk08, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk08, portal: 192.168.40.36,3260] successful.[root@wallet01 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk09 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk09, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk09, portal: 192.168.40.36,3260] successful.[root@wallet01 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk10 --login Logging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk10, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk10, portal: 192.168.40.36,3260] successful.[root@wallet02 ~]# yum install -y iscsi-initiator-utils[root@wallet02 ~]# vim /etc/iscsi/iscsid.confnode.session.auth.authmethod = CHAPnode.session.auth.username = gscfnode.session.auth.password = gscf@1234[root@wallet02 ~]# iscsiadm -m discovery -t sendtargets -p 192.168.40.36Starting iscsid: [ OK ]192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk01192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk02192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk03192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk04192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk05192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk06192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk07192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk08192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk09192.168.40.36:3260,1 iqn.2019-02.com.gscaifu:disk10[root@wallet02 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk01 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk01, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk01, portal: 192.168.40.36,3260] successful.[root@wallet02 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk02 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk02, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk02, portal: 192.168.40.36,3260] successful.[root@wallet02 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk03 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk03, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk03, portal: 192.168.40.36,3260] successful.[root@wallet02 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk04 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk04, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk04, portal: 192.168.40.36,3260] successful.[root@wallet02 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk05 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk05, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk05, portal: 192.168.40.36,3260] successful.[root@wallet02 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk06 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk06, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk06, portal: 192.168.40.36,3260] successful.[root@wallet02 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk07 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk07, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk07, portal: 192.168.40.36,3260] successful.[root@wallet02 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk08 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk08, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk08, portal: 192.168.40.36,3260] successful.[root@wallet02 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk09 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk09, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk09, portal: 192.168.40.36,3260] successful.[root@wallet02 ~]# iscsiadm -m node -T iqn.2019-02.com.gscaifu:disk10 --loginLogging in to [iface: default, target: iqn.2019-02.com.gscaifu:disk10, portal: 192.168.40.36,3260] (multiple)Login to [iface: default, target: iqn.2019-02.com.gscaifu:disk10, portal: 192.168.40.36,3260] successful.
[root@wallet01 ~]# groupadd -g 1200 dba[root@wallet01 ~]# groupadd -g 1201 oinstall [root@wallet01 ~]# groupadd -g 1202 asmadmin[root@wallet01 ~]# groupadd -g 1203 asmdba [root@wallet01 ~]# useradd -u 1100 -g oinstall -G asmadmin,asmdba,dba grid[root@wallet01 ~]# echo grid | passwd --stdin gridChanging password for user grid.passwd: all authentication tokens updated successfully.[root@wallet01 ~]# id griduid=1100(grid) gid=1201(oinstall) groups=1201(oinstall),1200(dba),1202(asmadmin),1203(asmdba)[root@wallet01 ~]# yum install -y kmod-oracleasm*[root@wallet01 ~]# rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm[root@wallet01 ~]# rpm -ivh oracleasm-support-2.1.8-1.el6.x86_64.rpm[root@wallet01 ~]# /usr/sbin/oracleasm configure -iConfiguring the Oracle ASM library driver.This will configure the on-boot properties of the Oracle ASM librarydriver. The following questions will determine whether the driver isloaded on boot and what permissions it will have. The current valueswill be shown in brackets ('[]'). Hittingwithout typing ananswer will keep that current value. Ctrl-C will abort.Default user to own the driver interface []: gridDefault group to own the driver interface []: asmadmin Start Oracle ASM library driver on boot (y/n) [n]: yScan for Oracle ASM disks on boot (y/n) [y]: yWriting Oracle ASM library driver configuration: done[root@wallet01 ~]# /usr/sbin/oracleasm initCreating /dev/oracleasm mount point: /dev/oracleasmLoading module "oracleasm": oracleasmConfiguring "oracleasm" to use device physical block size Mounting ASMlib driver filesystem: /dev/oracleasm[root@wallet01 ~]# /usr/sbin/oracleasm createdisk disk1 /dev/sdb1Writing disk header: doneInstantiating disk: done[root@wallet01 ~]# /usr/sbin/oracleasm createdisk disk2 /dev/sdc1Writing disk header: doneInstantiating disk: done[root@wallet01 ~]# /usr/sbin/oracleasm createdisk disk3 /dev/sdd1Writing disk header: doneInstantiating disk: done[root@wallet01 ~]# /usr/sbin/oracleasm createdisk disk4 /dev/sde1Writing disk header: doneInstantiating disk: done[root@wallet01 ~]# /usr/sbin/oracleasm createdisk disk5 /dev/sdf1Writing disk header: doneInstantiating disk: done[root@wallet01 ~]# /usr/sbin/oracleasm createdisk disk6 /dev/sdg1Writing disk header: doneInstantiating disk: done[root@wallet01 ~]# /usr/sbin/oracleasm createdisk disk7 /dev/sdh2Writing disk header: doneInstantiating disk: done[root@wallet01 ~]# /usr/sbin/oracleasm createdisk disk8 /dev/sdi1Writing disk header: doneInstantiating disk: done[root@wallet01 ~]# /usr/sbin/oracleasm createdisk disk9 /dev/sdj1Writing disk header: doneInstantiating disk: done[root@wallet01 ~]# /usr/sbin/oracleasm createdisk disk10 /dev/sdk1Writing disk header: doneInstantiating disk: done[root@wallet01 ~]# /usr/sbin/oracleasm scandisksReloading disk partitions: doneCleaning any stale ASM disks...Scanning system for ASM disks...[root@wallet01 ~]# /usr/sbin/oracleasm listdisksDISK1DISK10DISK2DISK3DISK4DISK5DISK6DISK7DISK8DISK9[root@wallet02 ~]# groupadd -g 1200 dba[root@wallet02 ~]# groupadd -g 1201 oinstall [root@wallet02 ~]# groupadd -g 1202 asmadmin[root@wallet02 ~]# groupadd -g 1203 asmdba [root@wallet02 ~]# useradd -u 1100 -g oinstall -G asmadmin,asmdba,dba grid[root@wallet02 ~]# echo grid | passwd --stdin gridChanging password for user grid.passwd: all authentication tokens updated successfully.[root@wallet02 ~]# id griduid=1100(grid) gid=1201(oinstall) groups=1201(oinstall),1200(dba),1202(asmadmin),1203(asmdba)[root@wallet02 ~]# yum install -y kmod-oracleasm*[root@wallet02 ~]# rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm[root@wallet02 ~]# rpm -ivh oracleasm-support-2.1.8-1.el6.x86_64.rpm[root@wallet02 ~]# /usr/sbin/oracleasm configure -iConfiguring the Oracle ASM library driver.This will configure the on-boot properties of the Oracle ASM librarydriver. The following questions will determine whether the driver isloaded on boot and what permissions it will have. The current valueswill be shown in brackets ('[]'). Hitting without typing ananswer will keep that current value. Ctrl-C will abort.Default user to own the driver interface []: gridDefault group to own the driver interface []: asmadmin Start Oracle ASM library driver on boot (y/n) [n]: yScan for Oracle ASM disks on boot (y/n) [y]: yWriting Oracle ASM library driver configuration: done[root@wallet02 ~]# /usr/sbin/oracleasm initCreating /dev/oracleasm mount point: /dev/oracleasmLoading module "oracleasm": oracleasmConfiguring "oracleasm" to use device physical block size Mounting ASMlib driver filesystem: /dev/oracleasm[root@wallet02 ~]# /usr/sbin/oracleasm scandisksReloading disk partitions: doneCleaning any stale ASM disks...Scanning system for ASM disks...Instantiating disk "DISK1"Instantiating disk "DISK5"Instantiating disk "DISK4"Instantiating disk "DISK10"Instantiating disk "DISK6"Instantiating disk "DISK8"Instantiating disk "DISK3"Instantiating disk "DISK2"Instantiating disk "DISK7"Instantiating disk "DISK9"[root@wallet02 ~]# /usr/sbin/oracleasm listdisksDISK1DISK10DISK2DISK3DISK4DISK5DISK6DISK7DISK8DISK9
存储
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网络技术类的书
网络安全的四个责任
喷墨打印机软件开发
网络安全交易日主题活动
网络安全一般误报项目
网络安全知识的会议纪要
信息网络安全台账样本
EOS数据库连接关闭原因
阴阳师网易最早的服务器
惠普塔式服务器维修保养
四川网络技术转让案例
数据库数据表记录的添加
考网络技术带草稿纸
软件开发工作内容是什么意思
网络安全问题1000字论文
学建数据库
RCS网络安全
上海大型网络技术欢迎咨询
贵州超级服务器
手机下载中心显示服务器错误
上海册金软件开发有限公司
发展前景好的计算机软件开发
网络安全的话咋说
快捷指令蜂窝网络技术
ea服务器游戏排名
软件数据库和实体数据库
刷钻服务器
战神引擎数据库被删找回角色
软考中级数据库对应的高级叫什么
数据库中目或度是什么意思
- 上一篇
Linux-MySQL-有哪些常用sql语句
不知道大家之前对类似Linux-MySQL-有哪些常用sql语句的文章有无了解,今天我在这里给大家再简单的讲讲。感兴趣的话就一起来看看正文部分吧,相信看完Linux-MySQL-有哪些常用sql语句你
- 下一篇
Centos 6.5 安装 Atlassiana Crowd+JIRA+Confluence(Wiki)之一 数据库篇(MySQL5.1)
软件准备1.数据库软件mysql 5.1 主程序mysql clinet 连接客户端mysql-devel 驱动程序安装步骤安装操作系统配置主机名称修改IP地址修改系统时间 保持时间准确性yum安装数