<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: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;" dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Thanks Christof,</p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;"><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;">we had left out &quot;gpfs&quot; from the</span></p>
<div>vfs objects =&nbsp;</div>
<div>line&nbsp;in&nbsp;<span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-size: 16px;">smb.conf</span></div>
<div><br>
</div>
<div>so setting</div>
<div><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-size: 16px;">vfs objects = gpfs (etc)</span><br>
</div>
<div>gpfs:hsm = yes</div>
<div>gpfs:recalls = yes&nbsp; (not &quot;no&quot; as I had originally, and is implied by the manual)</div>
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;" dir="ltr">
<br>
</div>
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;" dir="ltr">
and setting&nbsp;the offline flag&nbsp;on the file by migrating it, so that</div>
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;" dir="ltr">
<div># mmlsattr -L&nbsp; filename.jpg</div>
<div>...</div>
<div></div>
<div>Misc attributes:&nbsp; &nbsp; &nbsp; ARCHIVE OFFLINE</div>
</div>
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;" dir="ltr">
<br>
</div>
<p style="margin-top:0;margin-bottom:0"><span>now&nbsp;Explorer on&nbsp;Windows 7 and 10 do not recall the file while viewing the folder with &quot;Large icons&quot;</span></p>
<p style="margin-top:0;margin-bottom:0"><span>and&nbsp;a standard icon with an X is displayed.</span></p>
<p style="margin-top:0;margin-bottom:0"><span>But after the file is then opened<span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-size: 16px;">&nbsp;and<span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-size: 16px;">&nbsp;recalled,&nbsp;</span>the
 icon displays the&nbsp;</span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols; font-size: 16px;">thumbnail image</span> and the OFFLINE
 flag is&nbsp;lost.</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;">Also as you observed,&nbsp;Finder on&nbsp; MacOSX&nbsp;10.13 ignores the file's offline flag,</span></p>
