Create GFS2 file systems on logical volumes created in Step 1. Choose a unique name for each file system. For more information about creating a GFS2 file system, refer to
Section 3.1, “Making a File System”.
You can use either of the following formats to create a clustered GFS2 file system:
mkfs.gfs2 -p lock_dlm -t ClusterName:FSName -j NumberJournals BlockDevice
mkfs -t gfs2 -p lock_dlm -t LockTableName -j NumberJournals BlockDevice
You can use either of the following formats to create a local GFS2 file system:
mkfs.gfs2 -p lock_nolock -j NumberJournals BlockDevice
mkfs -t gfs2 -p lock_nolock -j NumberJournals BlockDevice
Command usage:
mount BlockDevice MountPoint
mount -o acl BlockDevice MountPoint
The -o aclmount option allows manipulating file ACLs. If a file system is mounted without the -o acl mount option, users are allowed to view ACLs (with getfacl), but are not allowed to set them (with setfacl).
Note
You can use init.d scripts included with Red Hat Cluster Suite to automate mounting and unmounting GFS2 file systems. For more information about init.d scripts, refer to Configuring and Managing a Red Hat Cluster.