Independent fileset free inodes
I was just wondering if anyone had a way to return the number of free/used inodes for an independent fileset and all its children. We recently had a case where we were unable to create new files in a child file-set, and it turns out the independent parent had run out of inodes. mmsf however only lists the inodes used directly in the parent fileset, I.e. About 8 as that was the number of child filesets. The suggestion from IBM support is that we use mmdf and then add up the numbers from all the child filesets to workout how many are free/used in the independent fileset. Does anyone have a script to do this already? Surely there is a better way? Thanks Simon
We have the same problem when we started using independent fileset. I think this should be a RFE item that IBM should provide a tool similar to 'mmdf -F' to show the number of free/used inodes for an independent fileset. Rei On 8/7/15 8:56 AM, Simon Thompson (Research Computing - IT Services) wrote:
I was just wondering if anyone had a way to return the number of free/used inodes for an independent fileset and all its children.
We recently had a case where we were unable to create new files in a child file-set, and it turns out the independent parent had run out of inodes.
mmsf however only lists the inodes used directly in the parent fileset, I.e. About 8 as that was the number of child filesets.
The suggestion from IBM support is that we use mmdf and then add up the numbers from all the child filesets to workout how many are free/used in the independent fileset.
Does anyone have a script to do this already?
Surely there is a better way?
Thanks
Simon _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
You can use the mmlsfileset DEVICE -L option to see the maxinodes and allocated inodes. I have a perl script that loops through all of our file systems every hour and scans for it. If one is nearing capacity(tunable threshold in the code), it automatically expands it by a set amount(also tunable). We add 10% currently. This also works on file systems that have no filesets as it appears as the root fileset. I can check with my boss to see if its ok to post it if you want it. Its about 40 lines of perl. Chad -- Chad Kerner, Systems Engineer Storage Enabling Technologies National Center for Supercomputing Applications On Fri, Aug 07, 2015 at 09:30:21AM -0700, Rei Lee wrote:
We have the same problem when we started using independent fileset. I think this should be a RFE item that IBM should provide a tool similar to 'mmdf -F' to show the number of free/used inodes for an independent fileset.
Rei
On 8/7/15 8:56 AM, Simon Thompson (Research Computing - IT Services) wrote:
I was just wondering if anyone had a way to return the number of free/used inodes for an independent fileset and all its children.
We recently had a case where we were unable to create new files in a child file-set, and it turns out the independent parent had run out of inodes.
mmsf however only lists the inodes used directly in the parent fileset, I.e. About 8 as that was the number of child filesets.
The suggestion from IBM support is that we use mmdf and then add up the numbers from all the child filesets to workout how many are free/used in the independent fileset.
Does anyone have a script to do this already?
Surely there is a better way?
Thanks
Simon _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hmm. I'll create an RFE next week then. (just in case someone comes back with a magic flag we don't know about!). Simon ________________________________________ From: gpfsug-discuss-bounces@gpfsug.org [gpfsug-discuss-bounces@gpfsug.org] on behalf of Rei Lee [rclee@lbl.gov] Sent: 07 August 2015 17:30 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Independent fileset free inodes We have the same problem when we started using independent fileset. I think this should be a RFE item that IBM should provide a tool similar to 'mmdf -F' to show the number of free/used inodes for an independent fileset. Rei On 8/7/15 8:56 AM, Simon Thompson (Research Computing - IT Services) wrote:
I was just wondering if anyone had a way to return the number of free/used inodes for an independent fileset and all its children.
We recently had a case where we were unable to create new files in a child file-set, and it turns out the independent parent had run out of inodes.
mmsf however only lists the inodes used directly in the parent fileset, I.e. About 8 as that was the number of child filesets.
The suggestion from IBM support is that we use mmdf and then add up the numbers from all the child filesets to workout how many are free/used in the independent fileset.
Does anyone have a script to do this already?
Surely there is a better way?
Thanks
Simon _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Try mmlsfileset filesystem_name -i From: "Simon Thompson (Research Computing - IT Services)" <S.J.Thompson@bham.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org> Date: 08/07/2015 12:49 PM Subject: Re: [gpfsug-discuss] Independent fileset free inodes Sent by: gpfsug-discuss-bounces@gpfsug.org Hmm. I'll create an RFE next week then. (just in case someone comes back with a magic flag we don't know about!). Simon ________________________________________ From: gpfsug-discuss-bounces@gpfsug.org [gpfsug-discuss-bounces@gpfsug.org] on behalf of Rei Lee [rclee@lbl.gov] Sent: 07 August 2015 17:30 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Independent fileset free inodes We have the same problem when we started using independent fileset. I think this should be a RFE item that IBM should provide a tool similar to 'mmdf -F' to show the number of free/used inodes for an independent fileset. Rei On 8/7/15 8:56 AM, Simon Thompson (Research Computing - IT Services) wrote:
I was just wondering if anyone had a way to return the number of free/used inodes for an independent fileset and all its children.
We recently had a case where we were unable to create new files in a child file-set, and it turns out the independent parent had run out of inodes.
mmsf however only lists the inodes used directly in the parent fileset, I.e. About 8 as that was the number of child filesets.
The suggestion from IBM support is that we use mmdf and then add up the numbers from all the child filesets to workout how many are free/used in the independent fileset.
Does anyone have a script to do this already?
Surely there is a better way?
Thanks
Simon _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
We have tried that command but it took a very long time like it was hanging so I killed the command before it finished. I was not sure if it was a bug in early 4.1.0 software but I did not open a PMR. I just ran the command again on a quiet file system and it has been 5 minutes and the command is still not showing any output. 'mmdf -F' returns very fast. 'mmlsfileset <fileset> -l' does not report the number of free inodes. Rei On 8/7/15 1:12 PM, Marc A Kaplan wrote:
Try
mmlsfileset filesystem_name -i
Marc A Kaplan
From: "Simon Thompson (Research Computing - IT Services)" <S.J.Thompson@bham.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org> Date: 08/07/2015 12:49 PM Subject: Re: [gpfsug-discuss] Independent fileset free inodes Sent by: gpfsug-discuss-bounces@gpfsug.org ------------------------------------------------------------------------
Hmm. I'll create an RFE next week then. (just in case someone comes back with a magic flag we don't know about!).
Simon ________________________________________ From: gpfsug-discuss-bounces@gpfsug.org [gpfsug-discuss-bounces@gpfsug.org] on behalf of Rei Lee [rclee@lbl.gov] Sent: 07 August 2015 17:30 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Independent fileset free inodes
We have the same problem when we started using independent fileset. I think this should be a RFE item that IBM should provide a tool similar to 'mmdf -F' to show the number of free/used inodes for an independent fileset.
Rei
On 8/7/15 8:56 AM, Simon Thompson (Research Computing - IT Services) wrote:
I was just wondering if anyone had a way to return the number of free/used inodes for an independent fileset and all its children.
We recently had a case where we were unable to create new files in a child file-set, and it turns out the independent parent had run out of inodes.
mmsf however only lists the inodes used directly in the parent fileset, I.e. About 8 as that was the number of child filesets.
The suggestion from IBM support is that we use mmdf and then add up the numbers from all the child filesets to workout how many are free/used in the independent fileset.
Does anyone have a script to do this already?
Surely there is a better way?
Thanks
Simon _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
-i will give you the exact used number but... Avoid running it during peak usage on most setups. It's pretty heavy, like running a -d on lssnapshot. Your best bet is from earlier posts: '-L' gives you the max and alloc. If they match, you know you're in bother soon. It's not accurate, of course, but prevention is typically the best medicine in this case. Cheers, Barry ArcaStream/Pixit On 7 Aug 2015, at 21:12, Marc A Kaplan <makaplan@us.ibm.com> wrote: Try mmlsfileset filesystem_name -i <mime-attachment.gif> From: "Simon Thompson (Research Computing - IT Services)" < S.J.Thompson@bham.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org> Date: 08/07/2015 12:49 PM Subject: Re: [gpfsug-discuss] Independent fileset free inodes Sent by: gpfsug-discuss-bounces@gpfsug.org ------------------------------ Hmm. I'll create an RFE next week then. (just in case someone comes back with a magic flag we don't know about!). Simon ________________________________________ From: gpfsug-discuss-bounces@gpfsug.org [gpfsug-discuss-bounces@gpfsug.org] on behalf of Rei Lee [rclee@lbl.gov] Sent: 07 August 2015 17:30 To: gpfsug-discuss@gpfsug.org Subject: Re: [gpfsug-discuss] Independent fileset free inodes We have the same problem when we started using independent fileset. I think this should be a RFE item that IBM should provide a tool similar to 'mmdf -F' to show the number of free/used inodes for an independent fileset. Rei On 8/7/15 8:56 AM, Simon Thompson (Research Computing - IT Services) wrote:
I was just wondering if anyone had a way to return the number of free/used inodes for an independent fileset and all its children.
We recently had a case where we were unable to create new files in a child file-set, and it turns out the independent parent had run out of inodes.
mmsf however only lists the inodes used directly in the parent fileset, I.e. About 8 as that was the number of child filesets.
The suggestion from IBM support is that we use mmdf and then add up the numbers from all the child filesets to workout how many are free/used in the independent fileset.
Does anyone have a script to do this already?
Surely there is a better way?
Thanks
Simon _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss -- This email is confidential in that it is intended for the exclusive attention of the addressee(s) indicated. If you are not the intended recipient, this email should not be read or disclosed to any other person. Please notify the sender immediately and delete this email from your computer system. Any opinions expressed are not necessarily those of the company from which this email was sent and, whilst to the best of our knowledge no viruses or defects exist, no responsibility can be accepted for any loss or damage arising from its receipt or subsequent use of this email.
Hi Marc, Thanks for this. Just to clarify the output when it mentions allocated inodes, does that mean the number used or the number allocated? I.e. If I pre-create a bunch of inodes will they appear as allocated? Or is that only when they are used by a file etc? Thanks Simon From: Marc A Kaplan <makaplan@us.ibm.com<mailto:makaplan@us.ibm.com>> Reply-To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org<mailto:gpfsug-discuss@gpfsug.org>> Date: Friday, 7 August 2015 21:12 To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org<mailto:gpfsug-discuss@gpfsug.org>> Subject: Re: [gpfsug-discuss] Independent fileset free inodes Try mmlsfileset filesystem_name -i [Marc A Kaplan] From: "Simon Thompson (Research Computing - IT Services)" <S.J.Thompson@bham.ac.uk<mailto:S.J.Thompson@bham.ac.uk>> To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org<mailto:gpfsug-discuss@gpfsug.org>> Date: 08/07/2015 12:49 PM Subject: Re: [gpfsug-discuss] Independent fileset free inodes Sent by: gpfsug-discuss-bounces@gpfsug.org<mailto:gpfsug-discuss-bounces@gpfsug.org> ________________________________ Hmm. I'll create an RFE next week then. (just in case someone comes back with a magic flag we don't know about!). Simon ________________________________________ From: gpfsug-discuss-bounces@gpfsug.org<mailto:gpfsug-discuss-bounces@gpfsug.org> [gpfsug-discuss-bounces@gpfsug.org<mailto:gpfsug-discuss-bounces@gpfsug.org>] on behalf of Rei Lee [rclee@lbl.gov<mailto:rclee@lbl.gov>] Sent: 07 August 2015 17:30 To: gpfsug-discuss@gpfsug.org<mailto:gpfsug-discuss@gpfsug.org> Subject: Re: [gpfsug-discuss] Independent fileset free inodes We have the same problem when we started using independent fileset. I think this should be a RFE item that IBM should provide a tool similar to 'mmdf -F' to show the number of free/used inodes for an independent fileset. Rei On 8/7/15 8:56 AM, Simon Thompson (Research Computing - IT Services) wrote:
I was just wondering if anyone had a way to return the number of free/used inodes for an independent fileset and all its children.
We recently had a case where we were unable to create new files in a child file-set, and it turns out the independent parent had run out of inodes.
mmsf however only lists the inodes used directly in the parent fileset, I.e. About 8 as that was the number of child filesets.
The suggestion from IBM support is that we use mmdf and then add up the numbers from all the child filesets to workout how many are free/used in the independent fileset.
Does anyone have a script to do this already?
Surely there is a better way?
Thanks
Simon _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
mmlsfileset xxx -i 1. Yes it is slow. I don't know the reasons. Perhaps someone more familiar with the implementation can comment. It's surprising to me that it is sooo much slower than mmdf EVEN ON a filesystem that only has the root fileset! 2. used: how many inodes (files) currently exist in the given fileset or fileset allocated: number of inodes "pre"allocated in the (special) file of all inodes. maximum: number of inodes that GPFS might allocate on demand, with current --inode-limit settings from mmchfileset and mmchfs.
participants (5)
-
Barry Evans -
Chad Kerner -
Marc A Kaplan -
Rei Lee -
Simon Thompson (Research Computing - IT Services)
