-
Oracle RAC
11gR2
三节点安装部署实施步骤
(
一
)
集群规划
1.
硬件环境
服务器
3
台
:DELL
PowerEdge
R620,2*Xeon
E5-2680v2,128G
内存,
2*160G
SSD
硬盘,
2*8Gbps
HBA
卡
存储
:DELL
PowerV
oult MD3660f,48*1TB 7.2k SAS
硬盘,双控制器,
8
光纤口
连接方式:通过
SAN
交换机,每
台服务器双光纤接入到
SAN
交换机,
MD3660f
采用
8
光
纤接入到
SAN
交换机。
2.
软件环境
数据库
:
oracle11.2.0.3_Linux-x86-64
集群件
:
oracle11.2.0.3_grid-x86-64
操作系统
:
oracle
linux server6.5
(
二
)
IP
规划
每个节点一个
public
IP
每个节点一个
public
VIP
?
每个节点一个
private
IP
?
一个用于集群的
SCAN
名称和一到三个和
public IP
同网段的
p>
IP,
本处用一个
?
public IP,VIP
和
private IP
写入
/etc/hosts
文件
scan
配置本地
/etc/hosts
解析
主机名
rac21
IP
名
rac21
对应网卡
bond0
IP
10.0.31.5
用途
public
rac21-vip
rac21-priv
rac22
rac22
rac22-vip
rac22-priv
rac23
rac23
rac23-vip
rac23-priv
ScanIP
rac2-scan
bond1
bond0
bond1
bond0
bond1
bond0
10.0.31.15
10.0.50.5
10.0.31.6
10.0.31.16
10.0.50.6
10.0.31.7
10.0.31.17
10.0.50.7
10.0.31.102
VIP
private
public
VIP
private
public
VIP
private
Scan IP
(
三
)
安装目录规划
建立
/opt/oracle
文件系统用来安装
grid
、
datbase
程序。
Oracle
用户
:
ORACLE_BASE= /opt/oracle/app
ORACLE_HOME=$$ORACLE_BASE/product/11.2.0
Grid
用户
:
ORACLE_BASE= /opt/oracle/grid/app
ORACLE_HOME=
/opt/oracle/grid/11.2.0
(
四
)
存储规划
RAID GROUP
Raid
类型
LUN
编号
40
41
42
RG4
RAID 5
(7D+1P)
44
45
46
128
128
128
500
500
500
RAC2-Group
RAC2-Group
RAC2-Group
43
128
500
RAC2-Group
Stripe Size(KB)
128
128
128
LUN
大小
(GB)
500
500
500
映射主机
RAC2-Group
RAC2-Group
RAC2-Group
47
48
49
50
51
52
53
54
55
56
57
58
RG5
RAID 5
(7D+1P)
60
61
62
63
64
65
RAC2-OCR1
RAC2-OCR2
RAC2-OCR3
RG6
(2D+2P)
RAID10
RAC2-VOT2
RAC2-REDO1
RAC2-REDO2
RAC2-REDO3
75
79
80
81
RAC2-VOT1
71
72
73
74
59
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
128
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
500
1
1
1
1
1
300
300
300
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
RAC2-Group
(
五
)
安装实施
1.
安装前准备
存储环境准备
将主机、存储等接入
SAN
交换机
,
按需划分相应的
zone;
清理所有设备的
WWN
号
;
在存
储端添加数据库主机
,
将两节点绑定为一个
Host set;
存储划分
VV,
并分配给数据库
Host set
。
2.
主机环境准备
操作系统安装
分别在两个节点安装
oracle
linux server6.5
操作系统。
2
块
SSD
硬盘设置成
p>
RAID1
镜像。
安装参数如下
:
系统分区
/
50G
500M
16G
79G
/boot
swap
/opt
操作系统安装过程略。
3.
在每个节点上
< br>(rac21/rac22/rac23)
执行
1)
配置
IP
1
、增加绑定配置
# vi /etc/modprobe.d/
alias
bond0 bonding
alias bond1 bonding
2
、加载绑定模块
#modprobe bonding
3
、编辑
/etc/sysconfig/network-
script/ifcfg-bond0
文件
# vi /etc/sysconfig/network-
scripts/ifcfg-bond0
DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.0.31.5
(rac22
改成
< br>10.0.31.6
,
rac23
改成
10.0.31.7)
PREFIX=24
NETMASK=255.255.255.0
NETWORK=10.0.31.0
GA
TEWAY=10.0.31.254
DNS1=114.114.114.114
DEFROUTE=yes
USERCTL=no
BONDING_OPTS=
NAME=
4
p>
、编辑
/etc/sysconfig/network-
script/ifcfg-bond1
文件
# vi /etc/sysconfig/network-
scripts/ifcfg-bond1
DEVICE=bond1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPADDR=10.0.50.5
(rac22
改成
< br>10.0.50.6
,
rac23
改成
10.0.50.7)
PREFIX=24
NETMASK=255.255.255.0
NETWORK=10.0.50.0
BOARDCAST=10.0.50.255
USERCTL=no
BONDING_OPTS=
NAME=
5
、编辑
/
etc/sysconfig/network-script/ifcfg-
em1
文件
# vi
/etc/sysconfig/network-scripts/ifcfg-em1
DEVICE=em1
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
USERCTL=no
MASTER=bond0
SLA
VE=yes
NAME=
p>
6
、编辑
/etc/sysconfig/
network-script/ifcfg-em2
文件
# vi /etc/sysconfig/network-
scripts/ifcfg-em2
DEVICE=em2
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
USERCTL=no
MASTER=bond0
SLAVE=yes
NAME=
7
、编辑
/e
tc/sysconfig/network-script/ifcfg-
em3
文件
# vi
/etc/sysconfig/network-scripts/ifcfg-em3
DEVICE=em3
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
USERCTL=no
MASTER=bond1
SLA
VE=yes
NAME=
p>
8
、编辑
/etc/sysconfig/
network-script/ifcfg-em4
文件
# vi /etc/sysconfig/network-
scripts/ifcfg-em4
DEVICE=em4
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
USERCTL=no
MASTER=bond1
SLA
VE=yes
NAME=
p>
9
、编辑
/etc/sysconfig/
network
文件
# vi
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rac21
(
节点
2<
/p>
改成
rac22
,节点
< br>3
改成
rac23)
GA
TEWAY=10.0.31.254
10
、配置完成后重启网络服务
:
#service network restart
2)
编辑
/
etc/hosts
文件
# vi
/etc/hosts
127.0.0.1
localhost omain localhost4
omain4
::1
localhost omain
localhost6 omain6
10.0.31.8 goldengate
10.0.31.5 rac21
10.0.31.15
rac21-vip
10.0.50.5 rac21-priv
10.0.31.6 rac22
10.0.31.16
rac22-vip
10.0.50.6 rac22-priv
10.0.31.7 rac23
10.0.31.17
rac23-vip
10.0.50.7 rac23-priv
10.0.31.102 rac2-scan
3)
安装必要的软件包
挂载光盘
安装软件
:
迚入操作系统光盘
/Server/Packages/
目录下
,
找到下列文件
,
拷至
/root/patch
目录中
:
6.x86_
compat-libstdc++-
compat-libstdc++-6.x86_
6.x86_
6.x86_
6.x86_
gcc-c++-6.x86_
6.x86_
6.x86_
6.x86_
6.x86_
6.x86_
6.x86_
6.x86_
libstdc++-
libstdc++-6.x86_
libstdc++-
libstdc++-6.x86_
libstdc++-6.x86_
6.x86_
6.x86_
6.x86_
6.x86_
6_
6_3.x86_
6_
6_3.x86_
将上述补丁包和软件上传到
/tmp/patch
目录中
,
并在该目录中执行如下命令进行安装
p>
:
# rpm -ivh
--nodeps --force
/root/patch/*
4)
修改内核参数
# vi /etc/
= 4398046511104
=
1073741824
= 4096
= 250 32000 100 128
_local_port_range = 9000 65500
_default = 262144
_max = 4194304
_default = 262144
_max = 1048576
-max-nr = 1048576
-max = 6815744
5)
修改
oracle
用户限制
vi
/etc/security/
末尾添加
:
#for Oracle Install
oracle
soft nofile
2047
oracle
hard
oracle
hard
oracle
hard
grid
hard
grid hard
grid hard
nofile
65536
nproc
16384
10240
32768
stack
oracle
soft nproc
2047
oracle
soft
stack
grid soft nofile
2047
nofile
65536
nproc
16384
10240
32768
stack
grid
soft nproc
2047
grid soft
stack
6)
修改
/etc/pam.d/login
#vi /etc/pam.d/login
末尾添加
:
Session reauired
/lib64/security/pam_
7)
关闭防火墙的
selinux
在每个节点上以
p>
root
用户执行:
1
、停掉
iptables
、
selinux
服务
:
#service iptables stop
#chkconfig iptables off
#setenforce 0
#getenforce
2
、修改配置文件
:
#vi /etc/selinux/config
SELINUX=disabled
SELINUXTYPE=targeted
8)
停用
ntp
服务
# service ntpd stop
# chkconfig ntpd off
# mv /etc/ /etc/
# rm -rf /etc/
9)
更改安装所有者的
ulimit
设置
#vi
/etc/profile
末尾添加
:
if [ /$$USER =
if [ /$$SHELL =
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022 fi
export NLS_LANG=American_16GBK
10)
添加
Oracle
用户
创建用户
:
#/usr/sbin/groupadd -g 501 oinstall
#/usr/sbin/groupadd -g 502 dba
#/usr/sbin/groupadd -g 503 oper
#/usr/sbin/groupadd -g 504 asmadmin
#/usr/sbin/groupadd -g 505 asmoper
#/usr/sbin/groupadd -g 506 asmdba
#/usr/sbin/useradd -g oinstall -G
dba,asmdba,oper oracle
#/usr/sbin/useradd -g oinstall -G
asmadmin,asmdba,asmoper,oper,dba grid
11)
设置
oracle
、
grid
用户密码
#passwd
oracle
(
设置密码为
nebula)
#passwd grid
(
设置密码为
nebula)
12)
创建
oracle
安装目录
#mkdir
–
p
/opt/oracle
#chown
–
R oracle:oinstall
/opt/oracle
#mkdir
–
p /opt/oracle/grid/app
#mkdir
–
p
/opt/oracle/grid/11.2.0
#chown
–
R grid:oinstall
/opt/oracle/grid
#mkdir
–
p
/opt/oracle/app/product/11.2.0
#chown
–
R oracle:oinstall
/opt/oracle/app
#chmod
–
R 755
/opt/oracle
13)
设置
oracle
用户环境变量
以
oracle
用户登录
$$ vi
.bash_profile
umask 022
export ORACLE_BASE=/opt/oracle/app
export
ORACLE_HOME=$$ORACLE_BASE/product/11.2.0
export ORACLE_SID=APPDB
export NLS_LANG=AMERICAN_8
export
NLS_DATE_FORMA
T=
export PA
TH=.:$${PA
TH}:$$HOME/bin:$$ORACLE_
HOME/bin
export PA
TH=$${PATH}
:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
export PA
TH=$${PATH}:$$ORACLE_
BASE/common/oracle/bin
export
ORACLE_PATH=$${PA
TH}:$$ORACLE_BASE/comm
on/oracle/sql:.:$$ORACLE_HOME/rdbms/a
dmi
n
export ORACLE_TERM=xterm
export
TNS_ADMIN=$$ORACLE_HOME/network/admin
export
LD_LIBRARY_PA
TH=$$ORACLE_HOME/lib
export LD_LIBRARY_PA
TH=$${LD_
LIBRARY_PA
TH}:$$ORACLE_HOME/oracm/lib
export LD_LIBRARY_PA
TH=$${LD_
LIBRARY_PA
TH}:/lib:/usr/lib:/usr/local/
lib
export CLASSPATH=$$ORACLE_HOME/JRE
export CLASSPATH=$${CLASSPA
TH
}:$$ORACLE_HOME/jlib
export CLASSPATH=$${
CLASSPA
TH}:$$ORACLE_HOME/rdbms/jlib
export CLASSPATH=$${CLASSPA
TH
}:$$ORACLE_HOME/network/jlib
export
THREADS_FLAG=native
export TEMP=/tmp
export TMPDIR=/tmp
14)
设置
grid
用户环境变量
以
grid
用户登录
$$ vi .bash_profile
umask 022
export ORACLE_BASE=/opt/oracle/grid/app
export
ORACLE_HOME=/opt/oracle/grid/11.2.0
export ORACLE_SID=+ASM1
(rac22
改成
+ASM2
,
rac23
改成
+ASM3
)
export NLS_LANG=AMERICAN_8
export
NLS_DATE_FORMA
T=
export PA
TH=.:$${PA
TH}:$$HOME/bin:$$ORACLE_
HOME/bin
export PA
TH=$${PATH}
:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
export PA
TH=$${PATH}:$$ORACLE_
BASE/common/oracle/bin
export
ORACLE_PATH=$${PA
TH}:$$ORACLE_BASE/comm
on/oracle/sql:.:$$ORACLE_HOME/rdbms/a
dmi
n
export ORACLE_TERM=xterm
export
TNS_ADMIN=$$ORACLE_HOME/network/admin
export
LD_LIBRARY_PA
TH=$$ORACLE_HOME/lib
export LD_LIBRARY_PA
TH=$${LD_
LIBRARY_PA
TH}:$$ORACLE_HOME/oracm/lib
export LD_LIBRARY_PA
TH=$${LD_
LIBRARY_PA
TH}:/lib:/usr/lib:/usr/local/
lib
export CLASSPATH=$$ORACLE_HOME/JRE
export CLASSPATH=$${CLASSPA
TH
}:$$ORACLE_HOME/jlib
export CLASSPATH=$${
CLASSPA
TH}:$$ORACLE_HOME/rdbms/jlib
export CLASSPATH=$${CLASSPA
TH
}:$$ORACLE_HOME/network/jlib
export
THREADS_FLAG=native
export TEMP=/tmp
export TMPDIR=/tmp
export
PA
TH=$$PATH:$$ORACLE_HOME/bin
15)
配置
SSH
分别以
root
、
oracle
、
grid
用户配置三个用户的
SSH
无密码登录。
1
、分别
rac21
、
rac22
、
rac23
节点以
root
用户登录执行
:<
/p>
#mkdir ~/.ssh
#chmod 700 ~/.ssh
#ssh-keygen -t rsa
密码全直接回车
#su
–
oracle
$$mkdir
~/.ssh
$$chmod 700 ~/.ssh
$$ssh-keygen -t rsa
密码全直接回车
$$exit
#su
–
grid
$$mkdir ~/.ssh
$$chmod 700 ~/.ssh
$$ssh-keygen -t rsa
密码全直接回车
$$exit
2
、在
rac21
上
以
root
用户执行
:
#cp ~/.ssh/id_
~/.ssh/authorized_keys
#ssh rac22 cat
~/.ssh/id_>>~/.ssh/authorized_keys
#ssh
rac23 cat ~/.ssh/id_>>~/.ssh/authorized_keys
#scp ~/.ssh/authorized_keys
rac22:~/.ssh/authorized_keys
#scp
~/.ssh/authorized_keys
rac23:~/.ssh/authorized_keys
#su -
oracle
$$cp ~/.ssh/id_
~/.ssh/authorized_keys
$$ssh rac22 cat
~/.ssh/id_>>~/.ssh/authorized_keys
$$ssh
rac23 cat ~/.ssh/id_>>~/.ssh/authorized_keys
$$scp ~/.ssh/authorized_keys
rac22:~/.ssh/authorized_keys
$$scp
~/.ssh/authorized_keys
rac23:~/.ssh/authorized_keys
$$exit
#su
–
grid
$$cp ~/.ssh/id_ ~/.ssh/authorized_keys
$$ssh rac22 cat
~/.ssh/id_>>~/.ssh/authorized_keys
$$ssh
rac23 cat ~/.ssh/id_>>~/.ssh/authorized_keys
$$scp ~/.ssh/authorized_keys
rac22:~/.ssh/authorized_keys
$$scp
~/.ssh/authorized_keys
rac23:~/.ssh/authorized_keys
3
、在
rac21
、
rac22
p>
和
rac23
节点上分别用
root
、
oracle
、<
/p>
grid
用户登录,然后分
别执行:
p>
ssh rac21
输入
yes
exit
ssh rac21-priv
输入
yes
exit
ssh rac22
输入
yes
exit
ssh rac22-priv
输入
yes
exit
ssh rac23
输入
yes
exit
ssh rac23-priv
输入
yes
exit
4.
刷新磁盘
若没有重机器
,
存储挂载后在系统中会看丌到
,
< br>用如下命令迚行硬件刷新
: #
5.
磁盘多路径配置
1)
用
PowerVault MD Storage Manag
er
做
LUN
映射
Disk
Group
划分与
Virtual
Disks
划分
2)
加载多路径模块
在每个节点上以
p>
root
用户执行:
#scsi-rescan
#modprobe dm-
multipath
#modprobe dm-round-
robin
3)
启动
multipath
服务
在每个节点上以
root
用户执行:
#service multipathd restart
设置成开机自启动服务
#chkconfig
–
level
345 multipathd on
4)
编辑
/etc/multipath/bindings
文件,修改虚拟磁盘映射别名
在每个节点上以
root
用户执行:
#vi
/etc/multipath/bindings
rac2-data1
36f01faf000e5fd4000000af33c8ce843
rac2-data2
36f01faf000e5fd4000000b083c8cea33
rac2-data3
36f01faf000e5fd4700000e8b3f65c57f
rac2-data4
36f01faf000e5fd4000000b0a3c8cea5a
rac2-data5
36f01faf000e5fd4700000e8d3f65c5b6
rac2-data6
36f01faf000e5fd4000000b0c3c8cea92
rac2-data7
36f01faf000e5fd4700000e8f3f65c5e3
rac2-data8
36f01faf000e5fd4000000b0e3c8ceabf
rac2-data9
36f01faf000e5fd4700000e913f65c60a
rac2-data10
36f01faf000e5fd4000000b103c8ceae3
rac2-data11
36f01faf000e5fd4700000e933f65c62e
rac2-data12
36f01faf000e5fd4000000b123c8ceb09
rac2-data13
36f01faf000e5fd4700000e953f65c65c
rac2-data14
36f01faf000e5fd4700000e763f65c39c
rac2-data15
36f01faf000e5fd4000000b143c8ceb56
rac2-data16
36f01faf000e5fd4700000e973f65c6a3
rac2-data17
36f01faf000e5fd4000000b163c8ceb7f
rac2-data18
36f01faf000e5fd4700000e993f65c6d2
rac2-data19
rac2-data20
rac2-data21
rac2-data22
rac2-data23
rac2-data24
rac2-data25
rac2-data26
rac2-redo1
rac2-redo2
rac2-redo3
36f01faf000e5fd4000000b183c8cebad
36f01faf000e5fd4700000e9b3f65c6f8
36f01faf000e5fd4000000b1a3c8cebd3
36f01faf000e5fd4700000e9d3f65c720
36f01faf000e5fd4000000b1c3c8cebfb
36f01faf000e5fd4700000e9f3f65c746
36f01faf000e5fd4000000b1e3c8cec1f
36f01faf000e5fd4700000ea13f65c772
36f01faf000e5fd4700000ea73f664f46
36f01faf000e5fd4000000b263c8d7426
36f01faf000e5fd4700000ea93f664f83
rac2-crs1
36f01faf000e5fd4000000ad83c8ce4fd
rac2-crs2
36f01faf000e5fd4700000e5a3f65c048
rac2-crs3
36f01faf000e5fd4000000ada3c8ce526
rac2-crs4
36f01faf000e5fd4700000e5c3f65c072
rac2-crs5
36f01faf000e5fd4000000adc3c8ce54f
5)
清除
m
ultipath
磁盘并重新生成
在
每个节点上以
root
用户执行:
1
、重启服务器
2
、清除磁盘
#multipath
–
F
3
、重新扫描生成磁盘
#multipath
–
v2
create: rac2-data1
(36f01faf000e5fd4000000af33c8ce843) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:1
sdb
8:16
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:1
sdaj 66:48
undef
ready
running
create: rac2-data2
(36f01faf000e5fd4000000b083c8cea33) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:2
sdc
8:32
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:2
sdak 66:64
undef
ready
running
create: rac2-data3
(36f01faf000e5fd4700000e8b3f65c57f) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:3
sdd
8:48
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:3
sdal 66:80
undef
ready
running
create: rac2-data4
(36f01faf000e5fd4000000b0a3c8cea5a) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:4
sde
8:64
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:4
sdam 66:96
undef
ready
running
create: rac2-data5
(36f01faf000e5fd4700000e8d3f65c5b6) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:5
sdf
8:80
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:5
sdan 66:112 undef ready
running
create: rac2-data6
(36f01faf000e5fd4000000b0c3c8cea92) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:6
sdg
8:96
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:6
sdao 66:128 undef ready
running
create: rac2-data7
(36f01faf000e5fd4700000e8f3f65c5e3) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:7
sdh
8:112
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:7
sdap 66:144 undef ready
running
create: rac2-data8
(36f01faf000e5fd4000000b0e3c8ceabf) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:8
sdi
8:128
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:8
sdaq 66:160 undef ready
running
create: rac2-data9
(36f01faf000e5fd4700000e913f65c60a) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:9
sdj
8:144
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:9
sdar 66:176 undef ready
running
create: rac2-data10
(36f01faf000e5fd4000000b103c8ceae3) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:10 sdk
8:160
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:10 sdas 66:192 undef ready
running
create: rac2-data11
(36f01faf000e5fd4700000e933f65c62e) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:11 sdl
8:176
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:11 sdat 66:208 undef ready
running
create: rac2-data12
(36f01faf000e5fd4000000b123c8ceb09) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:12 sdm
8:192
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:12 sdau 66:224 undef ready
running
create: rac2-data13
(36f01faf000e5fd4700000e953f65c65c) undef
DELL,MD36xxf
size=517G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:13 sdn
8:208
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:13 sdav 66:240 undef ready
running
create: rac2-data14
(36f01faf000e5fd4700000e763f65c39c) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:14 sdo
8:224
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:14 sdaw 67:0
undef ready
running
create: rac2-data15
(36f01faf000e5fd4000000b143c8ceb56) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:15 sdp
8:240
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:15 sdax 67:16
undef
ready
running
create: rac2-data16
(36f01faf000e5fd4700000e973f65c6a3) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:16 sdq
65:0
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:16 sday 67:32
undef ready
running
create: rac2-data17
(36f01faf000e5fd4000000b163c8ceb7f) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:17 sdr
65:16
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:17 sdaz 67:48
undef
ready
running
create: rac2-data18
(36f01faf000e5fd4700000e993f65c6d2) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:18 sds
65:32
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:18 sdba 67:64
undef
ready
running
create: rac2-data19
(36f01faf000e5fd4000000b183c8cebad) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:19 sdt
65:48
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:19 sdbb 67:80
undef
ready
running
create: rac2-data20
(36f01faf000e5fd4700000e9b3f65c6f8) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:20 sdu
65:64
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:20 sdbc 67:96
undef
ready
running
create: rac2-data21
(36f01faf000e5fd4000000b1a3c8cebd3) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:21 sdv
65:80
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:21 sdbd 67:112 undef ready
running
create: rac2-data22
(36f01faf000e5fd4700000e9d3f65c720) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:22 sdw
65:96
undef
ready
running
`-+- policy='round-robin 0' prio=1
status=undef
`-
2:0:0:22 sdbe 67:128 undef ready
running
create: rac2-data23
(36f01faf000e5fd4000000b1c3c8cebfb) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:23 sdx
65:112 undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:23 sdbf 67:144
undef ready
running
create: rac2-data24
(36f01faf000e5fd4700000e9f3f65c746) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:24 sdy
65:128 undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:24 sdbg 67:160
undef ready
running
create: rac2-data25
(36f01faf000e5fd4000000b1e3c8cec1f) undef
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:25 sdz
65:144 undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:25 sdbh 67:176
undef ready
running
create: rac2-data26
(36f01faf000e5fd4700000ea13f65c772) undef
DELL,MD36xxf
size=517G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:26 sdaa 65:160 undef ready
running
`-+-
policy='round-robin 0' prio=1 status=undef
`- 2:0:0:26
sdbi 67:192 undef ready
running
create: rac2-redo1
(36f01faf000e5fd4700000ea73f664f46) undef
DELL,MD36xxf
size=300G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:27 sdab 65:176 undef ready
running
`-+-
policy='round-robin 0' prio=1 status=undef
`- 2:0:0:27
sdbj 67:208 undef ready
running
create: rac2-redo2
(36f01faf000e5fd4000000b263c8d7426) undef
DELL,MD36xxf
size=300G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:28 sdac 65:192 undef ready
running
`-+-
policy='round-robin 0' prio=1 status=undef
`- 2:0:0:28
sdbk 67:224 undef ready
running
create: rac2-redo3
(36f01faf000e5fd4700000ea93f664f83) undef
DELL,MD36xxf
size=352G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:29 sdad 65:208 undef ready
running
`-+-
policy='round-robin 0' prio=1 status=undef
`- 2:0:0:29
sdbl 67:240 undef ready
running
create: rac2-crs1
(36f01faf000e5fd4000000ad83c8ce4fd) undef
DELL,MD36xxf
size=1.0G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:41 sdae 65:224 undef ready
running
`-+-
policy='round-robin 0' prio=1 status=undef
`- 2:0:0:41
sdbm 68:0
undef
ready
running
create: rac2-crs2
(36f01faf000e5fd4700000e5a3f65c048) undef
DELL,MD36xxf
size=1.0G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:42 sdaf 65:240 undef ready
running
`-+-
policy='round-robin 0' prio=1 status=undef
`- 2:0:0:42
sdbn 68:16
undef ready
running
create:
rac2-crs3 (36f01faf000e5fd4000000ada3c8ce526)
undef DELL,MD36xxf
size=1.0G
features='0' hwhandler='0' wp=undef
|-+- policy='round-robin 0' prio=1
status=undef
| `- 1:0:0:43 sdag 66:0
undef ready
running
`-+-
policy='round-robin 0' prio=1 status=undef
`- 2:0:0:43
sdbo 68:32
undef ready
running
create:
rac2-crs4 (36f01faf000e5fd4700000e5c3f65c072)
undef DELL,MD36xxf
size=1.0G
features='0' hwhandler='0' wp=undef
|-+- policy='round-robin 0' prio=1
status=undef
| `- 1:0:0:44 sdah 66:16
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:44 sdbp 68:48
undef ready
running
create: rac2-crs5
(36f01faf000e5fd4000000adc3c8ce54f) undef
DELL,MD36xxf
size=1.0G features='0'
hwhandler='0' wp=undef
|-+-
policy='round-robin 0' prio=1 status=undef
| `- 1:0:0:45 sdai 66:32
undef ready
running
`-+- policy='round-
robin 0' prio=1 status=undef
`- 2:0:0:45 sdbq 68:64
undef ready
running
4
、查看生成的磁盘
# multipath -ll
rac2-data9
(36f01faf000e5fd4700000e913f65c60a) dm-10
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:9
sdj
8:144
active
ready
running
`-+- policy='round-robin 0' prio=1
status=enabled
`- 2:0:0:9
sdar
66:176 active ready
running
rac2-data26
(36f01faf000e5fd4700000ea13f65c772) dm-27
DELL,MD36xxf
size=517G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:26 sdaa 65:160 active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:26 sdbi 67:192
active ready
running
rac2-data11
(36f01faf000e5fd4700000e933f65c62e) dm-12
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:11 sdl
8:176
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:11 sdat 66:208
active ready
running
rac2-data8
(36f01faf000e5fd4000000b0e3c8ceabf) dm-9
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:8
sdi
8:128
active
ready
running
`-+- policy='round-robin 0' prio=1
status=enabled
`- 2:0:0:8
sdaq
66:160 active ready
running
rac2-data25
(36f01faf000e5fd4000000b1e3c8cec1f) dm-26
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:25 sdz
65:144 active
ready
running
`-+- policy='round-robin 0' prio=1
status=enabled
`- 2:0:0:25 sdbh 67:176 active ready
running
rac2-data10
(36f01faf000e5fd4000000b103c8ceae3) dm-11
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:10 sdk
8:160
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:10 sdas 66:192
active ready
running
rac2-data7
(36f01faf000e5fd4700000e8f3f65c5e3) dm-8
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:7
sdh
8:112
active
ready
running
`-+- policy='round-robin 0' prio=1
status=enabled
`- 2:0:0:7
sdap
66:144 active ready
running
rac2-crs5
(36f01faf000e5fd4000000adc3c8ce54f) dm-35
DELL,MD36xxf
size=1.0G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:45 sdai 66:32
active
ready
running
`-+- policy='round-robin 0' prio=1
status=enabled
`- 2:0:0:45 sdbq 68:64
active ready
running
rac2-data24
(36f01faf000e5fd4700000e9f3f65c746) dm-25
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:24 sdy
65:128 active
ready
running
`-+- policy='round-robin 0' prio=1
status=enabled
`- 2:0:0:24 sdbg 67:160 active ready
running
rac2-data6
(36f01faf000e5fd4000000b0c3c8cea92) dm-7
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:6
sdg
8:96
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:6
sdao 66:128 active ready
running
rac2-crs4
(36f01faf000e5fd4700000e5c3f65c072) dm-34
DELL,MD36xxf
size=1.0G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:44 sdah 66:16
active
ready
running
`-+- policy='round-robin 0' prio=1
status=enabled
`- 2:0:0:44 sdbp 68:48
active ready
running
rac2-data23
(36f01faf000e5fd4000000b1c3c8cebfb) dm-24
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:23 sdx
65:112 active
ready
running
`-+- policy='round-robin 0' prio=1
status=enabled
`- 2:0:0:23 sdbf 67:144 active ready
running
rac2-data5
(36f01faf000e5fd4700000e8d3f65c5b6) dm-6
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:5
sdf
8:80
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:5
sdan 66:112 active ready
running
rac2-crs3
(36f01faf000e5fd4000000ada3c8ce526) dm-33
DELL,MD36xxf
size=1.0G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:43 sdag 66:0
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:43 sdbo 68:32
active ready
running
rac2-data22
(36f01faf000e5fd4700000e9d3f65c720) dm-23
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:22 sdw
65:96
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:22 sdbe 67:128
active ready
running
rac2-data4
(36f01faf000e5fd4000000b0a3c8cea5a) dm-5
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:4
sde
8:64
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:4
sdam 66:96
active ready
running
rac2-crs2
(36f01faf000e5fd4700000e5a3f65c048) dm-32
DELL,MD36xxf
size=1.0G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:42 sdaf 65:240 active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:42 sdbn 68:16
active ready
running
rac2-data19
(36f01faf000e5fd4000000b183c8cebad) dm-20
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:19 sdt
65:48
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:19 sdbb 67:80
active ready
running
rac2-data21
(36f01faf000e5fd4000000b1a3c8cebd3) dm-22
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:21 sdv
65:80
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:21 sdbd 67:112
active ready
running
rac2-data3
(36f01faf000e5fd4700000e8b3f65c57f) dm-4
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:3
sdd
8:48
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:3
sdal 66:80
active ready
running
rac2-crs1
(36f01faf000e5fd4000000ad83c8ce4fd) dm-31
DELL,MD36xxf
size=1.0G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:41 sdae 65:224 active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:41 sdbm 68:0
active ready
running
rac2-data18
(36f01faf000e5fd4700000e993f65c6d2) dm-19
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:18 sds
65:32
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:18 sdba 67:64
active ready
running
rac2-data20
(36f01faf000e5fd4700000e9b3f65c6f8) dm-21
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:20 sdu
65:64
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:20 sdbc 67:96
active ready
running
rac2-data2
(36f01faf000e5fd4000000b083c8cea33) dm-3
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:2
sdc
8:32
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:2
sdak 66:64
active ready
running
rac2-data17
(36f01faf000e5fd4000000b163c8ceb7f) dm-18
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:17 sdr
65:16
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:17 sdaz 67:48
active ready
running
rac2-data1
(36f01faf000e5fd4000000af33c8ce843) dm-2
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:1
sdb
8:16
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:1
sdaj 66:48
active ready
running
rac2-redo3
(36f01faf000e5fd4700000ea93f664f83) dm-30
DELL,MD36xxf
size=352G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:29 sdad 65:208 active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:29 sdbl 67:240
active ready
running
rac2-data16
(36f01faf000e5fd4700000e973f65c6a3) dm-17
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:16 sdq
65:0
active ready
running
`-+-
policy='round-robin 0' prio=1 status=enabled
`- 2:0:0:16
sday 67:32
active ready
running
rac2-redo2
(36f01faf000e5fd4000000b263c8d7426) dm-29
DELL,MD36xxf
size=300G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:28 sdac 65:192 active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:28 sdbk 67:224
active ready
running
rac2-data15
(36f01faf000e5fd4000000b143c8ceb56) dm-16
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:15 sdp
8:240
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:15 sdax 67:16
active ready
running
rac2-redo1
(36f01faf000e5fd4700000ea73f664f46) dm-28
DELL,MD36xxf
size=300G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:27 sdab 65:176 active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:27 sdbj 67:208
active ready
running
rac2-data14
(36f01faf000e5fd4700000e763f65c39c) dm-15
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:14 sdo
8:224
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:14 sdaw 67:0
active ready
running
rac2-data13
(36f01faf000e5fd4700000e953f65c65c) dm-14
DELL,MD36xxf
size=517G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:13 sdn
8:208
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:13 sdav 66:240
active ready
running
rac2-data12
(36f01faf000e5fd4000000b123c8ceb09) dm-13
DELL,MD36xxf
size=500G features='0'
hwhandler='0' wp=rw
|-+- policy='round-
robin 0' prio=1 status=active
| `-
1:0:0:12 sdm
8:192
active ready
running
`-+- policy='round-
robin 0' prio=1 status=enabled
`- 2:0:0:12 sdau 66:224
active ready
running
6.
安装
asm
包
以
root
用户分别在
rac21/r
ac22/rac23
三个节点上操作:
1
、
拷贝与下载
6.x86_
p>
和
6.x86_
两个包放到
/root/patch
目录下
#cp /media/cdrom/Server/Packages/6.x86_
/root/patch/
6.x86_
的
< br>下
载
网
址
:
/technetwork/topics/linux/asmlib/
在
PC
上下载完成
后用
FileZilla
利用
SFTP
协议上传到每个节点的
/root/patch
目录中。
2
、安装
asm
包
#rpm
–
ivh
/root/patch/6.x86_
#rpm
–
ivh
/root/patch/6.x86_
7.
配置
ASM
在每个节点上以
root
p>
用户执行:
#
/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
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 []:
oinstall
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
]
8.
创建
ASM
磁盘
1
、在
每个节点上以
root
用户执行
# /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
]
2
、在
rac21
节点上执行
:
#/etc/init.d/oracleasm createdisk DATA1
/dev/mapper/rac2-data1
#/etc/init.d/oracleasm createdisk DATA2
/dev/mapper/rac2-data2
#/etc/init.d/oracleasm createdisk DATA3
/dev/mapper/rac2-data3
#/etc/init.d/oracleasm createdisk DATA4
/dev/mapper/rac2-data4
#/etc/init.d/oracleasm createdisk DATA5
/dev/mapper/rac2-data5
#/etc/init.d/oracleasm createdisk DATA6
/dev/mapper/rac2-data6
#/etc/init.d/oracleasm createdisk DATA7
/dev/mapper/rac2-data7
#/etc/init.d/oracleasm createdisk DATA8
/dev/mapper/rac2-data8
#/etc/init.d/oracleasm createdisk DATA9
/dev/mapper/rac2-data9
#/etc/init.d/oracleasm createdisk
DATA10 /dev/mapper/rac2-data10
#/etc/init.d/oracleasm createdisk
DATA11 /dev/mapper/rac2-data11
#/etc/init.d/oracleasm createdisk
DATA12 /dev/mapper/rac2-data12
#/etc/init.d/oracleasm createdisk
DATA13 /dev/mapper/rac2-data13
#/etc/init.d/oracleasm createdisk
DATA14 /dev/mapper/rac2-data14
#/etc/init.d/oracleasm createdisk
DATA15 /dev/mapper/rac2-data15
#/etc/init.d/oracleasm createdisk
DATA16 /dev/mapper/rac2-data16
#/etc/init.d/oracleasm createdisk
DATA17 /dev/mapper/rac2-data17
#/etc/init.d/oracleasm createdisk
DATA18 /dev/mapper/rac2-data18
#/etc/init.d/oracleasm createdisk
DATA19 /dev/mapper/rac2-data19
#/etc/init.d/oracleasm createdisk
DATA20 /dev/mapper/rac2-data20
#/etc/init.d/oracleasm createdisk
DATA21 /dev/mapper/rac2-data21
#/etc/init.d/oracleasm createdisk
DATA22 /dev/mapper/rac2-data22
#/etc/init.d/oracleasm createdisk
DATA23 /dev/mapper/rac2-data23
#/etc/init.d/oracleasm createdisk
DATA24 /dev/mapper/rac2-data24
#/etc/init.d/oracleasm createdisk
DATA25 /dev/mapper/rac2-data25
#/etc/init.d/oracleasm createdisk
DATA26 /dev/mapper/rac2-data26
#/etc/init.d/oracleasm createdisk
FLASH_RECOVERY1 /dev/mapper/rac2-redo1
#/etc/init.d/oracleasm createdisk
FLASH_RECOVERY2 /dev/mapper/rac2-redo2
#/etc/init.d/oracleasm createdisk
FLASH_RECOVERY3 /dev/mapper/rac2-redo3
#/etc/init.d/oracleasm createdisk CRS1
/dev/mapper/rac2-crs1
#/etc/init.d/oracleasm createdisk CRS2
/dev/mapper/rac2-crs2
#/etc/init.d/oracleasm createdisk CRS3
/dev/mapper/rac2-crs3
#/etc/init.d/oracleasm createdisk CRS4
/dev/mapper/rac2-crs4
#/etc/init.d/oracleasm createdisk CRS5
/dev/mapper/rac2-crs5
3
、在
rac22
和
rac23
上扫描磁盘
asm
磁盘
,
检查有哪些
asm
磁盘
:
#
/etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib
disks:
# /etc/init.d/oracleasm
listdisks
CRS1
CRS2
CRS3
CRS4
CRS5
DA
TA1
DA
TA10
DA
TA11
DA
TA12
DA
TA13
DA
TA14
DA
TA15
DA
TA16
DA
TA17
DA
TA18
DA
TA19
DA
TA2
DA
TA20
DA
TA21
DA
TA22
DA
TA23
DA
TA24
DA
TA25
DA
TA26
[
OK
]
DA
TA3
DA
TA4
DA
TA5
DA
TA6
DA
TA7
DA
TA8
DA
TA9
FLASH_RECOVERY1
FLASH_RECOVERY2
FLASH_RECOVERY3
(
六
)
安装
GRID
1.
准备安装程序
把
oracle 11gR2 11.2.0.3
的
7
个安装压缩包拷贝到
/
opt/oracle/Install
目录下。
以
oracle
用户登录后执行:
$$cd /opt/oracle/Install
解压安装所需的
1
号到
3
号包:
$$unzip
p10404530_112030_Linux-x86-64_
$$unzip
p10404530_112030_Linux-x86-64_
$$unzip
p10404530_112030_Linux-x86-64_
2.
安装
G
rid
过程
使用
grid
用户登录安装
grid
。
使用
vnc
或者远程管理
桌面以
grid
用户登录
,
迚入安装目
录
,
运行<
/p>
:
$$cd
/opt/oracle/Install/grid
$$./runInstaller
添加第
2
个
节点
rac22
添加第
3
个节点
rac23:
添加结果:
此时在
rac21
、
rac22
、
rac23
三个节点上以
root
用户执行:
# rpm
-ivh /tmp/CVU_11.2.0.3.0_grid/
Preparing...
###########################
################ [100%]
Using default
group oinstall to install package
1:cvuqdisk
###############
############################ [100%]
然后点击“
Check
Again
”按钮
-
-
-
-
-
-
-
-
-
上一篇:大象版小学科学三年级下册教案
下一篇:伪操作