在HP-UX及AIX和RHEL的安装的Oracle 11gR2 RAC
2012-05-13 15:31:48 来源:WEB开发网核心提示:} #chkconfig multipathd on #service multipathd restart root@scdb10 etc]# multipath -l |grep dm- |sortmpath0 (36001438005ded1d60000700005100000) dm-
}
#chkconfig multipathd on
#service multipathd restart
root@scdb10 etc]# multipath -l |grep dm- |sort
mpath0 (36001438005ded1d60000700005100000) dm-2 HP,HSV450
mpath1 (36001438005ded1d60000700005140000) dm-3 HP,HSV450
2.安装ASM包
ASM package Download Website
http://www.oracle.com/technology/software/tech/linux/asmlib/rhel5.html
oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm oracleasm-2.6.18-164.el5-debuginfo-2.0.5-1.el5.x86_64.rpm oracleasm-support-2.1.3-1.el5.x86_64.rpm
oracleasm-2.6.18-164.el5debug-2.0.5-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm
#excute RPM install sequence
rpm -ivh oracleasm-support-2.1.3-1.el5.x86_64.rpm
rpm -ivh oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm
rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm
3. 配置Configure ASM:
在两个节点上:
root@scdb9 dev]# service 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 []: 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 ]
4. 检查状态
root@scdb9 soft]# /etc/init.d/oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
5.做ASM卷标
两台机上:
# sfdisk –s
/dev/dm-2: 524288000
/dev/dm-3: 524288000
6.在一台机上创建ASM盘:
[root@scdb9 ~]# service oracleasm createdisk DG01D000 /dev/dm-2
Marking disk "DG01D000" as an ASM disk: [ OK ]
root@scdb9 ~]# service oracleasm createdisk CRS01D001 /dev/dm-12
Marking disk "CRS01D001" as an ASM disk: [ OK ]
7.在两个节点,执行ASM盘扫描
/etc/init.d/oracleasm scandisks
/usr/sbin/oracleasm listdisks
修改磁盘属性:
chown grid:asmadmin /dev/dm*
chown grid:asmadmin /dev/mapper/mpath*
8.修改重启后的磁盘属性文件
Cd /etc/udev/rules.d
更多精彩
赞助商链接