查询系统信息
[root@localhost software]# uname -a
Linux localhost.oracle 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:39:47 EDT 2008 i686 i686 i386 GNU/Linux
根据系统信息下载对应的RPM包
http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html
rpm -ivh oracleasm-support-2.1.7-1.el4.i386.rpm
rpm -ivh oracleasm-2.6.9-78.ELsmp-2.0.5-1.el4.i686.rpm
rpm -ivh oracleasmlib-2.0.4-1.el4.i386.rpm
ftp传到目标段
用rpm -ivh 包名 进行包的安装
配置asmlib
[root@localhost software]# /etc/init.d/oracleasm configure
Default user to own the driver interface [oracle]: oracle
Default group to own the driver interface [dba]: dba
Start Oracle ASM library driver on boot (y/n) [y]: 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@localhost software]# lsmod|grep oracleasm
oracleasm 49684 1
[root@localhost software]# dmesg|grep oracleasm
ASM: oracleasmfs mounted with options:
裸设备下创建
[root@localhost software]# fdisk /dev/sde,sdf,sdg
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
[root@localhost software]# /etc/init.d/oracleasm enable
Writing Oracle ASM library driver configuration: do