Unfortunately, this is not possible today, though I don't think it would be too 
hard for someone to implement this by copying "enable_remote_dir_gid" and 
similar checks on the MDS.

In Lustre 2.14 and later, it is possible to set an OST pool quota that can 
restrict users from creating too many files in a pool.  This doesn't directly 
prevent them from setting the pool on a directory (though I guess this _could_ 
be checked), but they would get an EDQUOT error when trying to create in that 
directory, and quickly tire of trying to use it.

Cheers, Andreas

On Nov 4, 2022, at 05:57, Passerini Marco 
<[email protected]<mailto:[email protected]>> wrote:

Hi,

Is there a way in Lustre to restrict who can assign OST pools to directories? 
In specific, can we limit the following command so that it can be run by root 
only?

lfs setstripe --pool myfs.mypool test_dir

I would need something similar to what can be done for remote directories:
lctl set_param mdt.*.enable_remote_dir_gid=1

Regards,
Marco Passerini

Cheers, Andreas
--
Andreas Dilger
Lustre Principal Architect
Whamcloud







_______________________________________________
lustre-discuss mailing list
[email protected]
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

Reply via email to