Hi All, I am aware that with the mmfileid command I can determine which files have blocks on a given NSD. But is there a way to query a particular file to see which NSD(s) is has blocks on? Thanks in advance… 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
Hi All, And, of course, within 5 minutes of sending that e-mail I found the “mmlsattr” command, which does what I need and which didn’t show up in my Google search results. I apologize for the noise… Kevin On Jun 17, 2016, at 9:29 AM, Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>> wrote: Hi All, I am aware that with the mmfileid command I can determine which files have blocks on a given NSD. But is there a way to query a particular file to see which NSD(s) is has blocks on? Thanks in advance… 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 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss — 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
Hi Jamie, The much longer e-mail I just sent to the list will explain the background behind all this, but to answer your question I actually only needed to know which storage pool the file resided in. Obviously, if I know which NSDs it resides on that would tell me the storage pool. Thanks… Kevin On Jun 17, 2016, at 10:04 AM, James Davis <jamiedavis@us.ibm.com<mailto:jamiedavis@us.ibm.com>> wrote: Hi Kevin, It looks like you can use mmlsattr to query the storage pool the file resides on. Is that all you needed to know, or did you need the specific disks on which it resides? If you're looking for the specific disks, how are you using the mmlsattr command to accomplish that? Jamie Jamie Davis GPFS Functional Verification Test (FVT) jamiedavis@us.ibm.com<mailto:jamiedavis@us.ibm.com> ----- Original message ----- From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>> Sent by: gpfsug-discuss-bounces@spectrumscale.org<mailto:gpfsug-discuss-bounces@spectrumscale.org> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org<mailto:gpfsug-discuss@spectrumscale.org>> Cc: Subject: Re: [gpfsug-discuss] Can you query which NSDs a given file resides on? Date: Fri, Jun 17, 2016 10:36 AM Hi All, And, of course, within 5 minutes of sending that e-mail I found the “mmlsattr” command, which does what I need and which didn’t show up in my Google search results. I apologize for the noise… Kevin On Jun 17, 2016, at 9:29 AM, Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>> wrote: Hi All, I am aware that with the mmfileid command I can determine which files have blocks on a given NSD. But is there a way to query a particular file to see which NSD(s) is has blocks on? Thanks in advance… 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 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org/> http://gpfsug.org/mailman/listinfo/gpfsug-discuss — 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 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss — 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
Hi yet again all, Well, this has turned out to be an enlightening and surprising morning in GPFS land… What prompted my question below is this … I am looking to use the new QoS features in GPFS 4.2. I have QoS enabled and am trying to get a baseline of IOPs so that I can determine how much I want to assign to the maintenance class (currently both maintenance and other are set to unlimited). To do this, I fired off a bonnie++ test from each of my NSD servers. The filesystem in question has two storage pools, the system pool and the capacity pool. The system pool is comprised of a couple of metadata only disks (SSD-based RAID 1 mirrors) and several data only disks (spinning HD-based RAID 6), while the capacity pool is comprised exclusively of data only disks (RAID 6). When the bonnie++’s were creating, reading, and rewriting the big file they create I was quite surprised to see mmlsqos show higher IOP’s on the capacity pool than the system pool by a factor of 10! As I was expecting those files to be being written to the system pool, this was quite surprising to me. Once I found the mmlsattr command, I ran it on one of the files being created and saw that it was indeed assigned to the capacity pool. The bonnie++’s finished before I could check the other files. I don’t have any file placement policies in effect for this filesystem, only file migration policies (each weekend any files in the system pool with an atime > 60 days get moved to the capacity pool and any files in the capacity pool with an atime < 60 days get moved to the system pool). In the GPFS 4.2 Advanced Administration Guide, it states, “If a GPFS file system does not have a placement policy installed, all the data is stored in the first data storage pool.” This filesystem was initially created in 2010 and at that time consisted only of the system pool. The capacity pool was not created until some years (2014? 2015? don’t remember for sure) later. I was under the obviously mistaken impression that the “first” data storage pool was the system pool, but that is clearly not correct. So my first question is, what is the definition of “the first storage pool?” and my second question is, can the documentation be updated with the answer to my first question since it’s clearly ambiguous as written now? Thanks… Kevin On Jun 17, 2016, at 9:29 AM, Buterbaugh, Kevin L <Kevin.Buterbaugh@Vanderbilt.Edu<mailto:Kevin.Buterbaugh@vanderbilt.edu>> wrote: Hi All, I am aware that with the mmfileid command I can determine which files have blocks on a given NSD. But is there a way to query a particular file to see which NSD(s) is has blocks on? Thanks in advance… 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 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss — 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
On Fri, 2016-06-17 at 15:18 +0000, Buterbaugh, Kevin L wrote:
Hi yet again all,
Well, this has turned out to be an enlightening and surprising morning in GPFS land…
What prompted my question below is this … I am looking to use the new QoS features in GPFS 4.2. I have QoS enabled and am trying to get a baseline of IOPs so that I can determine how much I want to assign to the maintenance class (currently both maintenance and other are set to unlimited). To do this, I fired off a bonnie++ test from each of my NSD servers.
The filesystem in question has two storage pools, the system pool and the capacity pool. The system pool is comprised of a couple of metadata only disks (SSD-based RAID 1 mirrors) and several data only disks (spinning HD-based RAID 6), while the capacity pool is comprised exclusively of data only disks (RAID 6).
My preference in these scenarios is to have the system pool for metadata only. Then have a "fast" pool and a "slow" pool. Pool names more than 7 characters is a recipe for backup headaches with TSM at least, so "fast" and "slow" are deliberately chosen as names :) That way you can tweak block sizes more optimally.
When the bonnie++’s were creating, reading, and rewriting the big file they create I was quite surprised to see mmlsqos show higher IOP’s on the capacity pool than the system pool by a factor of 10! As I was expecting those files to be being written to the system pool, this was quite surprising to me. Once I found the mmlsattr command, I ran it on one of the files being created and saw that it was indeed assigned to the capacity pool. The bonnie++’s finished before I could check the other files.
I don’t have any file placement policies in effect for this filesystem, only file migration policies (each weekend any files in the system pool with an atime > 60 days get moved to the capacity pool and any files in the capacity pool with an atime < 60 days get moved to the system pool).
Note due to the way applications handle saving files by creating a new file, moving files from slow to fast disk is mostly a waste of effort in my experience. By the time you do that, 99% of the time the user has finished with the file anyway. When they haven't generally the slow disk has gazillions of free IOPs anyway.
In the GPFS 4.2 Advanced Administration Guide, it states, “If a GPFS file system does not have a placement policy installed, all the data is stored in the first data storage pool.”
My understanding is that no placement policy and it can go anywhere, where anywhere is the next available NSD with free space. I found that you needed to do something like this at the end of your policy file for the default placement. /* move files over 1GB onto nearline storage and keep them there */ RULE 'big' MIGRATE FROM POOL 'system' TO POOL 'nearline' WHERE FILE_SIZE
1073741824
/* migrate old files to the RAID6 disks to keep the RAID1 disks free */ RULE 'ilm' MIGRATE FROM POOL 'system' THRESHOLD(90,70) WEIGHT(weighting) TO POOL 'slow' /* by default new files to the fast RAID1 disk unless full, then to RAID6 */ RULE 'new' SET POOL 'fast' LIMIT(95) RULE 'spillover' SET POOL 'slow' You have to stop allocation to the fast disk from ever approaching 100%. Otherwise a you get disk full errors on new file writes. Imagine you create a new file when there is 1KB of space free in the fast pool, then try and write 10KB of data; it will fail with an error. So first rule forces large files to the slow pool anyway (you can tweak this size to suite your environment) but it must be significantly less than the the space free when you hit 95% full on the fast disk. You then need to have a rule to kick the tiering migration in lower than when you start allocating to the slow pool. Finally you allocation new files to the fast disk till it gets quite full, before spilling over to the slow pool (which one presumes has loads of free capacity) if the fast pool fills up. Not shown you ideally need to kick in tiering migration every night so that it does not run during the day when users might notice the performance degradation. Ideally you want to have enough free space come the morning in your fast disk pool that all new files can be created there during the day. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
Thanks for asking! Prior to Release 4.2 system pool was the default pool for storing file data and you had to write at least one policy SET POOL rule to make use of any NSDs that you assigned to some other pool. Now if a file system is formatted or upgraded to level 4.2 or higher, and there is a data pool defined, and there are no SET POOL policy rules, then the "first" such data pool becomes the default storage pool for file data. "metadata" is always stored in system pool. So how is the "first" data pool determined? It's usually the first data pool added to the file system. For many customers and installations there is only one such pool, so no problem - and this is exactly what they wanted all along (since we introduced "pools" in release 3.1) We received complaints over the years along the lines: "Heh! Why the heck do you think I made a data pool? I don't want to know about silly SET POOL rules and yet another mm command (mmchpolicy)! Just do it!" Well in 4.2 we did. If you look into the /var/adm/ras/mmfs.log.* file(s) you will see that during mmmount 4.2 will tell you.... Fri Jun 17 09:31:26.637 2016: [I] Command: mount yy Fri Jun 17 09:31:27.625 2016: [I] Loaded policy 'for file system yy': Parsed 4 policy rules. Fri Jun 17 09:31:27.626 2016: Policy has no storage pool placement rules. Fri Jun 17 09:31:27.627 2016: [I] Data will be stored in pool 'xtra'. Notice we DID NOT change the behavior for file systems at level 4.1 or prior, even when you upgrade the software. But when you upgrade the file system to 4.2 (for example to use QOS) ... From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 06/17/2016 11:19 AM Subject: [gpfsug-discuss] Initial file placement Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi yet again all, Well, this has turned out to be an enlightening and surprising morning in GPFS land… What prompted my question below is this … I am looking to use the new QoS features in GPFS 4.2. I have QoS enabled and am trying to get a baseline of IOPs so that I can determine how much I want to assign to the maintenance class (currently both maintenance and other are set to unlimited). To do this, I fired off a bonnie++ test from each of my NSD servers. The filesystem in question has two storage pools, the system pool and the capacity pool. The system pool is comprised of a couple of metadata only disks (SSD-based RAID 1 mirrors) and several data only disks (spinning HD-based RAID 6), while the capacity pool is comprised exclusively of data only disks (RAID 6). When the bonnie++’s were creating, reading, and rewriting the big file they create I was quite surprised to see mmlsqos show higher IOP’s on the capacity pool than the system pool by a factor of 10! As I was expecting those files to be being written to the system pool, this was quite surprising to me. Once I found the mmlsattr command, I ran it on one of the files being created and saw that it was indeed assigned to the capacity pool. The bonnie++’s finished before I could check the other files. I don’t have any file placement policies in effect for this filesystem, only file migration policies (each weekend any files in the system pool with an atime > 60 days get moved to the capacity pool and any files in the capacity pool with an atime < 60 days get moved to the system pool). In the GPFS 4.2 Advanced Administration Guide, it states, “If a GPFS file system does not have a placement policy installed, all the data is stored in the first data storage pool.” This filesystem was initially created in 2010 and at that time consisted only of the system pool. The capacity pool was not created until some years (2014? 2015? don’t remember for sure) later. I was under the obviously mistaken impression that the “first” data storage pool was the system pool, but that is clearly not correct. So my first question is, what is the definition of “the first storage pool?” and my second question is, can the documentation be updated with the answer to my first question since it’s clearly ambiguous as written now? Thanks… Kevin On Jun 17, 2016, at 9:29 AM, Buterbaugh, Kevin L < Kevin.Buterbaugh@Vanderbilt.Edu> wrote: Hi All, I am aware that with the mmfileid command I can determine which files have blocks on a given NSD. But is there a way to query a particular file to see which NSD(s) is has blocks on? Thanks in advance… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
OOPS... The story I gave was almost correct. The cut over was at 4.1.1 (after 4.1 before 4.2)
(Doc?... I ain't about to read a manual! But just to cover our bases we did stick it into the 4.1.1 pubs) Policy improvements: This release includes the following policy improvements: ... (summary of changes, page xv) ... Implicit SET POOL 'first-data-pool' rule For file systems that are at or have been upgraded to 4.1.1, the system recognizes that, even if no policy rules have been installed to a file system by mmchpolicy , data files should be stored in a non-system pool if available (rather than in the system pool, which is the default for earlier releases). For more information, see the following: Information Lifecycle Management chapter in the IBM Spectrum Scale: Advanced Administration Guide ... ( mmchpolicy man page 298) ... For file systems that are at or have been upgraded to 4.1.1 or later: If there are no SET POOL policy rules installed to a file system by mmchpolicy, the system acts as if the single rule SET POOL 'first-data-pool' is in effect, where first-data-pool is the firstmost non-system pool that is available for file data storage, if such a non-system pool is available. (“Firstmost” is the first according to an internal index of all pools.) However, if there are no policy rules installed and there is no non-system pool, the system acts as if SET POOL 'system' is in effect. This change applies only to file systems that were created at or upgraded to 4.1.1. Until a file system is upgraded, if no SET POOL rules are present (set by mmchpolicy) for the file system, all data will be stored in the 'system' pool. For information on GPFS policies, see the IBM Spectrum Scale: Advanced Administration Guide.
Hi Marc, Read every last one of the thousands of pages of documentation that comprises the GPFS documentation set before doing any GPFS upgrades … yes, I apparently *do* need to do that! ;-) The paragraph that I find ambiguous can be found on page 20 of the GPFS 4.2 Advanced Administration Guide (3rd paragraph from bottom): The placement policy defining the initial placement of newly created files and the rules for placement of * | restored data must be installed into GPFS with the mmchpolicy command. If a GPFS file system does not * | have a placement policy installed, all the data is stored in the first data storage pool. Only one placement policy can be installed at a time. If you switch from one placement policy to another, or make changes to a placement policy, that action has no effect on existing files. However, newly created files are always placed according to the currently installed placement policy. In my opinion, it should at least contain a pointer the pages you reference below. Preferentially, it would contain the definition of “first data storage pool”. Thanks… Kevin On Jun 17, 2016, at 11:20 AM, Marc A Kaplan <makaplan@us.ibm.com<mailto:makaplan@us.ibm.com>> wrote: (Doc?... I ain't about to read a manual! But just to cover our bases we did stick it into the 4.1.1 pubs) Policy improvements: This release includes the following policy improvements: ... (summary of changes, page xv) ... Implicit SET POOL 'first-data-pool' rule For file systems that are at or have been upgraded to 4.1.1, the system recognizes that, even if no policy rules have been installed to a file system by mmchpolicy, data files should be stored in a non-system pool if available (rather than in the system pool, which is the default for earlier releases). For more information, see the following: Information Lifecycle Management chapter in the IBM Spectrum Scale: Advanced Administration Guide ... ( mmchpolicy man page 298) ... For file systems that are at or have been upgraded to 4.1.1 or later: If there are no SET POOL policy rules installed to a file system by mmchpolicy, the system acts as if the single rule SET POOL 'first-data-pool' is in effect, where first-data-pool is the firstmost non-system pool that is available for file data storage, if such a non-system pool is available. (“Firstmost” is the first according to an internal index of all pools.) However, if there are no policy rules installed and there is no non-system pool, the system acts as if SET POOL 'system' is in effect. This change applies only to file systems that were created at or upgraded to 4.1.1. Until a file system is upgraded, if no SET POOL rules are present (set by mmchpolicy) for the file system, all data will be stored in the 'system' pool. For information on GPFS policies, see the IBM Spectrum Scale: Advanced Administration Guide. _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org<http://spectrumscale.org> http://gpfsug.org/mailman/listinfo/gpfsug-discuss — 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
Hint: tsdbfs More hints: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0... If you mess up, you didn't hear this from me ;-) From: "Buterbaugh, Kevin L" <Kevin.Buterbaugh@Vanderbilt.Edu> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 06/17/2016 10:30 AM Subject: [gpfsug-discuss] Can you query which NSDs a given file resides on? Sent by: gpfsug-discuss-bounces@spectrumscale.org Hi All, I am aware that with the mmfileid command I can determine which files have blocks on a given NSD. But is there a way to query a particular file to see which NSD(s) is has blocks on? Thanks in advance… Kevin — Kevin Buterbaugh - Senior System Administrator Vanderbilt University - Advanced Computing Center for Research and Education Kevin.Buterbaugh@vanderbilt.edu - (615)875-9633 _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (4)
-
Buterbaugh, Kevin L -
James Davis -
Jonathan Buzzard -
Marc A Kaplan
