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?
Mount the share using the following command, after making the required modifications: mount -o anon nfs.share.server.name:/share-name X: Replace nfs.share.server.name with the name of the server the NFS share is on (eg. files.umn.edu)
Create and Configure the Shared FolderRight-click on the new folder and select Properties. On the 'Properties' window, select the 'NFS Sharing' tab. Select the 'Manage NFS Sharing...' button. In the NFS Advanced Sharing widget, check the 'Share this folder' checkbox, then select Permissions.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With