Re: [gpfsug-discuss] What NSDs does a file have blocks on?
I don’t think you can do it directly, but you could probably use FileHeat to figure it out indirectly. Look at mmchconfig on how to set these: fileHeatLossPercent 20 fileHeatPeriodMinutes 1440 Then you can run a fairly simple policy scan to dump out the file names and heat value, sort what’s the most active to the top. I’ve done this, and it can prove helpful: define(DISPLAY_NULL,[CASE WHEN ($1) IS NULL THEN '_NULL_' ELSE varchar($1) END]) rule fh1 external list 'fh' exec '' rule fh2 list 'fh' weight(FILE_HEAT) show( DISPLAY_NULL(FILE_HEAT) || '|' || varchar(file_size) ) Bob Oesterlin Sr Principal Storage Engineer, Nuance From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> Reply-To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: Monday, July 9, 2018 at 3:04 PM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: [EXTERNAL] [gpfsug-discuss] What NSDs does a file have blocks on? Hi All, I am still working on my issue of the occasional high I/O wait times and that has raised another question … I know that I can run mmfileid to see what files have a block on a given NSD, but is there a way to do the opposite? I.e. I want to know what NSDs a single file has its’ blocks on? The mmlsattr command does not appear to show this information unless it’s got an undocumented option. Thanks… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu<mailto:Kevin.Buterbaugh@vanderbilt.edu> - (615)875-9633
(psss... ) tsdbfs Not responsible for anything bad that happens...!
I was going to say something like that … e.g. blockaddr 563148261 Inode 563148261 snap 0 offset 0 N=2 1:45255923200 13:59403784320 1: and 13: in the output are the NSD disk devices for inode 563148261 Simon From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of "makaplan@us.ibm.com" <makaplan@us.ibm.com> Reply-To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: Monday, 9 July 2018 at 22:04 To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] What NSDs does a file have blocks on? (psss... ) tsdbfs Not responsible for anything bad that happens...!
As long as we're giving hints... Seems tsdbfs has several subcommands that might be helpful. I like "inode" But there's also "listda" Subcommand "desc" will show you the structure of the file system under "disks:" you will see which disk numbers are which NSDs. Have fun, but DO NOT use the any of the *patch* subcommands! From: Simon Thompson <S.J.Thompson@bham.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 07/09/2018 05:21 PM Subject: Re: [gpfsug-discuss] What NSDs does a file have blocks on? Sent by: gpfsug-discuss-bounces@spectrumscale.org I was going to say something like that … e.g. blockaddr 563148261 Inode 563148261 snap 0 offset 0 N=2 1:45255923200 13:59403784320 1: and 13: in the output are the NSD disk devices for inode 563148261 Simon From: <gpfsug-discuss-bounces@spectrumscale.org> on behalf of "makaplan@us.ibm.com" <makaplan@us.ibm.com> Reply-To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: Monday, 9 July 2018 at 22:04 To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] What NSDs does a file have blocks on? (psss... ) tsdbfs Not responsible for anything bad that happens...! _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
I know we are trying to be helpful, but suggesting that admins mess with undocumented, dangerous commands isn’t a good idea. If directed from an IBM support person with explicit instructions, then good enough, IFF it’s really required and worth the risk! I think the Kum’s suggestions are definitely a right way to handle this. In general, avoid running ts* commands unless directed by somebody that knows exactly what they are doing and understands your issue in great detail!! Just a word to the wise.. 2 cents… etc, -Bryan From: gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org] On Behalf Of Marc A Kaplan Sent: Tuesday, July 10, 2018 8:09 AM To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Subject: Re: [gpfsug-discuss] What NSDs does a file have blocks on? Note: External Email ________________________________ As long as we're giving hints... Seems tsdbfs has several subcommands that might be helpful. I like "inode" But there's also "listda" Subcommand "desc" will show you the structure of the file system under "disks:" you will see which disk numbers are which NSDs. Have fun, but DO NOT use the any of the *patch* subcommands! From: Simon Thompson <S.J.Thompson@bham.ac.uk<mailto:S.J.Thompson@bham.ac.uk>> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: 07/09/2018 05:21 PM Subject: Re: [gpfsug-discuss] What NSDs does a file have blocks on? Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> ________________________________ I was going to say something like that … e.g. blockaddr 563148261 Inode 563148261 snap 0 offset 0 N=2 1:45255923200 13:59403784320 1: and 13: in the output are the NSD disk devices for inode 563148261 Simon From: <gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org>> on behalf of "makaplan@us.ibm.com<mailto:makaplan@us.ibm.com>" <makaplan@us.ibm.com<mailto:makaplan@us.ibm.com>> Reply-To: "gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Date: Monday, 9 July 2018 at 22:04 To: "gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>" <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Subject: Re: [gpfsug-discuss] What NSDs does a file have blocks on? (psss... ) tsdbfs Not responsible for anything bad that happens...! _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss ________________________________ Note: This email is for the confidential use of the named addressee(s) only and may contain proprietary, confidential, or privileged information and/or personal data. If you are not the intended recipient, you are hereby notified that any review, dissemination, or copying of this email is strictly prohibited, and requested to notify the sender immediately and destroy this email and any attachments. Email transmission cannot be guaranteed to be secure or error-free. The Company, therefore, does not make any guarantees as to the completeness or accuracy of this email or any attachments. This email is for informational purposes only and does not constitute a recommendation, offer, request, or solicitation of any kind to buy, sell, subscribe, redeem, or perform any type of transaction of a financial product. Personal data, as defined by applicable data privacy laws, contained in this email may be processed by the Company, and any of its affiliated or related companies, for potential ongoing compliance and/or business-related purposes. You may have rights regarding your personal data; for information on exercising these rights or the Company’s treatment of personal data, please email datarequests@jumptrading.com.
participants (4)
-
Bryan Banister -
Marc A Kaplan -
Oesterlin, Robert -
Simon Thompson
