Show Table of Contents
3.2. Initial Setup Tasks
Initial GFS2 setup consists of the following tasks:
- Setting up logical volumes.
- Making a GFS2 files system.
- Mounting file systems.
Follow these steps to set up GFS2 initially.
- Using LVM, create a logical volume for each Red Hat GFS2 file system.
Note
You can useinit.dscripts included with Red Hat Cluster Suite to automate activating and deactivating logical volumes. For more information aboutinit.dscripts, see Configuring and Managing a Red Hat Cluster. - 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, see Section 4.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-jNumberJournals BlockDevicemkfs -t gfs2 -p lock_dlm -t
LockTableName-jNumberJournals BlockDeviceFor more information on creating a GFS2 file system, see Section 4.1, “Making a File System”. - At each node, mount the GFS2 file systems. For more information about mounting a GFS2 file system, see Section 4.2, “Mounting a File System”.Command usage:
mount BlockDevice MountPointmount -o acl BlockDevice MountPointThemount option allows manipulating file ACLs. If a file system is mounted without the-oaclmount option, users are allowed to view ACLs (with-oaclgetfacl), but are not allowed to set them (withsetfacl).Note
You can useinit.dscripts included with the Red Hat High Availability Add-On to automate mounting and unmounting GFS2 file systems.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.