Erinevus lehekülje "OCFS2" redaktsioonide vahel
13. rida: | 13. rida: | ||
Vaadake, mis kerneli jaoks ka tõmbate ;)<br> | Vaadake, mis 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> | ||
22. rida: | 23. rida: | ||
Et kõik moodulid masina buutimisel üles laetakse, tuleb käivitada<br> | Et kõik moodulid masina buutimisel üles laetakse, tuleb käivitada<br> | ||
− | /etc/init.d/o2cb configure<br> | + | |
− | /etc/init.d/o2cb load | + | /etc/init.d/o2cb configure<br> |
+ | /etc/init.d/o2cb load | ||
chkconfig ocfs2 on<br> | chkconfig ocfs2 on<br> | ||
32. rida: | 34. rida: | ||
more /etc/ocfs2/cluster.conf | more /etc/ocfs2/cluster.conf | ||
− | node: | + | |
+ | node: | ||
ip_port = 7777 | ip_port = 7777 | ||
ip_address = 10.1.5.196 | ip_address = 10.1.5.196 | ||
38. rida: | 41. rida: | ||
name = nfs1 | name = nfs1 | ||
cluster = ocfs2 | cluster = ocfs2 | ||
− | + | ||
− | node: | + | node: |
ip_port = 7777 | ip_port = 7777 | ||
ip_address = 10.1.5.197 | ip_address = 10.1.5.197 | ||
45. rida: | 48. rida: | ||
name = nfs2 | name = nfs2 | ||
cluster = ocfs2 | cluster = ocfs2 | ||
− | + | ||
− | cluster: | + | cluster: |
node_count = 2 | node_count = 2 | ||
name = ocfs2 | name = ocfs2 | ||
+ | |||
ocfs2 failisüsteemi tegemiseks kettale on käsk mkfs.ocfs2 | ocfs2 failisüsteemi tegemiseks kettale on käsk mkfs.ocfs2 | ||
54. rida: | 58. rida: | ||
Kui mõlemas masinas ettevalmistused tehtud, siis polegi midagi muud jäänud kui: | Kui mõlemas masinas ettevalmistused tehtud, siis polegi midagi muud jäänud kui: | ||
− | /etc/init.d/o2cb online ocfs2 | + | |
+ | /etc/init.d/o2cb online ocfs2 | ||
alati saab ka staatust vaadata | alati saab ka staatust vaadata | ||
− | /etc/init.d/o2cb status | + | /etc/init.d/o2cb status |
Kui klaster on confitud buutimisel laadima, saab klastrit startida/peatada /etc/init.d/o2cb start/stop | Kui klaster on confitud buutimisel laadima, saab klastrit startida/peatada /etc/init.d/o2cb start/stop |
Redaktsioon: 28. august 2007, kell 13:52
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