Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

NFS export settings

Hello,

I created an NFS export, but I didn't find where to specify it's size. Shall I assume that it can grow to use all available space in the cluster ? Or there is a default size limit ? Can I define a size limit ?

A second question would have been where to input client addresses, but I just read this will be a new feature in ver. 2.7 🙂

Thanks and bye. Ste

The export is only limited by the data pool size of the cephfs layout in which the export resides. So you may try to created a pool limited in size and assign it to a cephfs layout and select the layout when creating the share. Maybe in the future we may add more restrictions.

Yes 2.7 we are supporting client address filters for export access.

Hey Ste,

You may find some success by using CephFS quotas. I have had success having clients honoring quotas set, and it does show up the correct size for the client based on the quotas you set.

To set the quota, SSH into one of your petasan nodes that is handling NFS. To set quotas based on total bytes use this syntax:

setfattr -n ceph.quota.max_bytes -v <byte_amt> /some/path

where /some/path equals your NFS share mount point.

If this worked, when mounting your share on the client when you run a df, the quota should be observed.

You can also check on your quotas with the following syntax:

getfattr -n ceph.quota.max_bytes /some/path

good luck!

 

Great, it worked !

Thanks. 🙂

Glad to hear it!