<p style="margin-top:0;margin-bottom:0"><span style="font-size: 12pt;">so we still risk a recall storm caused by them.</span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">All the best,</p>
<p style="margin-top:0;margin-bottom:0">Cameron</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
</div>
<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> gpfsug-discuss-bounces@spectrumscale.org &lt;gpfsug-discuss-bounces@spectrumscale.org&gt; on behalf of Christof Schmitt &lt;christof.schmitt@us.ibm.com&gt;<br>
<b>Sent:</b> 03 July 2018 20:37:08<br>
<b>To:</b> gpfsug-discuss@spectrumscale.org<br>
<b>Cc:</b> gpfsug-discuss@spectrumscale.org<br>
<b>Subject:</b> Re: [gpfsug-discuss] preventing HSM tape recall storms</font>
<div>&nbsp;</div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<div class="x_socmaildefaultfont" dir="ltr" style="font-family:Arial,Helvetica,sans-serif; font-size:9pt">
<div dir="ltr">
<div>&gt; HSM over LTFS-EE runs the risk of a recall storm if files which have been migrated to tape<br>
&gt; are then shared by Samba to Macs and PCs.<br>
&gt; MacOS Finder and Windows Explorer will want to display all the thumbnail images of a<br>
&gt; folder's contents, which will recall lots of files from tape.</div>
<div>&nbsp;</div>
<div>SMB clients can query file information, including the OFFLINE<br>
flag. With Spectrum Scale and the &quot;gpfs&quot; module loaded in Samba that<br>
is mapped from the the OFFLINE flag that is visible in &quot;mmlsattr<br>
-L&quot;. In those systems, the SMB client can determine that a file is<br>
offline.</div>
<div>&nbsp;</div>
<div>In our experience this is handled correctly in Windows Explorer; when<br>
an &quot;offline&quot; file is encountered, no preview is generated from the<br>
file data. The Finder on Mac clients does not seem to honor the<br>
OFFLINE flag, thus the main problems are typically recall storms<br>
caused by Mac clients.</div>
<div>&nbsp;</div>
<div>&gt; According to the Samba documentation this is preventable by setting the following<br>
&gt; ----------------------------------------------<br>
&gt; <a href="https://www.samba.org/samba/docs/current/man-html/vfs_gpfs.8.html">https://www.samba.org/samba/docs/current/man-html/vfs_gpfs.8.html</a><br>
&gt;<br>
&gt; gpfs:recalls = [ yes | no ]<br>
&gt; When this option is set to no, an attempt to open an offline file<br>
&gt; will be rejected with access denied.<br>
&gt; This helps preventing recall storms triggered by careless applications like Finder and Explorer.<br>
&gt;<br>
&gt; yes(default) - Open files that are offline. This will recall the files from HSM.<br>
&gt; no - Reject access to offline files with access denied. This will prevent recalls of files from HSM.<br>
&gt; Using this setting also requires gpfs:hsm to be set to yes.<br>
&gt;<br>
&gt; gpfs:hsm = [ yes | no ]<br>
&gt; Enable/Disable announcing if this FS has HSM enabled.<br>
&gt; no(default) - Do not announce HSM.<br>
&gt; yes - Announce HSM.<br>
&gt; --------------------------------------------------<br>
&gt;<br>
&gt; However we could not get this to work.<br>
&gt;<br>
&gt; On Centos7/Samba4.5, smb.conf contained<br>
&gt; gpfs:hsm = yes<br>
&gt; gpfs:recalls = no<br>
&gt; (also tried setting gpfs:offline = yes, though this is not documented)</div>
<div>&nbsp;</div>
<div>These options apply to the &quot;gpfs&quot; module in Samba. The Samba version<br>
you are using needs to be built with GPFS support and the &quot;gpfs&quot;<br>
module needs to be loaded through the &quot;vfs objects&quot; configuration. As<br>
Centos7/Samba4.5 is mentioned, would guess that the CentOS provided<br>
Samba version is used, which is probably not compiled with GPFS<br>
support.</div>
<div>&nbsp;</div>
<div>From IBM we would recommend to use CES for protocol services, which<br>
also provides Samba for SMB. The Samba provided through CES is<br>
configured so that the gpfs:recalls option can be used:</div>
<div>&nbsp;</div>
<div><a href="https://www.ibm.com/support/knowledgecenter/en/STXKQY_4.2.3/com.ibm.spectrum.scale.v4r23.doc/bl1adm_mmsmb.htm">https://www.ibm.com/support/knowledgecenter/en/STXKQY_4.2.3/com.ibm.spectrum.scale.v4r23.doc/bl1adm_mmsmb.htm</a></div>
<div>&nbsp;</div>
<div>gpfs:recalls<br>
&nbsp;&nbsp;&nbsp; If the value is set as yes files that have been migrated from disk<br>
&nbsp;&nbsp;&nbsp; will be recalled on access. By default, this is enabled. If<br>
&nbsp;&nbsp;&nbsp; recalls = no files will not be recalled on access and the client<br>
&nbsp;&nbsp;&nbsp; will receive ACCESS_DENIED message.</div>
<div>&nbsp;</div>
<div>&gt; We made a share containing image files that were then migrated to tape by LTFS-EE,<br>
&gt; to see if these flags were respected by OS X Finder or Windows Explorer.<br>
&gt;<br>
&gt; Neither Mac OS X (using SMB3) or Windows 7 (using SMB2) respected the settings,<br>
&gt; so that when browsing the stubs in the share, the files were recalled from tape<br>
&gt; and the thumbnails displayed.<br>
&gt;<br>
&gt; Has anyone seen these flags working as they are supposed to ?</div>
<div>&nbsp;</div>
<div>Yes, they are working, as we use them in our Samba build. Debugging<br>
this would require looking at the Samba configuration and possibly<br>
collecting a trace. If my above assumption was wrong and this problem<br>
occurs with the CES Samba (gpfs.smb), please open a PMR for debugging<br>
this issue. If this is not the CES Samba, please contact the provider<br>
of the Samba package for additional support.</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>&nbsp;</div>
<div>Christof</div>
</div>
<div dir="ltr">
<div class="x_socmaildefaultfont" dir="ltr" style="font-family:Arial,Helvetica,sans-serif; font-size:10.5pt">
<div class="x_socmaildefaultfont" dir="ltr" style="font-family:Arial; font-size:10.5pt">
<div dir="ltr"><br>
<span style="font-size:0.857em"><span style="font-family:Verdana,Geneva,sans-serif">Christof Schmitt || IBM || Spectrum Scale Development || Tucson, AZ<br>
christof.schmitt@us.ibm.com&nbsp; ||&nbsp; &#43;1-520-799-2469&nbsp;&nbsp;&nbsp; (T/L: 321-2469)</span></span></div>
</div>
</div>
</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">&nbsp;</div>
<blockquote dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px">
----- Original message -----<br>
From: Cameron Dunn &lt;Cameron.Dunn@bristol.ac.uk&gt;<br>
Sent by: gpfsug-discuss-bounces@spectrumscale.org<br>
To: &quot;gpfsug-discuss@spectrumscale.org&quot; &lt;gpfsug-discuss@spectrumscale.org&gt;<br>
Cc:<br>
Subject: [gpfsug-discuss] preventing HSM tape recall storms<br>
Date: Tue, Jul 3, 2018 6:22 AM<br>
&nbsp;<br>
<div dir="ltr" id="x_divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;">
<p style="margin-top:0; margin-bottom:0">&nbsp;</p>
<div>HSM over LTFS-EE runs the risk of a recall storm if files which have been migrated to tape&nbsp;</div>
<div>are then shared by Samba to Macs and PCs.&nbsp;</div>
<div>MacOS Finder and Windows Explorer will want<span style="font-size:12pt">&nbsp;to display all the&nbsp;</span><span style="font-size:12pt">thumbnail images of a&nbsp;</span></div>
<div><span style="font-size:12pt">folder's contents,&nbsp;</span>which&nbsp;will recall lots of files from tape.</div>
<div>&nbsp;</div>
<div>According to the Samba documentation this is preventable by setting the following&nbsp;</div>
<div>----------------------------------------------</div>
<div>https://www.samba.org/samba/docs/current/man-html/vfs_gpfs.8.html</div>
<div>&nbsp;</div>
<div>gpfs:recalls = [ yes | no ]</div>
<div>When this option is set to no, an attempt to open an offline file&nbsp;</div>
<div>will be rejected with access denied.&nbsp;</div>
<div>This helps preventing recall storms triggered by careless applications like Finder and Explorer.</div>
<div>&nbsp;</div>
<div>yes(default) - Open files that are offline. This will recall the files from HSM.</div>
<div>no - Reject access to offline files with access denied. This will prevent recalls of files from HSM.&nbsp;</div>
<div>Using this setting also requires gpfs:hsm to be set to yes.</div>
<div>&nbsp;</div>
<div>gpfs:hsm = [ yes | no ]</div>
<div>Enable/Disable announcing if this FS has HSM enabled.</div>
<div>no(default) - Do not announce HSM.</div>
<div>yes - Announce HSM.</div>
<div>--------------------------------------------------</div>
<div>&nbsp;</div>
<div>However we could not get this to work.</div>
<div>&nbsp;</div>
<div>On Centos7/Samba4.5,&nbsp;smb.conf contained</div>
<div>
<div>gpfs:hsm = yes</div>
<div>gpfs:recalls = no</div>
<div><span style="font-size:12pt">(also tried&nbsp;setting&nbsp;</span><span style="font-size:12pt">gpfs:offline = yes, though this is not documented)</span></div>
<div>&nbsp;</div>
</div>
<div>We made a share containing image&nbsp;files that were then migrated to tape by LTFS-EE,&nbsp;</div>
<div>to see if these&nbsp;flags were respected by OS X Finder or Windows Explorer.</div>
<div>&nbsp;</div>
<div>Neither Mac OS X (using SMB3) or Windows 7 (using SMB2) respected the settings,</div>
<div>so that when browsing the stubs in the share, the files were recalled from tape</div>
<div>and the thumbnails displayed.</div>
<div>&nbsp;</div>
<div>Has anyone seen these flags working as they are supposed to ?</div>
<p>&nbsp;</p>
<p style="margin-top:0; margin-bottom:0">Many thanks for any ideas,</p>
<p style="margin-top:0; margin-bottom:0">Cameron</p>
<p style="margin-top:0; margin-bottom:0">&nbsp;</p>
<div id="x_Signature">
<div dir="ltr" id="x_divtagdefaultwrapper" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols">
<div dir="ltr">
<div>Cameron Dunn<br>
Advanced Computing Systems Administrator</div>
Advanced Computing Research Centre</div>
<div dir="ltr">University of Bristol</div>
</div>
</div>
</div>
<div><font size="2" face="Default Monospace,Courier New,Courier,monospace">_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at spectrumscale.org<br>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a></font></div>
</blockquote>
<div dir="ltr">&nbsp;</div>
</div>
<br>
</div>
</div>
</body>
</html>