1.http://blog.chinaunix.net/uid-26446098-id-5689430.html
牛刀小试Oracle之ORACLE 11GR2 RAC安装配置--先决配置阶段(一)
先决条件的配置基本一致,除了磁盘划分的配置。多路径磁盘划分如下:
1) 安装 device-mapper-multipath 包
10)划分共享存储磁盘。
11)在RAC01节点上,把已分配的盘,给予ASM文件管理。(具体如何安装参照上述的连接)
5.http://blog.chinaunix.net/uid-26446098-id-5696106.html 牛刀小试Oracle之ORACLE 11GR2 RAC安装配置-Database软件与数据库安装(五)
先决条件的配置基本一致,除了磁盘划分的配置。多路径磁盘划分如下:
1) 安装 device-mapper-multipath 包
点击(此处)折叠或打开
# yum install device-mapper-multipath
2)拷贝配置文件multipath.conf
点击(此处)折叠或打开
# cp /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf /etc/
3)获得本地系统磁盘的scsi的id号。
点击(此处)折叠或打开
[root@racnode1 ~]# scsi_id --whitelisted --replace-whitespace --device=/dev/sda //这里是系统盘的scsi_id
3600605b00c6c8f1020922fff454e2e51
[root@localhost .vnc]# scsi_id --whitelisted --replace-whitespace --device=/dev/sdb //共享存储的sici_id(sdb/sdc指的同一个)
360060e80166628000001662800000100
[root@localhost .vnc]# scsi_id --whitelisted --replace-whitespace --device=/dev/sdc //共享存储的sici_id(sdb/sdc指的同一个)
360060e80166628000001662800000100
3600605b00c6c8f1020922fff454e2e51
[root@localhost .vnc]# scsi_id --whitelisted --replace-whitespace --device=/dev/sdb //共享存储的sici_id(sdb/sdc指的同一个)
360060e80166628000001662800000100
[root@localhost .vnc]# scsi_id --whitelisted --replace-whitespace --device=/dev/sdc //共享存储的sici_id(sdb/sdc指的同一个)
360060e80166628000001662800000100
4)解开注释,blacklist那一段区间话语。把刚刚得到的scsi的id号加进去。(屏蔽掉sda盘)
点击(此处)折叠或打开
blacklist {
wwid 3600605b00c6c8f1020922fff454e2e51
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z]"
}
wwid 3600605b00c6c8f1020922fff454e2e51
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^hd[a-z]"
}
5)解开注释,标准策略配置
点击(此处)折叠或打开
defaults {
udev_dir /dev
polling_interval 10
path_selector "round-robin 0"
path_grouping_policy multibus
getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
prio alua
path_checker readsector0
rr_min_io 100
max_fds 8192
rr_weight priorities
failback immediate
no_path_retry fail
user_friendly_names yes
}
udev_dir /dev
polling_interval 10
path_selector "round-robin 0"
path_grouping_policy multibus
getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
prio alua
path_checker readsector0
rr_min_io 100
max_fds 8192
rr_weight priorities
failback immediate
no_path_retry fail
user_friendly_names yes
}
6)解开注释,配置共享磁盘
点击(此处)折叠或打开
multipaths {
multipath {
wwid 360060e80166628000001662800000100
alias db1
}
}
multipath {
wwid 360060e80166628000001662800000100
alias db1
}
}
7)重新启动multipath daemon进程
点击(此处)折叠或打开
# service multipathd restart
8)把multipath添加至自启动进程中。
点击(此处)折叠或打开
# chkconfig multipathd on
9)开始验证dm- 设备,大小,和WWID对于mapper 逻辑卷,用于ORACLE的OCR,voting disks,datadisks和
Recovery disks。
点击(此处)折叠或打开
# multipath –ll
modprobe dm-multipath //如果还是无法识别到多路径的共享存储的磁盘,可以使用这条命令。
modprobe dm-multipath //如果还是无法识别到多路径的共享存储的磁盘,可以使用这条命令。
10)划分共享存储磁盘。
点击(此处)折叠或打开
parted -s /dev/mapper/db1 mklabel gpt mkpart primary "1 2G" //ocrvote1
parted -s /dev/mapper/db1 mkpart p2 "2G 4G" //ocrvote2
parted -s /dev/mapper/db1 mkpart p3 "4G 6G" //ocrvote3
parted -s /dev/mapper/db1 mkpart p4 "6G 1000G" //ASM db1
parted -s /dev/mapper/db1 mkpart p5 "1000G 2000G" //ASM db2
parted -s /dev/mapper/db1 mkpart p6 "2000G 3000G" //ASM db3
parted -s /dev/mapper/db1 mkpart p7 "3000G 4000G" //ASM db4
parted -s /dev/mapper/db1 mkpart p8 "4000G 5000G" //ASM redo
parted -s /dev/mapper/db1 mkpart p9 "5000G 6500G" //ASM fra
parted -s /dev/mapper/db1 mkpart p2 "2G 4G" //ocrvote2
parted -s /dev/mapper/db1 mkpart p3 "4G 6G" //ocrvote3
parted -s /dev/mapper/db1 mkpart p4 "6G 1000G" //ASM db1
parted -s /dev/mapper/db1 mkpart p5 "1000G 2000G" //ASM db2
parted -s /dev/mapper/db1 mkpart p6 "2000G 3000G" //ASM db3
parted -s /dev/mapper/db1 mkpart p7 "3000G 4000G" //ASM db4
parted -s /dev/mapper/db1 mkpart p8 "4000G 5000G" //ASM redo
parted -s /dev/mapper/db1 mkpart p9 "5000G 6500G" //ASM fra
11)在RAC01节点上,把已分配的盘,给予ASM文件管理。(具体如何安装参照上述的连接)
点击(此处)折叠或打开
[root@rac1 ~]# /etc/init.d/oracleasm createdisk OCRVOTE1 /dev/db1p1
[root@rac1 ~]# /etc/init.d/oracleasm createdisk OCRVOTE2 /dev/db1p2
[root@rac1 ~]# /etc/init.d/oracleasm createdisk OCRVOTE3 /dev/db1p3
[root@rac1 ~]# /etc/init.d/oracleasm createdisk DATA1 /dev/db1p4
[root@rac1 ~]# /etc/init.d/oracleasm createdisk DATA2 /dev/db1p5
[root@rac1 ~]# /etc/init.d/oracleasm createdisk DATA3 /dev/db1p6
[root@rac1 ~]# /etc/init.d/oracleasm createdisk DATA4 /dev/db1p7
[root@rac1 ~]# /etc/init.d/oracleasm createdisk REDO1 /dev/db1p8
[root@rac1 ~]# /etc/init.d/oracleasm createdisk FRA1 /dev/db1p9
[root@rac1 ~]# /etc/init.d/oracleasm createdisk OCRVOTE2 /dev/db1p2
[root@rac1 ~]# /etc/init.d/oracleasm createdisk OCRVOTE3 /dev/db1p3
[root@rac1 ~]# /etc/init.d/oracleasm createdisk DATA1 /dev/db1p4
[root@rac1 ~]# /etc/init.d/oracleasm createdisk DATA2 /dev/db1p5
[root@rac1 ~]# /etc/init.d/oracleasm createdisk DATA3 /dev/db1p6
[root@rac1 ~]# /etc/init.d/oracleasm createdisk DATA4 /dev/db1p7
[root@rac1 ~]# /etc/init.d/oracleasm createdisk REDO1 /dev/db1p8
[root@rac1 ~]# /etc/init.d/oracleasm createdisk FRA1 /dev/db1p9
2.http://blog.chinaunix.net/uid-26446098-id-5689468.html 牛刀小试Oracle之ORACLE 11GR2 RAC安装配置--GI安装配置(二)
3.http://blog.chinaunix.net/uid-26446098-id-5696062.html 牛刀小试Oracle之ORACLE 11GR2 RAC安装配置--检测GI软件是否正常(三)
4.http://blog.chinaunix.net/uid-26446098-id-5696082.html 牛刀小试Oracle之ORACLE 11GR2 RAC安装配置-asm磁盘组配置添加(四)
5.http://blog.chinaunix.net/uid-26446098-id-5696106.html 牛刀小试Oracle之ORACLE 11GR2 RAC安装配置-Database软件与数据库安装(五)