Hi all, We have noticed that once users are deleted (gone entirely from the passwd backend) and all their files removed, their uid is still reported by GPFS’ quota tools (albeit with zero files and space usage). Does anyone know if there is a way to clear out these spurious entries or is it a case that once a uid is in the quota database its there forever regardless of if that uid is still in use and has quota to record? Many Thanks, Laurence
Do you still have policies or filesets associated with these users? Ed Wahl OSC On Tue, 2014-11-25 at 10:45 +0000, Laurence Alexander Hurst wrote:
Hi all,
We have noticed that once users are deleted (gone entirely from the passwd backend) and all their files removed, their uid is still reported by GPFS’ quota tools (albeit with zero files and space usage).
Does anyone know if there is a way to clear out these spurious entries or is it a case that once a uid is in the quota database its there forever regardless of if that uid is still in use and has quota to record?
Many Thanks,
Laurence _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
On Tue, 2014-11-25 at 10:45 +0000, Laurence Alexander Hurst wrote:
Hi all,
We have noticed that once users are deleted (gone entirely from the passwd backend) and all their files removed, their uid is still reported by GPFS’ quota tools (albeit with zero files and space usage).
There is something somewhere that references them, because they do disappear. I know because I cleared out a GPFS file system that had files and directories used by "depreciated" user and group names, and the check I was using to make sure I had got everything belonging to a particular user or group was mmrepquota. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
Hmm, mmrepquota is reporting no files owned by any of the users in question. I¹ll see if `find` disagrees. They have the default fileset user quotas applied, so they¹re not users we¹ve edited to grant quota extensions to. We have had a problem (which IBM have acknowledged, iirc) whereby it is not possible to reset a user¹s quota back to the default if it has been modified, perhaps this is related? I¹ll see if `find` turns anything up or I¹ll raise a ticket with IBM and see what they think. I¹ve pulled out a single example, but all 75 users I have are the same. mmrepquota gpfs | grep 8695 8695 nbu USR 0 0 5368709120 0 none | 0 0 0 0 none 8695 bb USR 0 0 1073741824 0 none | 0 0 0 0 none Thanks for your input. Laurence On 25/11/2014 14:00, "Jonathan Buzzard" <jonathan@buzzard.me.uk> wrote:
On Tue, 2014-11-25 at 10:45 +0000, Laurence Alexander Hurst wrote:
Hi all,
We have noticed that once users are deleted (gone entirely from the passwd backend) and all their files removed, their uid is still reported by GPFS¹ quota tools (albeit with zero files and space usage).
There is something somewhere that references them, because they do disappear. I know because I cleared out a GPFS file system that had files and directories used by "depreciated" user and group names, and the check I was using to make sure I had got everything belonging to a particular user or group was mmrepquota.
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
On Wed, 2014-11-26 at 10:14 +0000, Laurence Alexander Hurst wrote:
Hmm, mmrepquota is reporting no files owned by any of the users in question. I¹ll see if `find` disagrees. They have the default fileset user quotas applied, so they¹re not users we¹ve edited to grant quota extensions to. We have had a problem (which IBM have acknowledged, iirc) whereby it is not possible to reset a user¹s quota back to the default if it has been modified, perhaps this is related? I¹ll see if `find` turns anything up or I¹ll raise a ticket with IBM and see what they think.
I¹ve pulled out a single example, but all 75 users I have are the same.
mmrepquota gpfs | grep 8695 8695 nbu USR 0 0 5368709120 0 none | 0 0 0 0 none 8695 bb USR 0 0 1073741824 0 none | 0 0 0 0 none
While the number of files and usage is zero look at those "in doubt" numbers. Until these also fall to zero then the users are not going to disappear from the quota reporting would be my guess. Quite why the "in doubt" numbers are still so large is another question. I have vague recollections of this happening to me when I deleted large amounts of data belonging to a user down to zero when I was clearing the file system up I mentioned before. Though to be honest most of my clearing up was identifying who the files really belonged to (there had in the distance past been a change of usernames; gone from local usernames to using the university wide ones and not everyone had claimed their files. All related to a move to using Active Directory) and doing chown's on the data. I think what happens is when the file number goes to zero the quota system stops updating for that user and if there is anything "in doubt" it never gets updated and sticks around forever. Might be worth creating a couple of files for the user in the appropriate filesets and then give it a bit of time and see if the output of mmrepquota matches what you believe is the real case. If this works and the "in doubt" number goes to zero I would at this point do a chown to a different user that is not going away and then delete the files. Something else to consider is that they might be in an ACL somewhere which is confusing the quota system. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
Any chance to run mmcheckquota? which should remove all "doubt"... On 2014 Nov 27. md, at 17:47 st, Jonathan Buzzard wrote:
On Wed, 2014-11-26 at 10:14 +0000, Laurence Alexander Hurst wrote:
Hmm, mmrepquota is reporting no files owned by any of the users in question. I¹ll see if `find` disagrees. They have the default fileset user quotas applied, so they¹re not users we¹ve edited to grant quota extensions to. We have had a problem (which IBM have acknowledged, iirc) whereby it is not possible to reset a user¹s quota back to the default if it has been modified, perhaps this is related? I¹ll see if `find` turns anything up or I¹ll raise a ticket with IBM and see what they think.
I¹ve pulled out a single example, but all 75 users I have are the same.
mmrepquota gpfs | grep 8695 8695 nbu USR 0 0 5368709120 0 none | 0 0 0 0 none 8695 bb USR 0 0 1073741824 0 none | 0 0 0 0 none
While the number of files and usage is zero look at those "in doubt" numbers. Until these also fall to zero then the users are not going to disappear from the quota reporting would be my guess. Quite why the "in doubt" numbers are still so large is another question. I have vague recollections of this happening to me when I deleted large amounts of data belonging to a user down to zero when I was clearing the file system up I mentioned before. Though to be honest most of my clearing up was identifying who the files really belonged to (there had in the distance past been a change of usernames; gone from local usernames to using the university wide ones and not everyone had claimed their files. All related to a move to using Active Directory) and doing chown's on the data.
I think what happens is when the file number goes to zero the quota system stops updating for that user and if there is anything "in doubt" it never gets updated and sticks around forever.
Might be worth creating a couple of files for the user in the appropriate filesets and then give it a bit of time and see if the output of mmrepquota matches what you believe is the real case. If this works and the "in doubt" number goes to zero I would at this point do a chown to a different user that is not going away and then delete the files.
Something else to consider is that they might be in an ACL somewhere which is confusing the quota system.
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
On Thu, 2014-11-27 at 09:47 +0000, Jonathan Buzzard wrote:
On Wed, 2014-11-26 at 10:14 +0000, Laurence Alexander Hurst wrote:
Hmm, mmrepquota is reporting no files owned by any of the users in question. I¹ll see if `find` disagrees. They have the default fileset user quotas applied, so they¹re not users we¹ve edited to grant quota extensions to. We have had a problem (which IBM have acknowledged, iirc) whereby it is not possible to reset a user¹s quota back to the default if it has been modified, perhaps this is related? I¹ll see if `find` turns anything up or I¹ll raise a ticket with IBM and see what they think.
I¹ve pulled out a single example, but all 75 users I have are the same.
mmrepquota gpfs | grep 8695 8695 nbu USR 0 0 5368709120 0 none | 0 0 0 0 none 8695 bb USR 0 0 1073741824 0 none | 0 0 0 0 none
While the number of files and usage is zero look at those "in doubt" numbers.
Ignore that those are quota numbers. Hard when the column headings are missing. Anyway a "Homer Simpson" momentum coming up... Simple answer really remove the quotas for those users in those file sets (I am presuming they are per fileset user hard limits). They are sticking around in mmrepquota because they have a hard limit set. D'oh! JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom.
;-) Ignore my other message on mmcheckquota then. On 2014 Nov 27. md, at 18:02 st, Jonathan Buzzard wrote:
On Thu, 2014-11-27 at 09:47 +0000, Jonathan Buzzard wrote:
On Wed, 2014-11-26 at 10:14 +0000, Laurence Alexander Hurst wrote:
Hmm, mmrepquota is reporting no files owned by any of the users in question. I¹ll see if `find` disagrees. They have the default fileset user quotas applied, so they¹re not users we¹ve edited to grant quota extensions to. We have had a problem (which IBM have acknowledged, iirc) whereby it is not possible to reset a user¹s quota back to the default if it has been modified, perhaps this is related? I¹ll see if `find` turns anything up or I¹ll raise a ticket with IBM and see what they think.
I¹ve pulled out a single example, but all 75 users I have are the same.
mmrepquota gpfs | grep 8695 8695 nbu USR 0 0 5368709120 0 none | 0 0 0 0 none 8695 bb USR 0 0 1073741824 0 none | 0 0 0 0 none
While the number of files and usage is zero look at those "in doubt" numbers.
Ignore that those are quota numbers. Hard when the column headings are missing.
Anyway a "Homer Simpson" momentum coming up...
Simple answer really remove the quotas for those users in those file sets (I am presuming they are per fileset user hard limits). They are sticking around in mmrepquota because they have a hard limit set. D'oh!
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
participants (4)
-
Jonathan Buzzard -
Laurence Alexander Hurst -
P Serocka -
Wahl, Edward
