Before you can mount a GFS file system, the file system must exist (refer to Section 9.1 Making a File System), the pool volume where the file system exists must be activated, and the supporting clustering and locking systems must be started (refer to Chapter 4 Initial Configuration). After those requirements have been met, you can mount the GFS file system as you would any Linux file system.
To manipulate file ACLs, you must mount the file system with the -o acl mount option. 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).
Mounting Without ACL Manipulation
mount -t gfs BlockDevice MountPoint |
Mounting With ACL Manipulation
mount -t gfs -o acl BlockDevice MountPoint |
GFS-specific option to allow manipulating file ACLs.
Specifies the block device where the GFS file system resides.
Specifies the directory where the GFS file system should be mounted.
In this example, the GFS file system on the pool0 block device is mounted on the /gfs1/ directory.
mount -t gfs /dev/pool/pool0 /gfs1 |
mount -t gfs BlockDevice MountPoint -o option |
The -o option consists of GFS-specific options (refer to Table 9-2) or acceptable standard Linux mount -o options, or a combination of both. Multiple option parameters are separated by a comma and no spaces.
Note | |
---|---|
The mount command is a Linux system command. In addition to using GFS-specific options described in this section, you can use other, standard, mount command options (for example, -r). For information about other Linux mount command options, see the Linux mount man page. |
Table 9-2 describes the available GFS-specific options that can be passed to GFS at mount time.
Option | Description | ||
---|---|---|---|
-o acl | 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). | ||
hostdata=nodename | LOCK_GULM file systems use this information to set the local node name, overriding the usual selection of node name from uname -n. | ||
lockproto=LockModuleName | Allows the user to specify which locking protocol to use with the file system. If LockModuleName is not specified, the locking protocol name is read from the file system superblock. | ||
locktable=LockTableName | Allows the user to specify which locking table to use with the file system. | ||
upgrade | Upgrade the on-disk format of the file system so that it can be used by newer versions of GFS. | ||
| Forces GFS to treat the file system as a multihost file system. By default, using LOCK_NOLOCK automatically turns on the localcaching and localflocks flags. | ||
| Tells GFS that it is running as a local file system. GFS can then turn on selected optimization capabilities that are not available when running in cluster mode. The localcaching flag is automatically turned on by LOCK_NOLOCK. | ||
| Tells GFS to let the VFS (virtual file system) layer do all flock and fcntl. The localflocks flag is automatically turned on by LOCK_NOLOCK. |
Table 9-2. GFS-Specific Mount Options