O Oracle Cluster File System e um sistema de arquivos muito util para compartilha volumes entre servidores, principalmente no ambiente RAC.Com ele podemos centralizar estruturas como datafiles, archivelogs , diretorios por exemplo dos Oracle data pumps etc...O primeiro passo claro e solicitar a entrega da(s) LUN(s) a ser(rem) utilizada(s) no OCFS2. Logado como root certifique-se de que o arquivo /etc/selinux/config esteja setado assim: SELINUX=permissive Certifique-se tambem o que o arquivo /etc/hosts contenha as entradas de ip e nome dos servidores participantes do cluster OCFS2.Ok vamos a instalacao dos rpms , ainda como root execute o seguinte comando yum install ocfs2: [root@node1]# yum install ocfs2Loaded plugins: rhnplugin, securityThis system is not registered with ULN.ULN support will be disabled.el5_latest | 1.4 kB 00:00el5_latest/primary | 19 MB 00:59el5_latest 13022/13022ol5_UEK_base | 1.2 kB 00:00Setting up Install ProcessResolving Dependencies--> Running transaction check---> Package ocfs2-2.6.18-371.el5.x86_64 0:1.4.10-1.el5 set to be updated--> Finished Dependency Resolution Dependencies Resolved =============================================================================================================Package Arch Version repository Size=============================================================================================================Installing: ocfs2-2.6.18-371.el5 x86_64 1.4.10-1.el5 el5_latest 323 k Transaction Summary=============================================================================================================Install 1 Package(s)Upgrade 0 Package(s)Total download size: 323 kIs this ok [y/N]: yDownloading Packages:ocfs2-2.6.18-371.el5-1.4.10- | 323 kB 00:01Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning Transaction Installing : ocfs2-2.6.18- 1/1 Installed: ocfs2-2.6.18-371.el5.x86_64 0:1.4.10-1.el5 Complete! O proximo rpm e esse : yum install ocfs2console [root@node1]# yum install ocfs2consoleLoaded plugins: rhnplugin, securityThis system is not registered with ULN.ULN support will be disabled.Setting up Install ProcessPackage ocfs2console is obsoleted by ocfs2-tools, trying to install ocfs2-tools-1.8.0-11.el5.x86_64 insteadResolving Dependencies--> Running transaction check---> Package ocfs2-tools.x86_64 0:1.8.0-11.el5 set to be updated--> Processing Dependency: ocfs2console >= 1.6.2 for package: Oracle-linux--> Running transaction check---> Package Oracle-linux.noarch 0:5.0.0-9.el5 set to be updated--> Finished Dependency Resolution Dependencies Resolved ============================================================================================================= Package Arch Version Repository Size=============================================================================================================Installing: ocfs2-tools x86_64 1.8.0-11.el5 el5_latest 1.1 M replacing ocfs2console.x86_64 1.6.3-2.el5 Updating for dependencies:Oracle-linux noarch 5.0.0-9.el5 l5_latest 2.9 k Transaction Summary=============================================================================================================Install 1 Package(s)Upgrade 1 Package(s) Total download size: 1.1 MIs this ok [y/N]: yDownloading Packages:(1/2): Oracle-linux-5.0.09.el5.noarch.rpm | 2.9 kB 00:00(2/2): ocfs2-tools-.8.011.el5.x86_64.rpm | 1.1 MB 00:01--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 514 kB/s | 1.1 MB 00:02Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning Transaction Installing : ocfs2-tools 1/5 Updating :Oracle-linux 2/5 Cleanup :ocfs2tools 3/5 Erasing :ocfs2console 4/5 Cleanup : Oracle-linux 5/5 Installed: ocfs2-tools.x86_64 0:1.8.0-11.el5 Dependency Updated: Oracle-linux.noarch 0:5.0.0-9.el5 Replaced: ocfs2console.x86_64 0:1.6.3-2.el5 Complete! Instalacao finalizada, vamos agora a configuracao:Criando o cluster do OCFS2 Execute o seguinte comando: o2cb add-cluster cluster_name, nosso cluster vai se chamar ocfs2: [root@node1]# o2cb add-cluster ocfs2 Agora vamos adicionar os nos participantes ao cluster: o2cb add-node cluster_name node_name --ip ip_address [root@node1]# o2cb add-node ocfs2 node1 --ip 192.168.1.10[root@node1]# o2cb add-node ocfs2 node2 --ip 192.168.1.11 Apos essa configuracao , sera gerado um arquivo em /etc/ocfs2/cluster.conf com as seguintes informacoes: [root@node1]#cat /etc/ocfs2/cluster.conf node: name = node1 cluster = ocfs2 number = 1 ip_address = 192.168.1.10 ip_port = 7777 node: name = node2 cluster = ocfs2 number = 2 ip_address = 192.168.1.11 ip_port = 7777 cluster: name = ocfs2 heartbeat_mode = local node_count = 2 Agora para os demais nos , podemos realizar essas configuracoes ou simplesmente copiar o arquivo /etc/ocfs2/cluster.conf para os demais nos. Agora para levantar o cluster executamos o comando em todos os nos: service o2cb configure , esse comando configura as opcao