Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 529676 - sys-cluster/glusterfs-3.5.2: quota: Could not start quota auxiliary mount
Summary: sys-cluster/glusterfs-3.5.2: quota: Could not start quota auxiliary mount
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-18 11:00 UTC by Christian Affolter
Modified: 2015-03-23 12:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Affolter 2014-11-18 11:00:00 UTC
Enabling GlusterFS quota on a volume does not work, as the auxiliary mount parent directory is missing.

Reproducible: Always

Steps to Reproduce:
1. gluster volume quota <VOLUME> enable
Actual Results:  
quota: Could not start quota auxiliary mount
Quota command failed. Please check the cli logs for more details

tail -n 2 /var/log/glusterfs/cli.log

[2014-11-18 10:39:06.956276] E [cli-cmd-volume.c:1036:gf_cli_create_auxiliary_mount] 0-cli: Failed to create auxiliary mount directory /var/run/gluster/<VOLUME>/. Reason : No such file or directory
[2014-11-18 10:39:06.956351] I [input.c:36:cli_batch] 0-: Exiting with: -1

Expected Results:  
volume quota : success

There's already an upstream bug report at https://bugzilla.redhat.com/show_bug.cgi?id=1117888

In the meantime, adding the following checkpath directive to the init script (/etc/init.d/glusterd), solves the problem:

start_pre() {
	# Ensure that the GlusterFS auxiliary mount parent directory exists
	checkpath --directory --owner root:root --mode 0700 /var/run/gluster
}
Comment 1 Ultrabug gentoo-dev 2015-03-23 12:14:01 UTC
Good catch mate, thanks;

+*glusterfs-3.5.3 (23 Mar 2015)
+
+  23 Mar 2015; Ultrabug <ultrabug@gentoo.org> -glusterfs-3.3.0.ebuild,
+  -glusterfs-3.4.2-r1.ebuild, -glusterfs-3.4.4.ebuild,
+  -glusterfs-3.4.4-r2.ebuild, -glusterfs-3.5.1.ebuild, -glusterfs-3.5.2.ebuild,
+  +glusterfs-3.5.3.ebuild, +files/glusterd-r2.initd:
+  version bump, drop old and vulnerable wrt #541540, fix #536606 thx to Jaco
+  Kroon, fix #529676 thx to Christian Affolter
+