Operating System - HP-UX
1753774 Members
6851 Online
108799 Solutions
New Discussion юеВ

"find" failed to find the files reported by "quot"

 
newa
Frequent Advisor

"find" failed to find the files reported by "quot"

Hi

On a rp3440/HP-UX11iV2 server "quot" reported that on the root volumne "/" (/dev/vg00/lvol3) there were 3 files owned by jwolf as follows:

# quot -f /
/dev/vg00/rlvol3 (/):
848968 3 jwolf <<=== this line
299169 1369 bin
9109 1203 root
8 8 lp
1 1 uucp
#

But when I used "find" as the following:

# find / -user jwolf

All the files returned by command above were all in the /home/jwolf directory which is on a different logic volumne (/dev/vg00/lvol4) - no files owned by jwolf were on the root volumne (/dev/vg00/lvol3)

How can I find/remove those 3 files reported by "quot" and owned by jwolf on /dev/vg00/lvol3?

Thanks a lot in advance.


9 REPLIES 9
P Muralidhar Kini
Honored Contributor

Re: "find" failed to find the files reported by "quot"

Hi newa,

>> which is on a different logic volumne (/dev/vg00/lvol4)
>>- no files owned by jwolf were on the root volumne (/dev/vg00/lvol3)
Looks like the output of #quot command was referring to the files on the
"/dev/vg00/lvol4" volume.

what about the space consumption of the files owned by jwolf on
/dev/vg00/lvol4, is it 848968 (reported by quot)?

For more information on the QUOT command, refer -
http://docs.hp.com/en/B2355-90692/quot.1M.html

Regards,
Murali
Let There Be Rock - AC/DC
James R. Ferguson
Acclaimed Contributor

Re: "find" failed to find the files reported by "quot"

Hi:

> But when I used "find" as the following:
# find / -user jwolf
All the files returned by command above were all in the /home/jwolf directory which is on a different logic volumne (/dev/vg00/lvol4) - no files owned by jwolf were on the root volumne (/dev/vg00/lvol3)

If you don't want 'find()' to cross mountpoints you need to add '-xdev'. This is particularly important if you want to search the '/' directory as you have seen. Use:

# find / -xdev -user jwolf

If you want only files and not directories too, do:

# find / -xdev -type f -user jwolf

Regards!

...JRF...
Aneesh Mohan
Honored Contributor

Re: "find" failed to find the files reported by "quot"

How can I find/remove those 3 files reported by "quot" and owned by jwolf on /dev/vg00/lvol3?

Most probably those files got removed already ( which was in lvol3) from lvol3,inode allocation/deallocation may take a few moments.....

If you do #sync it may reflect in the next quot.

If your getting still ....please post

# quot -f /jwolf
# find / -xdev -user

Aneesh
Aneesh Mohan
Honored Contributor

Re: "find" failed to find the files reported by "quot"

wrong typo in above post

# quot -f /
# find / -xdev -user jwolf


Aneesh
James R. Ferguson
Acclaimed Contributor

Re: "find" failed to find the files reported by "quot"

Hi (again):

> How can I find/remove those 3 files reported by "quot" and owned by jwolf on /dev/vg00/lvol3?

To see the matches:

# find / -xdev -type f -user jwolf -exec ls -l {} +

To remove the matches:

# find / -xdev -type f -user jwolf -exec rm {} +

Regards!

...JRF...
newa
Frequent Advisor

Re: "find" failed to find the files reported by "quot"

Thank you all for the suggestions.

The problem is "quot" sees 3 files owned by jwolf but "find" could not find those 3 files. And "bdf" reported the filesystem is full. See below please.

Thanks.

###########################################


# quot -f /
/dev/vg00/rlvol3 (/):
848968 3 jwolf
299169 1369 bin
9216 1203 root
8 8 lp
1 1 uucp
# find / -xdev -user jwolf
#

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1179648 1179648 0 100% /

James R. Ferguson
Acclaimed Contributor

Re: "find" failed to find the files reported by "quot"

Hi:

> The problem is "quot" sees 3 files owned by jwolf but "find" could not find those 3 files.

You are assuming that these are *files* where they could be *directories*. Compare:

# find / -xdev -type f -user jwolf

...with:

# find / -xdev -type d -user jwolf

...or simply:

# find / -xdev -user jwolf

> And "bdf" reported the filesystem is full.

So, then find out where the most space is consumed:

# du -xk / |sort -rnk1,1|more

Make sure that there are no regular files in '/dev' too. You might find objects like '/dev/rmt/om' [that's an "o" instead of a zero].

Regards!

...JRF...
chris huys_4
Honored Contributor

Re: "find" failed to find the files reported by "quot"

Hi,

# umount /home

And do again the find.

Greetz,
Chris
newa
Frequent Advisor

Re: "find" failed to find the files reported by "quot"

I found out those 3 "hiden" files were under /u01 directory when I boot the server into single user mode. At the default run level (3) /u01 became the mount point of a LUN presented to the server recently.

Thank you all