OCFS2 (Oracle Cluster File System 2)

OCFS2 ist seit Kernel 2.6.19 stabil (eingeführt 2005)

Bei OCFS2 handelt es sich um ein Open-Source Cluster-Dateisystem von der Firma Oracle für Linux, welches in einem Computercluster konkurrierenden Zugriff auf eine Shared Storage ermöglicht.

OCFS2 is a general purpose extent based shared disk cluster file system with many similarities to ext3. It supports 64 bit inode numbers, and has automatically extending metadata groups which may also make it attractive for non-clustered use.


aptitude install ocfs2-tools ocfs2console
Hole:1 http://de.archive.ubuntu.com karmic/main ocfs2-tools 1.4.2-1 [710kB]
Hole:2 http://de.archive.ubuntu.com karmic/main python-cairo 1.8.6-1ubuntu1 [105kB]
Hole:3 http://de.archive.ubuntu.com karmic/main python-gtk2 2.16.0-0ubuntu1 [1.711kB]
Hole:4 http://de.archive.ubuntu.com karmic/main ocfs2console 1.4.2-1 [107kB]
http://oss.oracle.com/projects/ocfs2/
http://oss.oracle.com/projects/ocfs2/dist/documentation/ocfs2_faq.html
################################################################################
# O2CB - Default cluster stack for the OCFS2 file system.
Damit O2CB problemlos funktioniert, sollte man SELINUX und iptables abschalten
oder wenigstens modifizieren.
Vielleicht wird SELINUX in Zukunft auch unterstützt, wenn das Dateisystem mit
erweiterten Attributen umgehen können wird.
#aptitude install ocfs2-tools ocfs2console
aptitude install ocfs2-tools
Die "cluster.conf" ist auf allen Cluster-Knoten die gleiche:
cp /usr/share/doc/ocfs2-tools/examples/cluster.conf /etc/ocfs2/
vi /etc/ocfs2/cluster.conf
	node:
		ip_port = 7777
		ip_address = 10.10.10.1
		number = 0
		name = hostname1.domain.de
		cluster = ocfs2cluster
	node:
		ip_port = 7777
		ip_address = 10.10.10.2
		number = 1
		name = hostname2
		cluster = ocfs2cluster
	cluster:
		node_count = 2
		name = ocfs2cluster
mkfs.ocfs2 -L "ocfs2cluster" /dev/sda1
fsck.ocfs2 -f -r 2 /dev/sda1
vi /etc/fstab
	/dev/sda1	/dir	ocfs2	_netdev		0	0
### O2CB Cluster Timeout Configuration
#
### RedHat
# service o2cb configure
#
### Debian
dpkg-reconfigure ocfs2-tools
/etc/init.d/o2cb start
/etc/init.d/o2cb status
/etc/init.d/ocfs2 start
/etc/init.d/ocfs2 status
ln -s /etc/init.d/o2cb /etc/rc2.d/S98o2cb
ln -s /etc/init.d/o2cb /etc/rc3.d/S98o2cb
ln -s /etc/init.d/o2cb /etc/rc4.d/S98o2cb
ln -s /etc/init.d/o2cb /etc/rc5.d/S98o2cb
ln -s /etc/init.d/o2cb /etc/rc0.d/K01o2cb
ln -s /etc/init.d/o2cb /etc/rc1.d/K01o2cb
ln -s /etc/init.d/o2cb /etc/rc6.d/K01o2cb
ln -s /etc/init.d/ocfs2 /etc/rc2.d/S99ocfs2
ln -s /etc/init.d/ocfs2 /etc/rc3.d/S99ocfs2
ln -s /etc/init.d/ocfs2 /etc/rc4.d/S99ocfs2
ln -s /etc/init.d/ocfs2 /etc/rc5.d/S99ocfs2
ln -s /etc/init.d/ocfs2 /etc/rc0.d/K00ocfs2
ln -s /etc/init.d/ocfs2 /etc/rc1.d/K00ocfs2
ln -s /etc/init.d/ocfs2 /etc/rc6.d/K00ocfs2
#
# ODER
#
#update-rc.d o2cb start 98 2 3 4 5 . stop 01 0 1 6 .
#update-rc.d ocfs2 start 98 2 3 4 5 . stop 01 0 1 6 .
#
# ODER
#
#aptitude install chkconfig lsb-base
#chkconfig -a o2cb
#chkconfig -s o2cb  on
#chkconfig -a ocfs2
#chkconfig -s ocfs2 on
################################################################################
To manually enable panic on oops and set a 30 sec timeout for reboot on panic, do:
      $ echo 1 > /proc/sys/kernel/panic_on_oops
      $ echo 30 > /proc/sys/kernel/panic
To enable the above on every reboot, add the following to /etc/sysctl.conf:
      kernel.panic_on_oops = 1
      kernel.panic = 30
 
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht:GNU Free Documentation License 1.2
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki