Re: [gpfsug-discuss] gpfsug-discuss Digest, Vol 28, Issue 6
Hello, 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. Example placement policy file: /* --- Enable .avi so it will not be denied by default --- */ RULE 'enable_avi' SET POOL 'data' FOR FILESET (nfsexport) WHERE RegEx(lower(name),['\.avi$']) /* --- Deny all following extensions --- */ 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*$']) /* --- Enable every other file extensions --- */ RULE 'DEFAULT' SET POOL 'data' Bye, Pavel -- Ing. Pavel Pokorný DATERA s.r.o. | Ovocný trh 580/2 | Praha | Czech Republic www.datera.cz | Mobil: +420 602 357 194 | E-mail: pavel.pokorny@datera.cz On Sat, May 10, 2014 at 7:00 PM, <gpfsug-discuss-request@gpfsug.org> wrote:
Send gpfsug-discuss mailing list submissions to gpfsug-discuss@gpfsug.org
To subscribe or unsubscribe via the World Wide Web, visit http://gpfsug.org/mailman/listinfo/gpfsug-discuss or, via email, send a message with subject or body 'help' to gpfsug-discuss-request@gpfsug.org
You can reach the person managing the list at gpfsug-discuss-owner@gpfsug.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of gpfsug-discuss digest..."
Today's Topics:
1. Re: GPFS Placement rules - group file extension? (Jonathan Buzzard)
----------------------------------------------------------------------
Message: 1 Date: Fri, 09 May 2014 14:21:58 +0100 From: Jonathan Buzzard <jonathan@buzzard.me.uk> To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] GPFS Placement rules - group file extension? Message-ID: <1399641718.19065.22.camel@buzzard.phy.strath.ac.uk> Content-Type: text/plain; charset="UTF-8"
On Fri, 2014-05-09 at 17:15 +0800, Pavel Pokorny wrote:
Hello, our customer would like to deny some of the file extensions (.mp3, .avi, ...) to be stored on GPFS FS. Is there any way to deny some of the extensions? Right now we only find the solution to make a placement rule that directs the files to metadataonly storage pool.
Create a really small storage pool and fill it in advance.
This leads me to second question. Is there any easy way to make a group of extension (some type of templates) for placement rules? Because there is a lot of extensions, customer would like to deny, and the placement rules files start to grow :-(.
Note if you deny extensions out right you are more likely to force users to come up with work arounds. The simple expediency of changing the file extension for example will lead you to a game of whack-a-mole.
Better to given them really rubbish performance and don't talk about it. The chances are this is less of a business cost than dealing with the outright banning, especially when there turns out to be some legitimate business reason for having multimedia stuff, if even only occasionally.
So a RAID1 of a couple of large nearline SAS disks for all MP3 etc. files. Performance will suck, but the users probably won't realize what is going on, and are unlikely to come to support asking why their itunes collection is really slow. That said if you are doing ILM with a nearline pool holding most of the storage, it is likely to be near idle most of the time so just force all multimedia stuff to your nearline pool is adequate.
JAB.
-- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
------------------------------
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
End of gpfsug-discuss Digest, Vol 28, Issue 6 *********************************************
On Mon, 2014-05-12 at 10:46 +0800, Pavel Pokorny wrote:
Hello, 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.
Example placement policy file:
/* --- Enable .avi so it will not be denied by default --- */ RULE 'enable_avi' SET POOL 'data' FOR FILESET (nfsexport) WHERE RegEx(lower(name),['\.avi$'])
/* --- Deny all following extensions --- */ 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*$'])
To demonstrate why this is a wack-a-mole exercise, as a user of your system I will just save in iPod friendly format, all my audio AAC encoded in .m4a files, all my video H.264 encoded in .m4v files, and my audiobooks in .m4b format :-) I would further note that it is rather trivial to pick a random extension say .sdf and associate that with just about any program, most of which examine the contents of the file and don't rely on the extension. Further noting if you are continuing in your wack-a-mole exercise I could use .divx which you have conveniently not blocked. Finally being the resourceful sort I will just embed it all in a PDF, or word document, or powerpoint, or ... I don't know exactly what your customer is expecting, but this sounds like a management idea, with little understanding of how things work in the real world. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
To further the wack-a-mole problem: If you set those extensions to be in the system pool and assume the system pool has no data-disks, it is still possible for GPFS 3.5 to create a file in the system pool if one is utilizing the small-files-in-metadata feature (whatever it's called now) and if the file is 0-3.9K in size where it will be stored in the xattrs. So, this only works for mp3's >3.9K :) Probably OK for mp3's but not if, say, you wanted to restrict .txt files, which are often that small. On Mon, May 12, 2014 at 7:12 AM, Jonathan Buzzard <jonathan@buzzard.me.uk> wrote:
On Mon, 2014-05-12 at 10:46 +0800, Pavel Pokorny wrote:
Hello, 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.
Example placement policy file:
/* --- Enable .avi so it will not be denied by default --- */ RULE 'enable_avi' SET POOL 'data' FOR FILESET (nfsexport) WHERE RegEx(lower(name),['\.avi$'])
/* --- Deny all following extensions --- */ 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*$'])
To demonstrate why this is a wack-a-mole exercise, as a user of your system I will just save in iPod friendly format, all my audio AAC encoded in .m4a files, all my video H.264 encoded in .m4v files, and my audiobooks in .m4b format :-)
I would further note that it is rather trivial to pick a random extension say .sdf and associate that with just about any program, most of which examine the contents of the file and don't rely on the extension.
Further noting if you are continuing in your wack-a-mole exercise I could use .divx which you have conveniently not blocked.
Finally being the resourceful sort I will just embed it all in a PDF, or word document, or powerpoint, or ...
I don't know exactly what your customer is expecting, but this sounds like a management idea, with little understanding of how things work in the real world.
JAB.
-- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-- Zach Giles zgiles@gmail.com
participants (3)
-
Jonathan Buzzard -
Pavel Pokorny -
Zachary Giles
