<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">As I have gone through the testing, I think you may be right.  I think I disabled the OST in a slightly different way and that caused issues.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Do you happen to know where I could find out a bit more about what the <span>"lctl set_param osp.<osc_name>.max_create_count=0” command would do?</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p style="margin-top:0; margin-bottom:0"></p>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt">--</span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt">Jason Williams</span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt">Assistant Director</span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt">Systems and Data Center Operations.<br>
Maryland Advanced Research Computing Center (MARCC)<br>
Johns Hopkins University</span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><a href="mailto:jasonw@jhu.edu" target="_blank" rel="noopener noreferrer" id="LPNoLP"><font color="#0563C1">jasonw@jhu.edu</font></a></span></font></div>
<br>
<p></p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mohr Jr, Richard Frank (Rick Mohr) <rmohr@utk.edu><br>
<b>Sent:</b> Monday, January 7, 2019 12:35 PM<br>
<b>To:</b> Jason Williams<br>
<b>Cc:</b> lustre-discuss@lists.lustre.org<br>
<b>Subject:</b> Re: [lustre-discuss] Full OST, any way of avoiding it without hanging?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
<br>
Jason,<br>
<br>
The results you described sound like the correct behavior when you deactivate an OST on the MDS.  When you run “lctl —device <N> deactivate”, you are essentially telling the MDS to ignore that OST when it assigns stripes to a new file.  The OST will still be
 visible to all clients and the MDS, which allows the clients to keep reading files from that OST and allows you to delete files from the OST.  The only down side is that any file that already exists on that OST can still be written to.  Deactivating an OST
 is intended to stop the flow of new data to that OST while you work on removing some of the existing data, but it doesn’t actually make the OST read-only.  I think you can get the same effect from Lustre 2.9 (or newer) by using "lctl set_param osp.<osc_name>.max_create_count=0”.<br>
<br>
I suspect that what you originally did was to deactivate the OST using something like "lctl conf_param <ost_name>.osc.active=0”.  This will notify all Lustre clients to deactivate the OST, which I believe causes the hangs you were seeing when any client tries
 to remove or stat a file on that OST.<br>
<br>
--<br>
Rick Mohr<br>
Senior HPC System Administrator<br>
National Institute for Computational Sciences<br>
<a href="http://www.nics.tennessee.edu" id="LPlnk822865" class="OWAAutoLink" previewremoved="true">http://www.nics.tennessee.edu</a><br>
<br>
<br>
> On Jan 7, 2019, at 11:56 AM, Jason Williams <jasonw@jhu.edu> wrote:<br>
> <br>
> Sorry for the spam, but here are a few more interesting results:<br>
> <br>
> If I create a file that stripes only on the full OST, and then disable the OST, I get the following:<br>
> <br>
>        • I can over write the file within it's original size and it takes up space on the "disabled" OST.<br>
>        • I can zero the file.<br>
>        • I can write more data to the file than it originally had, ie. the original file before disabling the OST was 1G, I can overwrite the file with > 1G with the OST disabled.<br>
>        • If I create a new file asking for that OST with the OST disabled, I get a different OST
<br>
> <br>
> <br>
> # 4 and #2 are the only expected behavior.  I'm not sure what the behavior should be in the case of #1 and #3.<br>
> <br>
> <br>
> --<br>
> Jason Williams<br>
> Assistant Director<br>
> Systems and Data Center Operations.<br>
> Maryland Advanced Research Computing Center (MARCC)<br>
> Johns Hopkins University<br>
> jasonw@jhu.edu<br>
> <br>
> <br>
> From: lustre-discuss <lustre-discuss-bounces@lists.lustre.org> on behalf of Jason Williams <jasonw@jhu.edu><br>
> Sent: Monday, January 7, 2019 11:47:09 AM<br>
> To: Mohr Jr, Richard Frank (Rick Mohr)<br>
> Cc: lustre-discuss@lists.lustre.org<br>
> Subject: Re: [lustre-discuss] Full OST, any way of avoiding it without hanging?<br>
>  <br>
> So I found this: <a href="http://wiki.lustre.org/Handling_Full_OSTs" id="LPlnk8017" class="OWAAutoLink" previewremoved="true">
http://wiki.lustre.org/Handling_Full_OSTs</a> which is what I thought I had followed before but ran into hang issues.  I did some quick testing with this and found that:<br>
> <br>
> 1. if I deactivate the OST in the MDS, no new files appear to be created on that OST (expected behavior) and no hangs.<br>
> 2. If I first create a file on the OST with it activated, then deactivate the OST, and OVERWRITE a file what was spanned on that OST, the indexes stay the same and the file successfully overwrites (the file spanned 4 OSTs, so perhaps a little more testing
 with a single OST in the index is necessary) <br>
> 3. Deactivating the OST shows it as inactive in the MDS but UP in the Client. (not expected.)<br>
> 4. I am able to delete a file that spans that OST with the OST deactivated, no hang.<br>
> <br>
> I think the only thing here that concerns me a bit is #2.<br>
> <br>
> --<br>
> Jason Williams<br>
> Assistant Director<br>
> Systems and Data Center Operations.<br>
> Maryland Advanced Research Computing Center (MARCC)<br>
> Johns Hopkins University<br>
> jasonw@jhu.edu<br>
> <br>
> <br>
> From: lustre-discuss <lustre-discuss-bounces@lists.lustre.org> on behalf of Jason Williams <jasonw@jhu.edu><br>
> Sent: Sunday, January 6, 2019 5:22:16 PM<br>
> To: Mohr Jr, Richard Frank (Rick Mohr)<br>
> Cc: lustre-discuss@lists.lustre.org<br>
> Subject: Re: [lustre-discuss] Full OST, any way of avoiding it without hanging?<br>
>  <br>
> Hi Rick, <br>
> I thought what I had done was disable it on the MDS, but perhaps I was following the wrong instructions. Do you know where the best instructions for what you are describing can be found? I would be willing to try again.<br>
> <br>
> —<br>
> Sent you tersely from my phone<br>
> Jason Williams<br>
> From: Mohr Jr, Richard Frank (Rick Mohr) <rmohr@utk.edu><br>
> Sent: Sunday, January 6, 2019 4:56 PM<br>
> To: Jason Williams<br>
> Cc: lustre-discuss@lists.lustre.org<br>
> Subject: Re: [lustre-discuss] Full OST, any way of avoiding it without hanging?<br>
>  <br>
> <br>
> <br>
> > On Jan 5, 2019, at 9:49 PM, Jason Williams <jasonw@jhu.edu> wrote:<br>
> > <br>
> > I have looked around the internet and found you can disable an OST, but when I have tried that, any writes (including deletes) to the OST hang the clients indefinitely. Does anyone know a way to make an OST basically "read-only" with the exception of deletes
 so we can work to clear out the OST? <br>
> <br>
> What command did you use to disable the OST?<br>
> <br>
> There is a way to disable the OST on all the clients, but there is also a way to deactivate it on the MDS. The latter method should prevent the MDS from allocating any new files to the OST, but still allow clients to read and delete files on that OST.<br>
> <br>
> --<br>
> Rick Mohr<br>
> Senior HPC System Administrator<br>
> National Institute for Computational Sciences<br>
> <a href="http://www.nics.tennessee.edu" id="LPlnk430378" class="OWAAutoLink" previewremoved="true">
http://www.nics.tennessee.edu</a><br>
> <br>
> <br>
<br>
<br>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>