Note: Here we will only format the files where we will keep our OCR, CRS and ASMfile shared files. We will use ASMlibs for all other data files (which we will cover in the next article).
Note2: Unlike other operations, do this ONLY on ONE NODE, it propogates the changes to all nodes.
Choose format: 数据挖掘研究院
Here you get to pick the files which we partitioned with fdisk:
Click OK: 数据挖掘实验室
Yes and formatting:
Mountpoint: 数据挖掘实验室
After formatting , you will need to mount the disks on ALL nodes! 数据挖掘实验室
I did eventually end up adding the third (for my spasmfile), I just don′t know why I didn′t see it before, during formatting. 数据挖掘研究院
Configure OCFS to automatically mount on startup
Edit your /etc/fstab file like this: 数据挖掘研究院
Check it by typing "mount": 数据挖掘研究院
Note: Note that _netdev mount option. It is essential for OCFS2. It basically means that the volume must be mounted after the network is started and dismounted before the network is shutdown. 数据挖掘研究院
Also do chkconfig --list o2cb to see the startup options. 数据挖掘研究院
How about permissions? 数据挖掘研究院
Do the following (that chkconfig command is illustrated for the above mentioned instruction: 数据挖掘研究院
Conclusion:
Here we took a good look at OCFS2 and how it works. We formatted our raw devices with OCFS2 and mounted them on all nodes. We made adjustments to cope with the startup during system startup. In our next article, we will pick up the trail and go ahead with ASMlib installation and setup. 数据挖掘研究院

