OCFS2
WHAT IS OCFS2?
OCFS2 is the next generation of the Oracle Cluster File System for Linux. It allows you to mount volumes on different hosts at the same time. It is an extent based, POSIX compliant file system. OCFS2 is a general-purpose file system that can be used for shared Oracle home installations making management of Oracle Real Application Cluster (RAC) installations even easier. Among the new features and benefits are:
Node and architecture local files using Context Dependent Symbolic Links (CDSL) Network based pluggable DLM Improved journaling / node recovery using the Linux Kernel "JBD" subsystem Improved performance of meta-data operations (space allocation, locking, etc). Improved data caching / locking (for files such as oracle binaries, libraries, etc)
Installimine on lihtne, eriti RedHatiga ;)
Vaadake, mis kerneli jaoks ka tõmbate ;) wget http://oss.oracle.com/projects/ocfs2/dist/files/RedHat/RHEL4/x86_64/1.2.5-1/2.6.9-42.EL/ocfs2-2.6.9-42.ELsmp-1.2.5-1.x86_64.rpm wget http://oss.oracle.com/projects/ocfs2-tools/dist/files/RedHat/RHEL4/x86_64/1.2.4-1/ocfs2-tools-1.2.4-1.x86_64.rpm wget http://oss.oracle.com/projects/ocfs2-tools/dist/files/RedHat/RHEL4/x86_64/1.2.4-1/ocfs2console-1.2.4-1.x86_64.rpm rpm -i ocfs2*
Kes tahab sortsust kokku lasta, siis selleks ka võimalus http://oss.oracle.com/projects/ocfs2/files/source/
Et kõik moodulid masina buutimisel üles laetakse, tuleb käivitada /etc/init.d/o2cb configure /etc/init.d/o2cb load
chkconfig ocfs2 on chkconfig o2cb on
Oracle on valmis teinud ka kena GUI "ocfs2console" confifail asub /etc/ocfs2/cluster.conf
more /etc/ocfs2/cluster.conf node:
ip_port = 7777 ip_address = 10.1.5.196 number = 0 name = nfs1 cluster = ocfs2
node:
ip_port = 7777 ip_address = 10.1.5.197 number = 1 name = nfs2 cluster = ocfs2
cluster:
node_count = 2 name = ocfs2
ocfs2 failisüsteemi tegemiseks kettale on käsk mkfs.ocfs2
Kui mõlemas masinas ettevalmistused tehtud, siis polegi midagi muud jäänud kui:
/etc/init.d/o2cb online ocfs2
alati saab ka staatust vaadata
/etc/init.d/o2cb status
Kui klaster on confitud buutimisel laadima, saab klastrit startida/peatada /etc/init.d/o2cb start/stop