<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Aptos",sans-serif;
        mso-ligatures:standardcontextual;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif"></span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif"></span></p>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We’re doing another file system migration. We’d like users to have read-only access to the existing filesystem during and then for a while after the final sync.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The 2 mechanisms we’re looking at are setting the MDTs read-only using “lctl set_param mdt.*.readonly=1” and remounting the filesystem on all the clients using “mount -o remount,ro”.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My impression is that in the case of setting the MDTs read-only, files already opened in write mode will still be writable. For remounting, if files are opened in write mode the remount will fail and complain that the file system is busy.
 Our current plan is to do the remounting of all clients because it’s easier to see if some user has some file open in write mode.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there a way to make the file system read-only that’s minimally disruptive to users but doesn’t have the potential problem of having to chase down every process writing to the filesystem?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal">Gian-Carlo DeFazio</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>