resource-agents icon indicating copy to clipboard operation
resource-agents copied to clipboard

ocf:heartbeat:Filesytem - add quotaon/quotaoff support

Open bootc opened this issue 11 years ago • 7 comments

This adds support to ocf:heartbeat:Filesystem to run quotaon at mount time, and quotaoff before unmount.

bootc avatar Mar 15 '13 12:03 bootc

I like how you did this: do sane things using mount options, unless the administrator turns off automatic "do the right thing" mode. :)

lhh avatar Mar 15 '13 12:03 lhh

From IRC: Would it be useful to create the quota files if nonexistent, saving the admin a step?

Ex: https://github.com/bootc/resource-agents/blob/master/rgmanager/src/resources/utils/fs-lib.sh#L450

^ One example of how to create them. Talking with bootc, quotacheck does the file creation for us, touching them individually might not be required.

lhh avatar Mar 15 '13 13:03 lhh

Indeed, touching the files before running quotacheck breaks the process. The files must not exist before quotacheck is run for the first time or the process will fail.

Once the actual quota files have been created by quotacheck with the right format, quotacheck will then happily re-check the files when it is run, as long as quota enforcement is turned off for that mountpoint.

bootc avatar Mar 15 '13 13:03 bootc

Any news here? It'd be pity that this doesn't get merged.

dmuhamedagic avatar Jun 05 '13 15:06 dmuhamedagic

Sorry, I just haven't had a chance to pick this up again properly. I haven't forgotten about it.

bootc avatar Jun 05 '13 22:06 bootc

@bootc, still busy?

dmuhamedagic avatar Jan 02 '15 14:01 dmuhamedagic

Looks like @bootc is indefinitely busy. Can anybody else take this?

dmuhamedagic avatar Nov 24 '15 15:11 dmuhamedagic