I received an oracle file system image that i need to access in order to recover from backup files. So i needed to enable ocfs2 support on linux.
First, install support packages:
sudo apt-get install ocfs2-tools ocfs2console ocfs2-tools-dev
Next, you must mount the file to a loopback device, so it can be used like a disk.
sudo losetup /dev/loop0 ocfs2_dump.img
You can now run the oracle file system console
sudo ocfs2console
Your loopback device should be now visible.
Go to the menu cluster, configure nodes, and add a new node. The name should be your hostname and the ip address can be 127.0.0.1
sudo /etc/init.d/o2cb load
sudo /etc/init.d/o2cb online
Now you can use the ocfs2 console interface to mount your image.