Erinevus lehekülje "OCFS2" redaktsioonide vahel
14. rida: | 14. rida: | ||
Vaadake, millise kerneli jaoks ka tõmbate ;)<br> | Vaadake, millise kerneli jaoks ka tõmbate ;)<br> | ||
− | 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<br> | + | 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<br> |
− | 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<br> | + | 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<br> |
− | 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<br> | + | 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<br> |
− | rpm -i ocfs2* | + | rpm -i ocfs2* |
Kes tahab sortsust kokku lasta, siis selleks ka võimalus<br> | Kes tahab sortsust kokku lasta, siis selleks ka võimalus<br> |
Redaktsioon: 4. september 2008, kell 11:23
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, millise 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", võimalusel kasutage seda
Kõigepealt teeme klastri, lisame masinad
confifailid asuvad /etc/ocfs2/cluster.conf ja /etc/sysconfig/o2cb
cat /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
cat /etc/sysconfig/o2cb
# This is a configuration file for automatic startup of the O2CB
# driver. It is generated by running /etc/init.d/o2cb configure.
# Please use that method to modify this file
# O2CB_ENABELED: 'true' means to load the driver on boot.
O2CB_ENABLED=true # O2CB_BOOTCLUSTER: If not empty, the name of a cluster to start.
O2CB_BOOTCLUSTER=ocfs2 # O2CB_HEARTBEAT_THRESHOLD: Iterations before a node is considered dead.
O2CB_HEARTBEAT_THRESHOLD= # O2CB_IDLE_TIMEOUT_MS: Time in ms before a network connection is considered dead.
O2CB_IDLE_TIMEOUT_MS= # O2CB_KEEPALIVE_DELAY_MS: Max time in ms before a keepalive packet is sent
O2CB_KEEPALIVE_DELAY_MS= # O2CB_RECONNECT_DELAY_MS: Min time in ms between connection attempts
O2CB_RECONNECT_DELAY_MS=
ocfs2 failisüsteemi tegemiseks kettale on käsk mkfs.ocfs2, võib GUI-s
et mountida ketast võib kasutada GUI'd või mount -t ocfs2 /dev/xxx /xxx või kõik ocfs2 kettad mount -at 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
Täpsem õpetus http://oss.oracle.com/projects/ocfs2/dist/documentation/02-mount_umount.pdf