[英]How to set quota or limits on NFS share on the client?
我正在運行Debian GNU / Linux 7 VM
mount.nfs版本
mount.nfs: (linux nfs-utils 1.2.6)
我想在NFS掛載上設置配額。 NFS服務器沒有設置配額。 我根據這個wiki安裝了配額,quotatool
使用以下命令啟用它
quotaon -avug
然后嘗試使用配額選項的nfs mount,它失敗並出現以下錯誤
mount -t nfs -o usrquota,grpquota nfs-server:/export/home/storage /mnt/storage
mount.nfs: an incorrect mount option was specified
還試過運行quotaon
quotaon /mnt/storage/
quotaon: Mountpoint (or device) /mnt/storage not found or has no quota enabled.
他們似乎都沒有工作。
是否可以在客戶端設置NFS共享的配額?
據我所知,必須在NFS服務器上設置配額,這就是mount.nfs
無法識別usrquota,grpquota
選項的原因。
另請參閱: https : //serverfault.com/questions/644749/can-nfs-server-limit-the-amount-of-disk-space-that-the-nfs-client-can-use
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.