<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I don't know is this really works for this use case, but newer
Lustre versions have the possibility to create a write barrier,
which is normally part of the snapshot process. <br>
</p>
<p>Have a look at lctl barrier_freeze.</p>
On 5/14/19 5:25 PM, Mohr Jr, Richard Frank (Rick Mohr) wrote:<br>
<blockquote type="cite"
cite="mid:3F70EB35-430D-46C0-9FFB-B707834C91DA@utk.edu">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On May 13, 2019, at 6:51 PM, Fernando Pérez <a class="moz-txt-link-rfc2396E" href="mailto:fperez@icm.csic.es"><fperez@icm.csic.es></a> wrote:
Is there a way to stop file writes for all users or for groups without using quotes?
We have a lustre filesystem with corrupted quotes and I need to stop the write for all users (or for some users).
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
There are ways to deactivate OSTs, but those are intended to stop creation of new file objects on those OSTs and don’t actually stop writes to existing files. I don’t think that mounting OSTs read-only (with “mount -t lustre -o ro …”) works because Lustre updates some info when it mounts the target (but this might be based on old info so I could be wrong). You could remount all the clients read-only, but I don’t know if this is practical for you.
The only other option I can think of would be if there was a client-side parameter that could be set via “lctl conf_param” that might cause the clients to treat all the targets as read-only. But if there is such a parameter, I am not familiar with it.
--
Rick Mohr
Senior HPC System Administrator
National Institute for Computational Sciences
<a class="moz-txt-link-freetext" href="http://www.nics.tennessee.edu">http://www.nics.tennessee.edu</a>
_______________________________________________
lustre-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a>
</pre>
</blockquote>
<div class="moz-signature">-- <br>
<p style="color:#808080;font-size:smaller">
Dr. Robert Redl<br>
Scientific Programmer, "Waves to Weather" (SFB/TRR165)<br>
Meteorologisches Institut<br>
Ludwig-Maximilians-Universität München<br>
<br>
</p>
</div>
</body>
</html>