8、配置ssh无密登录(两节点)
su - grid
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub grid@192.168.10.103
ssh-copy-id -i ~/.ssh/id_rsa.pub grid@192.168.10.104
su - oracle
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub oracle@192.168.10.103
ssh-copy-id -i ~/.ssh/id_rsa.pub oracle@192.168.10.104
9、配置共享存储
存储划分以下卷:
grid01 10G
grid02 10G
grid03 10G
system 300G
recovery 800G
data 4T
配置多路径wwid和别名:
前提:服务器已经连接到存储,并识别到LUN
a、 配置/etc/multipath.conf文件
defaults {
polling_interval 10
path_selector "round-robin0"
path_grouping_policy multibus
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
find_multipaths yes
}
blacklist {
devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
devnode "^sd[a]"
}
b、 执行如下命令
modprobe dm-multipath
multipath -F
multipath dm-multipath
multipath dm-round-robin
执行完成上述命令之后,会在/etc/multipath目录下生成一个bindings这的一个文件,包含了存储的uuid和别名
mpatha 36000d310036222000000000000000003
mpathb 36000d310036222000000000000000004
mpathc 36000d310036222000000000000000008
mpathd 36000d310036222000000000000000007
mpathe 36000d310036222000000000000000006
mpathf 36000d310036222000000000000000005
mpathg 36000d310036222000000000000000009
c、 修改别名方便识别
multipaths {
multipath {
wwid 36000d310036222000000000000000004
alias dgdata
path_grouping_policy multibus
}
multipath {
wwid 36000d310036222000000000000000005
alias dggrid1
path_grouping_policy multibus
}
multipath {
wwid 36000d310036222000000000000000006
alias dggrid2
path_grouping_policy multibus
}
multipath {
wwid 36000d310036222000000000000000009
alias dgrecovery
path_grouping_policy multibus
}
multipath {
wwid 36000d310036222000000000000000007
alias dggrid3
path_grouping_policy multibus
}
multipath {
wwid 36000d310036222000000000000000008
alias dgsystem
path_grouping_policy multibus
}
}
重启服务生效
systemctl reload multipath
d、 修改udev权限
vim /etc/udev/rules/ 12-mulitpath-privs.rules
ENV{DM_NAME}=="dg*",OWNER:="grid", GROUP:="asmadmin", MODE:="660"
重启服务器生效,并检查重启后权限、别名是否正常