<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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">- you can re-run command to find files residing on ost to see if files are new or old.</p>
<p style="margin-top:0;margin-bottom:0">- zfs may have snapshots if you ever did snapshots; it takes space.</p>
<p style="margin-top:0;margin-bottom:0">- removing data or snapshots has some lag to release the blocks (tens of minutes) but I guess that is completed by now.</p>
<p style="margin-top:0;margin-bottom:0">- there are can be orphan objects on OST if you had crashes. On older lustre versions if the ost was emptied out you can mount underlying fs as ext4 or zfs; set mount to readonly and browse ost objects - you may see if
 there are some orphan objects left. On newer lustre releases you probably can run lfsck (lustre scanner).</p>
<p style="margin-top:0;margin-bottom:0">- to find what hosts / jobs currently writing to lustre you may enable lustre jobstats; clear counters and parse stats files in /proc . There was xltop tool on github for older versions of lustre not having implemented
 jobstats but it was not updated for a while.</p>
<p style="margin-top:0;margin-bottom:0">- depending on lustre version you have the implementation of lfs migrate is different. The older version copied file with other name to other ost, renamed files and removed old file. If migration done on file open for
 write by application the data will not be released until file closed (and data in new file are wrong). Recent implementation of migrate does swap of the file objects with file layout lock taken. I can not tell if it is safe for active write.</p>
<p style="margin-top:0;margin-bottom:0">- not releasing space can be a bug - did you check jira on whamcloud? <span style="font-size: 12pt;">What version of lustre do you have? Is it ldiskfs or zfs based? </span><span style="font-size: 12pt;">zfs version?</span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Alex.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<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> lustre-discuss <lustre-discuss-bounces@lists.lustre.org> on behalf of Jason Williams <jasonw@jhu.edu><br>
<b>Sent:</b> Wednesday, January 16, 2019 10:25 AM<br>
<b>To:</b> lustre-discuss@lists.lustre.org<br>
<b>Subject:</b> [lustre-discuss] Migrating files doesn't free space on the OST</font>
<div> </div>
</div>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">I am trying to migrate files I know are not in use off of the full OST that I have using lfs migrate.  I have verified up and down that the files I am moving are on that OST and that after the migrate lfs getstripe indeed
 shows they are no longer on that OST since it's disabled in the MDS.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">The problem is, the used space on the OST is not going down.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">I see one of at least two issues:</p>
<p style="margin-top:0; margin-bottom:0">- the OST is just not freeing the space for some reason or another ( I don't know)</p>
<p style="margin-top:0; margin-bottom:0">- Or someone is writing to existing files just as fast as I am clearing the data (possible, but kind of hard to find)</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Is there possibly something else I am missing? Also, does anyone know a good way to see if some client is writing to that OST and determine who it is if it's more probable that that is what is going on?</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<div id="x_Signature">
<div id="x_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"><span id="x_ms-rterangepaste-start"></span></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>
<span id="x_ms-rterangepaste-end"></span><br>
<p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>