Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check quota on the remote server instead of overall free inodes / space #555

Open
mlopezantequera opened this Issue Mar 17, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@mlopezantequera
Copy link

mlopezantequera commented Mar 17, 2016

In a shared remote server, the overall free space or inodes is not helpful if there is a quota system in place. It would be nice to be able to do this.

@Germar

This comment has been minimized.

Copy link
Member

Germar commented Mar 17, 2016

Sorry, but I've no idea how to check a quota. Is there any common command for checking?

@noMICROSOFTbuhtz

This comment has been minimized.

Copy link
Member

noMICROSOFTbuhtz commented Sep 17, 2016

I don't see a way, too. But I am not sure.

@mossroy

This comment has been minimized.

Copy link

mossroy commented Sep 18, 2016

I'm no expert on this topic, but the quota command-line should provide this info.
According to http://stackoverflow.com/questions/9781071/python-access-to-nfs-quota-information , some parameters (-wp) make the output more easy to interpret programmaticaly. For example :
quota -wp -f /path/to/directory

To understand what these numbers mean : http://serverfault.com/questions/94368/understanding-quota-output

@Germar

This comment has been minimized.

Copy link
Member

Germar commented Sep 18, 2016

Thanks @mossroy. But that doesn't work for BTRFS or XFS quota, does it?

@mossroy

This comment has been minimized.

Copy link

mossroy commented Sep 19, 2016

You're right. I only tested it on ext4.

For btrfs and xfs, there should be similar commands, I suppose : see https://serverfault.com/questions/797219/how-to-display-quota-limit-on-btrfs-subvolume for btrfs
For xfs, I'm wondering if the standard df command doesn't give the info (see http://oss.sgi.com/archives/xfs/2012-11/msg00479.html )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.