[原创]zero downtime using goldengate实现oracle 12C升级系列 第三篇:asmlib配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[原创]zero downtime using goldengate实现oracle 12C升级系列 第三篇:asmlib配置相关的知识,希望对你有一定的参考价值。

1. All nodes as root

rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm  

技术分享

 

rpm -qa *asm*
kmod-oracleasm-2.0.8-13.0.1.el6_8.x86_64
oracleasm-support-2.1.8-1.el6.x86_64
oracleasmlib-2.0.4-1.el6.x86_64

rpm -qa cvu*
cvuqdisk-1.0.9-1.x86_64

 

2.装完上述必备的rpm之后就可以开始配置asmlib了

Configure ASMLib by running the following on all nodes: 

sudo /etc/init.d/oracleasm configure

 

Default user to own the driver interface []: oracle

Default group to own the driver interface []: dba

Start Oracle ASM library driver on boot (y/n) [n]: y

Scan for Oracle ASM disks on boot (y/n) [y]: y     

Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver: [ OK ]

Scanning the system for Oracle ASMLib disks: [ OK ]

 

3.Modify ASM config file  (root)  all nodes (Alredy done by Linux team)  - Validate this. 

[[email protected] ~]$ cat /etc/sysconfig/oracleasm-_dev_oracleasm

ORACLEASM_ENABLED=true

ORACLEASM_UID=oracle

ORACLEASM_GID=dba

ORACLEASM_SCANBOOT=true

ORACLEASM_SCANORDER="dm"

ORACLEASM_SCANEXCLUDE="sd"

ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false

 

4.重启asmlib服务

 

sudo /etc/init.d/oracleasm stop

sudo /etc/init.d/oracleasm start

 

5.create disk:

sudo fdisk -l|grep -i mapper|grep -i GB
Disk /dev/mapper/mpathl: 12.9 GB, 12885688320 bytes
Disk /dev/mapper/mpathn: 12.9 GB, 12885688320 bytes
Disk /dev/mapper/mpathm: 12.9 GB, 12885688320 bytes
Disk /dev/mapper/mpathe: 274.9 GB, 274879610880 bytes
Disk /dev/mapper/mpathj: 21.5 GB, 21475491840 bytes
Disk /dev/mapper/mpathf: 274.9 GB, 274879610880 bytes
Disk /dev/mapper/mpathc: 107.4 GB, 107375493120 bytes
Disk /dev/mapper/mpathk: 21.5 GB, 21475491840 bytes
Disk /dev/mapper/mpathg: 274.9 GB, 274879610880 bytes
Disk /dev/mapper/mpathi: 274.9 GB, 274879610880 bytes
Disk /dev/mapper/mpathd: 214.7 GB, 214749020160 bytes
Disk /dev/mapper/mpathh: 274.9 GB, 274879610880 bytes
Disk /dev/mapper/mpatha: 85.9 GB, 85900001280 bytes

把这几块盘利用asmlib createdisk建成可供asm使用的candidate磁盘

sudo /usr/sbin/oracleasm createdisk OCR_VTE01 /dev/mapper/mpathl
sudo /usr/sbin/oracleasm createdisk OCR_VTE02 /dev/mapper/mpathn
sudo /usr/sbin/oracleasm createdisk OCR_VTE03 /dev/mapper/mpathm

sudo /usr/sbin/oracleasm createdisk DSK01 /dev/mapper/mpathe
sudo /usr/sbin/oracleasm createdisk DSK02 /dev/mapper/mpathf
sudo /usr/sbin/oracleasm createdisk DSK03 /dev/mapper/mpathg
sudo /usr/sbin/oracleasm createdisk DSK04 /dev/mapper/mpathh
sudo /usr/sbin/oracleasm createdisk DSK05 /dev/mapper/mpathi
sudo /usr/sbin/oracleasm createdisk DSK06 /dev/mapper/mpathj
sudo /usr/sbin/oracleasm createdisk DSK07 /dev/mapper/mpathk

sudo /usr/sbin/oracleasm listdisks

sudo /usr/sbin/oracleasm-discover

Run The below on other nodes:

sudo /usr/sbin/oracleasm scandisks

sudo /usr/sbin/oracleasm listdisks

sudo /usr/sbin/oracleasm-discover

 

关于前期的准备工作做到这里也差不多了,下次就是开始集群的安装了。

本节讲的主要是asmlib的安装配置以及把需要用到的磁盘建成可供asm使用的磁盘。























以上是关于[原创]zero downtime using goldengate实现oracle 12C升级系列 第三篇:asmlib配置的主要内容,如果未能解决你的问题,请参考以下文章

Mysql zero downtime deployment

如何做到Zero Downtime重启Go服务?

原创大叔问题定位分享(33)oozie提交任务报错ArithmeticException: / by zero

Android事件的downTime和eventTime有何区别

Kattis downtime

Freedom DownTime