Ocfs2 Bifurcation
Ocfs2 Bifurcation
Ocfs2 Bifurcation
======================================================
for ocfs2
ocfs2-tools-1.2.7-1.el4
ocfs2-2.6.9-89.0.0.0.1.EL-1.2.9-1.el4
ocfs2console-1.2.7-1.el4
note these are for oel 4.8 for different os refer to this link
http://oss.oracle.com/projects/ocfs2/
now login as root n then run it if u get a error of cluster stack not starting up
londonl # ocfs2console
Select Cluster > Configure Nodes. If a cluster configuration file does not already
exist, then
save it
check on node 2 on this location to verify that cluster.conf has been creatd
Once the ocfs2 has been configure then you can format the partition
then try mounting the ocfs2 drive
and add the following line to the /etc/fstab to mount the files system on boot
/sbin/mounted.ocfs2 /dev/sdbl
============================================================== o2cb
========================================
0CFS2 has its own cluster stack called o2cb. This stack includes a number of
components including
The /etc/in it/o2cb script performs most 0CFS2 management operations, many of which
/etc/init.d/o2cb unload
To use the 0CFS2 file system, the o2cb modules must be loaded. If you have not
configured the
to unload it
/etc/init.d/o2cb unload
The o2cb start command loads the modules and then brings the cluster file system
online. To
stop the 0CFS2 service, use
stop a cluster
To check the
current status of a RAC cluster, you can use the following command:
To format a volume using ocf s2module, select Tasks > Format on the main menu.
You can also use the mount command, specifying the device and mount directory, as
in the following
example:
If the volume contains the Oracle Cluster Registry (OCR), voting disk file,
datafiles, redo logs,
archive logs, or control files, then it must be mounted with the -o data volume
mount option to
ensure that the files are opened with the odirect flag, which specifies direct I/O:
and add the following line to the /etc/fstab to mount the files system on boot
You can specify a volume label when you format the 0CFS2 file system using the mkf
s. ocf s
command, as in the following example:
londonl # mkfs.ocfs2 -b 4k -C 32K -L "u02" -N 4 / dev/sdal
The 0CFS2 file system can now be mounted manually by specifying the mount point and
the
volume label:
To mount the 0CFS2 file system automatically using the volume label, add an entry
to
/etc/f stab as in the following example:
The 0CFS2 file system can then be mounted using the following command:
Alternatively, you can mount the 0CFS2 file system using the label
===================================================== mounted.ocfs2
=====================================================
Use mounted. ocf s2 to check the nodes currently mounting a specific device.
Options include -d,
which performs a quick detect, and -f (the default), which performs a full detect.
For example, by
default the mounted. ocf s2 command returns a list of nodes:
/sbin/mounted.ocfs2 /dev/sdbl
You can increase the number of node slots using the tunef s. ocf s2 tool.
The volume must be unmounted on all nodes to perform this operation. For example,
to increase the number of node slots to eight for the volume assigned to device
/dev/sda2, use the following command:
This command creates one journal for each additional node. As in the following
example, you
can also change the volume label using the tunef s. ocf s2 tool:
You can also change the journal size using the tunef s. ocf s2 tool. You can extend
the journal for
each of the assigned node slots as follows: