<div dir="ltr">Hello,<div>after discussion with Marc A Kaplan from IBM I finished with this solution. So I am sharing it with all other user just in case you need it in future.</div><div><br></div><div>Example placement policy file:</div>
<div><br></div><div><div><font face="courier new, monospace">/* --- Enable .avi so it will not be denied by default --- */</font></div><div><font face="courier new, monospace">RULE &#39;enable_avi&#39; SET POOL &#39;data&#39; FOR FILESET (nfsexport) WHERE RegEx(lower(name),[&#39;\.avi$&#39;])</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">/* --- Deny all following extensions --- */</font></div><div><font face="courier new, monospace">RULE &#39;deny_files&#39; SET POOL &#39;system&#39; FOR FILESET (nfsexport) WHERE RegEx(lower(name),[&#39;\.avi$|\.mp[ae1234]$|\.mpe?g[23]?$|\.eml$|\.idx$|\.mbo?x$|\.msg$|\.ost$|\.otf$|\.pab$|\.pst$|\.aac$|\.aif*$|\.as[fx]$|\.au$|\.flac$|\.m3u$|\.midi?$|\.mov$|\.ogg$|\.qtw?$|\.ram$|\.rmi?$|\.rmvb$|\.snd$|\.swf$|\.vob$|\.wa[vx]$|\.wm[av]$|\.wvx$|\.bmp$|\.dib$|\.eps$|\.gif$|\.img$|\.jfif$|\.jpe?g?$|\.pcx$|\.png$|\.psd?$|\.raw$|\.if$|\.spiff$|\.tif*$&#39;])</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">/* --- Enable every other file extensions --- */</font></div><div><font face="courier new, monospace">RULE &#39;DEFAULT&#39; SET POOL &#39;data&#39;</font></div>
</div><div><br></div><div>Bye, Pavel<br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span style="border-collapse:collapse"><font style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:13px;font-weight:bold"><span style="font-size:small"><div>
--</div><div><font style="font-size:13px"><span style="font-size:small">Ing. Pavel Pokornę</span></font></div><div><font face="arial, sans-serif" style="font-weight:normal"><font color="#333333">DATERA s.r.o. </font></font><span style="font-size:13px;font-weight:normal"><span style="color:rgb(255,0,0)">|</span> </span><font face="arial, sans-serif" style="font-weight:normal"><font color="#333333">Ovocnę trh 580/2</font></font><font face="arial, sans-serif" style="font-weight:normal"><font color="#333333"> </font></font><span style="font-size:13px;font-weight:normal"><span style="color:rgb(255,0,0)">|</span> Praha</span><font face="arial, sans-serif" style="font-weight:normal"><font color="#333333"> </font></font><span style="font-size:13px;font-weight:normal;color:rgb(255,0,0)">|</span><font face="arial, sans-serif" style="font-weight:normal"> Czech Republic</font></div>
</span></font></span><div><span style="border-collapse:collapse"><font face="arial, sans-serif" style="color:rgb(51,51,51);font-family:arial,sans-serif"><a href="http://www.datera.cz" target="_blank">www.datera.cz</a> </font><span style="color:rgb(255,0,0);font-family:arial,sans-serif;font-size:13px">|</span><font face="arial, sans-serif" style="color:rgb(51,51,51);font-family:arial,sans-serif"> Mobil: </font><a value="+420602357194" style="color:rgb(51,51,51);font-family:arial,sans-serif;font-size:13px">+420 602 357 194</a><font face="arial, sans-serif" style="color:rgb(51,51,51);font-family:arial,sans-serif"> </font><span style="color:rgb(255,0,0);font-family:arial,sans-serif;font-size:13px">|</span><font face="arial, sans-serif" style="color:rgb(51,51,51);font-family:arial,sans-serif"> E-mail: </font><a href="mailto:pavel.pokorny@datera.cz" style="color:rgb(28,81,168);font-family:arial,sans-serif;font-size:13px" target="_blank">pavel.pokorny@datera.cz</a></span><span style="color:rgb(51,51,51);font-family:arial,sans-serif"> </span></div>
<div><span style="color:rgb(51,51,51);font-family:arial,sans-serif"><img src="http://ide.datera.cz/logo-datera.jpg"><br></span></div></div></div>
<br><br><div class="gmail_quote">On Sat, May 10, 2014 at 7:00 PM,  <span dir="ltr">&lt;<a href="mailto:gpfsug-discuss-request@gpfsug.org" target="_blank">gpfsug-discuss-request@gpfsug.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send gpfsug-discuss mailing list submissions to<br>
        <a href="mailto:gpfsug-discuss@gpfsug.org">gpfsug-discuss@gpfsug.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:gpfsug-discuss-request@gpfsug.org">gpfsug-discuss-request@gpfsug.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:gpfsug-discuss-owner@gpfsug.org">gpfsug-discuss-owner@gpfsug.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of gpfsug-discuss digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: GPFS Placement rules - group file extension?<br>
      (Jonathan Buzzard)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 09 May 2014 14:21:58 +0100<br>
