当前位置:Gxlcms > 数据库问题 > [原创]zero downtime using goldengate实现oracle 12C升级系列 第三篇:asmlib配置

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

时间:2021-07-01 10:21:17 帮助过:14人阅读

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. 

[oracle@ora-us-pf1-n-1 ~]$ 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配置

标签:利用   using   2.0.8   map   原创   1.0   ima   准备工作   als   

人气教程排行