3.9. Configuring atime
Updates
3.9.1. Mount with relatime
The relatime
(relative atime) Linux mount option can be specified when the file system is mounted. This specifies that the atime
is updated if the previous atime
update is older than the mtime
or ctime
update.
mount BlockDevice MountPoint
-o relatime
BlockDevice
-
Specifies the block device where the GFS2 file system resides.
MountPoint
-
Specifies the directory where the GFS2 file system should be mounted.
In this example, the GFS2 file system resides on the /dev/vg01/lvol0
and is mounted on directory /mygfs2
. The atime
updates take place only if the previous atime
update is older than the mtime
or ctime
update.
mount /dev/vg01/lvol0 /mygfs2 -o relatime