五、给共享磁盘建立软连接并授权,并为SSH建立软连接
在前面的两步中分别建立了本地共享磁盘和用户,这一步很简单,就是给本地的共享磁盘授权,但是这一步非常关键,如果共享磁盘的属主不对,在建立ASM磁盘时是不能被识别的,要特别注意。
1.给共享磁盘授权(两节点都执行)
前面已经给共享磁盘建立了软连接,现在直接使用映射后的路径,参考了官方文档,要把共享磁盘的属主设为grid:asmadmin,用户组asmadmin,用户grid
-bash-3.00# chown -R grid:asmadmin /ShareDisk/crs1
-bash-3.00# chmod -R 660 /ShareDisk/crs1
-bash-3.00# chown -R grid:asmadmin /ShareDisk/crs2
-bash-3.00# chmod -R 660 /ShareDisk/crs2
-bash-3.00# chown -R grid:asmadmin /ShareDisk/asm1
-bash-3.00# chmod -R 660 /ShareDisk/asm1
-bash-3.00# chown -R grid:asmadmin /ShareDisk/asm2
-bash-3.00# chmod -R 660 /ShareDisk/asm2
-bash-3.00# chown -R grid:asmadmin /ShareDisk/asm3
-bash-3.00# chmod -R 660 /ShareDisk/asm3
-bash-3.00# chown -R grid:asmadmin /ShareDisk/asm4
-bash-3.00# chmod -R 660 /ShareDisk/asm4
-bash-3.00# chown -R grid:asmadmin /ShareDisk/fra1
-bash-3.00# chmod -R 660 /ShareDisk/fra1
-bash-3.00# chown -R grid:asmadmin /ShareDisk/fra2
-bash-3.00# chmod -R 660 /ShareDisk/fra2
-bash-3.00# chown -R grid:asmadmin /ShareDisk/spfile
-bash-3.00# chmod -R 660 /ShareDisk/spfile
(两个RAC节点都执行)
2.为SSH建立软连接
-bash-3.00# mkdir -p /usr/local/bin
-bash-3.00# ln -s /usr/bin/ssh /usr/local/bin/ssh
-bash-3.00# ln -s /usr/bin/scp /usr/local/bin/scp
(两个RAC节点都执行)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26712/viewspace-1031702/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26712/viewspace-1031702/