Bug 825569 - [enhancement]: Add support for noatime, nodiratime
Summary: [enhancement]: Add support for noatime, nodiratime
Keywords:
Status: CLOSED EOL
Alias: None
Product: GlusterFS
Classification: Community
Component: fuse
Version: mainline
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
Assignee: Kaushal
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-27 21:37 UTC by Joe Julian
Modified: 2016-04-07 23:50 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-22 15:46:38 UTC
Regression: ---
Mount Type: fuse
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Joe Julian 2012-05-27 21:37:43 UTC
Attempting to mount the volume with noatime and/or nodiratime results in the message, "unknown option no[dir]atime" and the volume is mounted without it.

Updating atime without need is a known performance issue on high volume servers.

Comment 1 Kaushal 2012-05-28 12:34:21 UTC
Are you sure this could be done earlier?

I tested with 3.1, 3.2 and 3.3 (latest git branches). All of them don't support noatime. The mount.glusterfs script in 3.1 and 3.2 just dropped the unknown options passed with -o silently. The mount script was reworked in 3.3, so that it makes some noise about unknown options.

In 3.3, I also tried forcibly adding a "noatime" option by adding it to the mnt_args string in the source code. (fuse-bridge.c, the init() function). This lead to mount failures with a normal build. Looks like the fuse-lib used by gluster doesn't support "noatime" as an option. I tried a build with fusermount enabled (using --enable-fusermount with the configure script). It was only with this that mount succeeded. Then tried forcibly adding a "nodiratime" option. This option caused both normal and fusermount mounts to fail.

So it looks like gluster never supported these two options out of the box!

Regards,
Kaushal

Comment 2 Joe Julian 2012-05-28 16:25:37 UTC
Although I've had that in my mount options forever, no. I don't know that it was working.

I've changed this to an enhancement request.

Comment 3 Andrew Hatfield 2013-01-30 04:10:11 UTC
For those Volumes where you want noatime and nodiratime, why not set those mount options on the Bricks?

Comment 4 Amar Tumballi 2013-02-20 06:15:35 UTC
for now, the best option is what Andrew (comment #3) suggested. will keep this open for some time to see if there is a possibility in glusterfs to not to bother about time.

Comment 5 Colin Alston 2014-05-29 15:43:11 UTC
*bump* The fun part of this issue is that if you do set nodiratime, glusterfs 3.4 mounts just break with no clear error. More confusingly, the trace error you do end up with is

[2014-05-29 04:58:33.129366] E [mount.c:162:fuse_mount_fusermount] 0-glusterfs-fuse: failed to exec fusermount: No such file or directory

Wat.

Comment 6 Kaleb KEITHLEY 2015-10-22 15:46:38 UTC
because of the large number of bugs filed against mainline version\ is ambiguous and about to be removed as a choice.

If you believe this is still a bug, please change the status back to NEW and choose the appropriate, applicable version for it.


Note You need to log in before you can comment on or make changes to this bug.