Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

nfs

nfsclient

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?

like image 618
Rajani Karuturi Avatar asked Mar 31 '15 07:03

Rajani Karuturi


People also ask

What is the command to mount NFS share on the client server?

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)

How do I set up NFS sharing on Windows 10?

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.


1 Answers

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

like image 148
rpet Avatar answered Oct 12 '22 03:10

rpet