13883183259 023-68037655 咨询热线:
当前位置: 主页 > 关于思庄 > 技术分享 >

ASMLIB RED HAT 6.4安装配置

发布时间:2018-11-02
首先安装oracleasmlib 包:
rpm -ivh kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm
rpm -ivh oracleasm-support-2.1.8-1.el6.x86_64.rpm
rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm
说明:oracleasm-support-2.1.8-1.el6.x86_64.rpm和oracleasmlib-2.0.4-1.el6.x86_64.rpm 可以直接在oracle官方网站下载
http://www.oracle.com/technetwork/server-storage/linux/asmlib/rhel6-1940776.html
kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm下载地址:
http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/getPackage/kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm


配置asmlib:
[root@rac2 ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets ('[]').  Hitting <ENTER> without typing an
answer will keep that current value.  Ctrl-C will abort.

Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
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  ]

启动asmlib驱动:
[root@rac2 ~]# /etc/init.d/oracleasm enable
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]

创建ASMLIB磁盘:
[root@rac1 disks]# /etc/init.d/oracleasm createdisk VOL1 /dev/sde1
Marking disk "VOL1" as an ASM disk:                        [  OK  ]
[root@rac1 disks]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdf1
Marking disk "VOL2" as an ASM disk:                        [  OK  ]
[root@rac1 disks]# /etc/init.d/oracleasm createdisk VOL3 /dev/sdg1
Marking disk "VOL3" as an ASM disk:                        [  OK  ]

[root@rac1 disks]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3

RAC情况下,在其他节点运行scandisks进行磁盘扫描:
[root@rac2 ~]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks:               [  OK  ]
[root@rac2 ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3

联系我们 重庆思庄科技有限公司
023-68037655 / 68429836
重庆思庄科技有限公司 版权所有© 备案号:渝ICP备12004239号-1

渝公网安备 50010702502184号

<<