用时两天给客户安装完了4节点的Oracle10g RAC on Linux x86-64,使用了OCFS2存储数据文件以及ocr和voting disk。概括一下碰到的问题。
1. 基本上完全按照Oracle官方安装文档,但是其中kernel.shmall内核参数的设置,如果按照默认值2097152的话,最多只能使用到8G内存,当配置SGA过高的时候,就会在启动实例的时候报错。
SQL> startup nomount
ORA-27102: out of memory
Linux-x86_64 Error: 28: No space left on device
需要将此参数值修改为shmmax/PAGE_SIZE值(通过getconf PAGE_SIZE获取),在此次实施中,客户机器为64G内存,PAGE_SIZE = 4096,因此应该设置kernel.shmall = 16475728。
2. 在安装CRS之前文档中要求运行rootpre.sh,但是却会报“No OraCM running”这样的错误。按照Metalink Note: 405986.1,这个错误可以忽略。
3. 安装CRS最后运行root.sh的时候,报错:
PROT-1: Failed to initialize ocrconfig
Failed to upgrade Oracle Cluster Registry configuration
重新mount OCFS2文件系统之后,再次运行root.sh,故障消失。
umount /u02/oradata/system
mount -L "vol_system" /u02/oradata/system -o nointr,datavolume
4. 服务端的Service Load Balance问题依旧,还是得将remote_listener参数置空之后,才能正常连接。

