重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4513|回复: 0
打印 上一主题 下一主题

[Oracle] ASMLIB RED HAT 6.4安装配置

[复制链接]
跳转到指定楼层
楼主
发表于 2018-1-19 17:04:22 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
首先安装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




分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-28 06:30 , Processed in 0.086589 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表