<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>&gt;<font size="2"><span style="font-size:10pt">so that it becomes difficult(not impossible though) for users<br>
to use :). Users don't have access to MDS to get the entire lists of<br>
pools defined.</span></font></p>
<p><br>
</p>
<p>Users can see what pools have been assigned to existing directories with &quot;lfs getstripe&quot; though.. so it's it's not very secure!</p>
<p><br>
</p>
<p>Regards,<br>
</p>
<p>Marco Passerini<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Raj &lt;rajgautam@gmail.com&gt;<br>
<b>Sent:</b> Monday, November 7, 2022 6:23:48 PM<br>
<b>To:</b> Andreas Dilger<br>
<b>Cc:</b> Passerini Marco; lustre-discuss@lists.lustre.org<br>
<b>Subject:</b> Re: [lustre-discuss] Restrict who can assign OST pools to directories</font>
<div>&nbsp;</div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Marco, One other idea is to give an unfriendly pool name that users<br>
can't guess. Like &quot;myfs.mkpilaxluia&quot;&nbsp; instead of myfs.flash or<br>
myfs.ssd so that it becomes difficult(not impossible though) for users<br>
to use :). Users don't have access to MDS to get the entire lists of<br>
pools defined.<br>
Thanks,<br>
Raj<br>
<br>
On Mon, Nov 7, 2022 at 4:28 AM Andreas Dilger via lustre-discuss<br>
&lt;lustre-discuss@lists.lustre.org&gt; wrote:<br>
&gt;<br>
&gt; Unfortunately, this is not possible today, though I don't think it would be too hard for someone to implement this by copying &quot;enable_remote_dir_gid&quot; and similar checks on the MDS.<br>
&gt;<br>
&gt; 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.&nbsp; 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.<br>
&gt;<br>
&gt; Cheers, Andreas<br>
&gt;<br>
&gt; On Nov 4, 2022, at 05:57, Passerini Marco &lt;marco.passerini@cscs.ch&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; 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?<br>
&gt;<br>
&gt; lfs setstripe --pool myfs.mypool test_dir<br>
&gt;<br>
&gt; I would need something similar to what can be done for remote directories:<br>
&gt; lctl set_param mdt.*.enable_remote_dir_gid=1<br>
&gt;<br>
&gt; Regards,<br>
&gt; Marco Passerini<br>
&gt;<br>
&gt;<br>
&gt; Cheers, Andreas<br>
&gt; --<br>
&gt; Andreas Dilger<br>
&gt; Lustre Principal Architect<br>
&gt; Whamcloud<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; lustre-discuss mailing list<br>
&gt; lustre-discuss@lists.lustre.org<br>
&gt; <a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a><br>
</div>
</span></font>
</body>
</html>