Owner's Manual

22 Deployment Guide
5
On the
first node
, for a Fibre Channel cluster, create one partition on each of the other two external
storage devices with
fdisk
:
a
Create a primary partition for the entire device by typing:
fdisk /dev/emcpowerx
Ty p e
h
for help within the
fdisk
utility.
b
Verify that the new partition exists by typing:
cat /proc/partitions
c
If you do not observe the new partition, type:
sfdisk -R /dev/<device name>
NOTE: The following steps use the sample values /u01, /u02, and /u03 for mount points and u01, u02, and u03 as labels.
6
On
any one node
, format the external storage devices with 4 K block size, 128 K cluster size, and 4 node
slots (node slots refer to the number of cluster nodes) using the command line utility
mkfs.ocfs2
as
follows:
mkfs.ocfs2 -b 4K -C 128K -N 4 -L u01 /dev/emcpowera1
mkfs.ocfs2 -b 4K -C 128K -N 4 -L u02 /dev/emcpowerb1
mkfs.ocfs2 -b 4K -C 128K -N 4 -L u03 /dev/emcpowerc1
NOTE: For more information about setting the format parameters of clusters, see
http://oss.oracle.com/projects/ocfs2/dist/documentation/ocfs2_faq.html.
7
On
each node
, perform the following steps:
a
Create mount points for each OCFS2 partition. To perform this procedure, create the target
partition directories and set the ownerships by typing:
mkdir -p /u01 /u02 /u03
chown -R oracle.dba /u01 /u02 /u03
b
On
each node
, modify the
/etc/fstab
file by adding the following lines for a Fibre Channel storage
system:
/dev/emcpowera1 /u01 ocfs2 _netdev,datavolume,nointr 0 0
/dev/emcpowerb1 /u02 ocfs2 _netdev,datavolume,nointr 0 0
/dev/emcpowerc1 /u03 ocfs2 _netdev,datavolume,nointr 0 0
Make appropriate entries for all OCFS2 volumes.
c
On
each node
, type the following to mount all the volumes listed in the
/etc/fstab
file:
mount -a -t ocfs2
d
On
each node
, add the following command to the
/etc/rc.local
file:
mount -a -t ocfs2