Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Netapp: toasters

find files owned by a particular user? (quota trouble)

 

 

Netapp toasters RSS feed   Index | Next | Previous | View Threaded


rrue at fhcrc

Jul 18, 2012, 11:34 AM

Post #1 of 3 (493 views)
Permalink
find files owned by a particular user? (quota trouble)

Hello All,

I have an IT user who's getting quota alerts despite only having a
fraction of the default quota in his actual home folder. If I run quota
report on his home drive this reports correctly. However, as he was
previously a Desktop Tech for another division (they have their home
drives on another volume of the same vfiler), a quota report for that
volume shows him as right at the limit. I'm pretty sure there are files
somewhere on that other division's home volume that he is the owner of.

How can I find those files? Preferably without flipping the archive bit
and needing a full backup of the whole volume?

Hope to hear from you,

Randy Rue
_______________________________________________
Toasters mailing list
Toasters [at] teaparty
http://www.teaparty.net/mailman/listinfo/toasters


tnail at austin

Jul 18, 2012, 12:21 PM

Post #2 of 3 (475 views)
Permalink
Re: find files owned by a particular user? (quota trouble) [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Randy,

if you are able to mount the volumes on a Linux host:

find <path> -type f -uid <user_id_number> -print

would be a pretty easy way to go.

cheers,

- -=Tom Nail

On Wed, 18 Jul 2012 11:34:10 -0700
Randy Rue <rrue [at] fhcrc> wrote:

> Hello All,
>
> I have an IT user who's getting quota alerts despite only having a
> fraction of the default quota in his actual home folder. If I run
> quota report on his home drive this reports correctly. However, as he
> was previously a Desktop Tech for another division (they have their
> home drives on another volume of the same vfiler), a quota report for
> that volume shows him as right at the limit. I'm pretty sure there
> are files somewhere on that other division's home volume that he is
> the owner of.
>
> How can I find those files? Preferably without flipping the archive
> bit and needing a full backup of the whole volume?
>
> Hope to hear from you,
>
> Randy Rue
> _______________________________________________
> Toasters mailing list
> Toasters [at] teaparty
> http://www.teaparty.net/mailman/listinfo/toasters

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAlAHDLAACgkQH7E81Q7leo5GfQCdFGaceEwz0uB0n2+yIvTJB+ew
TkcAnA27tP/F65KcscS0BQIuNQtQgndk
=d54V
-----END PGP SIGNATURE-----

_______________________________________________
Toasters mailing list
Toasters [at] teaparty
http://www.teaparty.net/mailman/listinfo/toasters


rrue at fhcrc

Jul 18, 2012, 1:35 PM

Post #3 of 3 (474 views)
Permalink
RE: find files owned by a particular user? (quota trouble) [In reply to]

Figured this out, and it turns out not to be much of a NetApp question
(sorry).

These are mounted via CIFS to Windows workstations for the most part.
Running dir /q from the CLI at least shows me the top-level folders that
aren't owned by the folder user and a fair number are owned by the IT
staffer in question.

In fact, most of the folders are either owned by builtin\administrator, or
some IT staffer who moved the data there in our last migration, or by no
one at all ("...").

I even have a python script that walks the volumes of the home vfiler (it
has several volumes, one for each division of our org). For each volume it
walks the directories and checks that the owner of the directory matches
the directory name. If so, nothing. If not, and the userid in question is
an active AD account, it changes ownership of the directory.

The big gotcha (why that script doesn't run automatically any more) is
that any changed folders will get backed up again the next time we run an
incremental. If I run it for the whole filer, basically every night's
incremental is a Full (and Fulls take several days).

My next step is probably to add the ability to only check certain
volume(s), and schedule the script to run before each Full.

Let me know any questions, concerns or feedback,

Randy

-----Original Message-----
From: toasters-bounces [at] teaparty [mailto:toasters-bounces [at] teaparty]
On Behalf Of Randy Rue
Sent: Wednesday, July 18, 2012 11:34 AM
To: toasters [at] teaparty
Subject: find files owned by a particular user? (quota trouble)

Hello All,

I have an IT user who's getting quota alerts despite only having a
fraction of the default quota in his actual home folder. If I run quota
report on his home drive this reports correctly. However, as he was
previously a Desktop Tech for another division (they have their home
drives on another volume of the same vfiler), a quota report for that
volume shows him as right at the limit. I'm pretty sure there are files
somewhere on that other division's home volume that he is the owner of.

How can I find those files? Preferably without flipping the archive bit
and needing a full backup of the whole volume?

Hope to hear from you,

Randy Rue
_______________________________________________
Toasters mailing list
Toasters [at] teaparty
http://www.teaparty.net/mailman/listinfo/toasters
_______________________________________________
Toasters mailing list
Toasters [at] teaparty
http://www.teaparty.net/mailman/listinfo/toasters

Netapp toasters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.