From: Jonathan Buzzard &lt;<a href="mailto:jonathan@buzzard.me.uk">jonathan@buzzard.me.uk</a>&gt;<br>
To: <a href="mailto:gpfsug-discuss@gpfsug.org">gpfsug-discuss@gpfsug.org</a><br>
Subject: Re: [gpfsug-discuss] GPFS Placement rules - group file<br>
        extension?<br>
Message-ID: &lt;<a href="mailto:1399641718.19065.22.camel@buzzard.phy.strath.ac.uk">1399641718.19065.22.camel@buzzard.phy.strath.ac.uk</a>&gt;<br>
Content-Type: text/plain; charset=&quot;UTF-8&quot;<br>
<br>
On Fri, 2014-05-09 at 17:15 +0800, Pavel Pokorny wrote:<br>
&gt; Hello,<br>
&gt; our customer would like to deny some of the file extensions<br>
&gt; (.mp3, .avi, ...) to be stored on GPFS FS. Is there any way to deny<br>
&gt; some of the extensions?<br>
&gt; Right now we only find the solution to make a placement rule that<br>
&gt; directs the files to metadataonly storage pool.<br>
&gt;<br>
<br>
Create a really small storage pool and fill it in advance.<br>
<br>
&gt;<br>
&gt; This leads me to second question. Is there any easy way to make a<br>
&gt; group of extension (some type of templates) for placement rules?<br>
&gt; Because there is a lot of extensions, customer would like to deny, and<br>
&gt; the placement rules files start to grow :-(.<br>
<br>
Note if you deny extensions out right you are more likely to force users<br>
to come up with work arounds. The simple expediency of changing the file<br>
extension for example will lead you to a game of whack-a-mole.<br>
<br>
Better to given them really rubbish performance and don&#39;t talk about it.<br>
The chances are this is less of a business cost than dealing with the<br>
outright banning, especially when there turns out to be some legitimate<br>
business reason for having multimedia stuff, if even only occasionally.<br>
<br>
So a RAID1 of a couple of large nearline SAS disks for all MP3 etc.<br>
files. Performance will suck, but the users probably won&#39;t realize what<br>
is going on, and are unlikely to come to support asking why their itunes<br>
collection is really slow. That said if you are doing ILM with a<br>
nearline pool holding most of the storage, it is likely to be near idle<br>
most of the time so just force all multimedia stuff to your nearline<br>
pool is adequate.<br>
<br>
JAB.<br>
<br>
--<br>
Jonathan A. Buzzard                 Email: jonathan (at) <a href="http://buzzard.me.uk" target="_blank">buzzard.me.uk</a><br>
Fife, United Kingdom.<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at <a href="http://gpfsug.org" target="_blank">gpfsug.org</a><br>
<a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank">http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a><br>
<br>
<br>
End of gpfsug-discuss Digest, Vol 28, Issue 6<br>
*********************************************<br>
</blockquote></div><br></div>