<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 'enable_avi' SET POOL 'data' FOR FILESET (nfsexport) WHERE RegEx(lower(name),['\.avi$'])</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 'deny_files' SET POOL 'system' FOR FILESET (nfsexport) WHERE RegEx(lower(name),['\.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*$'])</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 'DEFAULT' SET POOL 'data'</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"><<a href="mailto:gpfsug-discuss-request@gpfsug.org" target="_blank">gpfsug-discuss-request@gpfsug.org</a>></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 'help' 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 "Re: Contents of gpfsug-discuss digest..."<br>
<br>
<br>
Today'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 <<a href="mailto:jonathan@buzzard.me.uk">jonathan@buzzard.me.uk</a>><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: <<a href="mailto:1399641718.19065.22.camel@buzzard.phy.strath.ac.uk">1399641718.19065.22.camel@buzzard.phy.strath.ac.uk</a>><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
On Fri, 2014-05-09 at 17:15 +0800, Pavel Pokorny wrote:<br>
> Hello,<br>
> our customer would like to deny some of the file extensions<br>
> (.mp3, .avi, ...) to be stored on GPFS FS. Is there any way to deny<br>
> some of the extensions?<br>
> Right now we only find the solution to make a placement rule that<br>
> directs the files to metadataonly storage pool.<br>
><br>
<br>
Create a really small storage pool and fill it in advance.<br>
<br>
><br>
> This leads me to second question. Is there any easy way to make a<br>
> group of extension (some type of templates) for placement rules?<br>
> Because there is a lot of extensions, customer would like to deny, and<br>
> 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'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'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>