OpenVZ Forum

Home » Mailing lists » Users » advice for quota file location
advice for quota file location [message #48222] Mon, 08 October 2012 08:20
Roman Haefeli is currently offline  Roman Haefeli
Messages: 9
Registered: May 2012
Junior Member
From: *
Hi all

We're running a Corosync/Pacemaker cluster with OpenVZ conainers as
resources running on a mounted (by all nodes) NFS export.

>From what I can tell, there is no way to configure the path for the
quota files, so we left them at their default location
in /var/lib/vzquota. Of course, this means that every node has its own
quota directory and for a specific CT, the quota is calculated
separately on every node.
The problem is that when a specific node goes down (or gets fenced), the
quota files on this node might get corrupted. When this happens and the
node is started again, the cluster stack might try to start a container
with that uses a corrupt quota file, which fails, so the cluster stack
starts the container on a different node. The problem is that those
corrupt quota files might stay undetected. As long as this is the case,
a certain container might be not able to run on a certain node.

We thought about symlinking /var/lib/vzquota to the NFS mount, so that
all nodes share the quota files. My question: Is there a reason that the
path to quota files is not configurable? Is there a reason not to put
the quota files on the share NFS mount?

Previous Topic: libcgroup and RHEL/CentOS/SL 6
Next Topic: weird filesystem corruption issues
Goto Forum:

Current Time: Fri Jul 28 04:51:41 GMT 2017