How to set quota or limits on NFS share on the client?
Asked Answered
H

1

10

I am running Debian GNU/Linux 7 VM

mount.nfs version

mount.nfs: (linux nfs-utils 1.2.6)

I want to set quota on a NFS mount. The NFS server doesnt have quotas set. I installed quota, quotatool as per this wiki

enabled it using the below command

quotaon -avug

Then tried the nfs mount with quota option and it failed with the below error

mount -t nfs -o usrquota,grpquota nfs-server:/export/home/storage  /mnt/storage
mount.nfs: an incorrect mount option was specified

also tried running quotaon

quotaon /mnt/storage/
quotaon: Mountpoint (or device) /mnt/storage not found or has no quota enabled.

none of them seem to work.

Is it possible to set quota for NFS share on client side?

Heterochromosome answered 31/3, 2015 at 7:7 Comment(0)
C
4

As far as I know the quota must be set on the NFS server, that's why mount.nfs does not recognize the usrquota,grpquota options.

See also: https://serverfault.com/questions/644749/can-nfs-server-limit-the-amount-of-disk-space-that-the-nfs-client-can-use

Ceresin answered 15/2, 2019 at 11:22 Comment(1)
In my case, that isn't true. I upgraded an Oracle Linux NFS client to a newer version; the mount now fails due to rejecting the quota option, but unupgraded clienmts mount with that option just fine.Gnat

© 2022 - 2024 — McMap. All rights reserved.