Koozali.org: home of the SME Server

Quotas incorrectly reporting size

Tim

Quotas incorrectly reporting size
« on: October 07, 2002, 07:28:32 PM »
I'm running SME 5.5 and when I view the quota size from the server manager, or server console, it says I have over 800 megs in my home dir but when I look in the my home folder it is empty. I i evven tried to put a quota on my home dir, and whan I tried to copy a file to it, it gave me a message that I was over my limit.

Any sugestions greatly appreciated.

Thanks
Tim

Tim Perreault

Re: Quotas incorrectly reporting size
« Reply #1 on: October 25, 2002, 07:56:50 PM »
HELP!!!!!

Can anyone please help with this. I now have 2 more users with the same problem.

Quota is reporting alot of space used, when the home dir is empty, and we don't use the mail yet.

Thanks

Paul McEnery

Re: Quotas incorrectly reporting size
« Reply #2 on: October 28, 2002, 09:17:08 PM »
Tim

You need to log in as root at the console and run the following command:

quotacheck -avug




Regards

Paul

Tim Perreault

Re: Quotas incorrectly reporting size
« Reply #3 on: October 29, 2002, 12:50:25 AM »
Hi Paul thanks, but that didn't help. I get the same thing. I even deleted  my account, than ran

/sbin/e-smith/db accounts delete perreaut

and recreated my account. the only difference is the total size went from
881.81 megs to 881.76 megs and my folder is still empty. I can't figure this out.

Any other tricks to try.


Thanks
Tim

Lasse Johansson

Re: Quotas incorrectly reporting size
« Reply #4 on: October 29, 2002, 12:58:30 PM »
Firstly, the qouta doesn't set "home dirs", it sets partitions...

So, if the user saves files in other places that home dir, the quota still applies.

For a list of all files belonging to a specific user, try this command:

ls / -lR | grep (accountname) > name_of_container_file

This creates a text file (name_of_container_file) where the output of the command is stored.

View the file with:

less name_of_container_file

If this file is really empty, then you've probably run  into some kind of bug...

Paul McEnery

Re: Quotas incorrectly reporting size
« Reply #5 on: October 29, 2002, 03:00:34 PM »
Tim

I have a client who had this problem on 5.5 and after running that command all the inconsistencies were sorted out.

Possibly you need to seek all files owned by your username on the system and verify that they are not taking up that space.

run replacing with your username:

find / -uid id |cut -c 5,6,7,8

This will print all files that are owned by .

I have seen inconsistencies in the display of the ammount of space used by a user and the command that I mentioned first did manage to resolve the problem.


Paul

Tim Perreault

Re: Quotas incorrectly reporting size
« Reply #6 on: October 31, 2002, 01:08:08 AM »
Thank you, that is the problem it's files belonging to me not in my home dir.

2 quick questions if i might. I found them with

find -user username

how do I go about un-associating them to my account?

Also how do I go about not letting it happen in the future?

I don't like using root if I don't have to, so I use my user name.

Thanks again for everything.

Deunan Knute

Re: Quotas incorrectly reporting size
« Reply #7 on: September 27, 2003, 05:12:26 PM »
Woaw!!

I have this problem where a user on my SMEu4 (haven't got around to upgrade to u5 yet) have Gigs used up where investigating the /home dir shows none whatsoever..

After searching, found the solution on how to fix the error..

I give many thanks to Mr Paul McEnery for the information which he posted _almost_ _a_ _year_ _ago!_


Best regards to all

Deunan Knute


Paul McEnery wrote:
>
> Tim
>
> You need to log in as root at the console and run the
> following command:
>
> quotacheck -avug
>
>
>
>
> Regards
>
> Paul