Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Red Hat Enterprise Linux 9 Essentials Book now available.

Purchase a copy of Red Hat Enterprise Linux 9 (RHEL 9) Essentials

Red Hat Enterprise Linux 9 Essentials Print and eBook (PDF) editions contain 34 chapters and 298 pages

Preview Book

2.2. Initial Setup Tasks

Initial GFS2 setup consists of the following tasks:
  1. Setting up logical volumes.
  2. Making a GFS2 files system.
  3. Mounting file systems.
Follow these steps to set up GFS2 initially.
  1. Using LVM, create a logical volume for each Red Hat GFS2 file system.

    Note

    You can use init.d scripts included with Red Hat Cluster Suite to automate activating and deactivating logical volumes. For more information about init.d scripts, refer to Configuring and Managing a Red Hat Cluster.
  2. 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
    
    For more information on creating a GFS2 file system, see Section 3.1, “Making a File System”.
  3. At each node, mount the GFS2 file systems. For more information about mounting a GFS2 file system, see Section 3.2, “Mounting a File System”.
    Command usage:
    mount BlockDevice MountPoint
    mount -o acl BlockDevice MountPoint
    The -o acl mount 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.

 
 
  Published under the terms of the Creative Commons License Design by Interspire