resource-agents
resource-agents copied to clipboard
ocf:heartbeat:Filesytem - add quotaon/quotaoff support
This adds support to ocf:heartbeat:Filesystem to run quotaon at mount time, and quotaoff before unmount.
I like how you did this: do sane things using mount options, unless the administrator turns off automatic "do the right thing" mode. :)
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.
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.
Any news here? It'd be pity that this doesn't get merged.
Sorry, I just haven't had a chance to pick this up again properly. I haven't forgotten about it.
@bootc, still busy?
Looks like @bootc is indefinitely busy. Can anybody else take this?