LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-05-2009, 01:43 AM   #1
uunuu
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
how to calculate the file space usage of every account?


hi!

I got a problem.

Our storage spool is full.
Almost 500 IO node(s),
Every IO node have about 10TB capacity of storage.
My boss want me to get this information:
Who used how many capacity of storage.

So I need a software or script to help me,
to calculate the file space usage of every account(user).

like this:
For I/O node number 1:
user:tom,usage:1000MB
user:lee,usage:3000MB

Is there anyone can help?

(forgive my poor English,please)
 
Old 01-05-2009, 04:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
well sounds like you should be using quota's in the first place, but if your accounts are all under /home/ then just run "du -h --max-depth=1 /home" and that will give you the size of each /home/user directory.
 
Old 01-06-2009, 08:52 PM   #3
uunuu
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you !
I will make a study on quota from now on!
 
Old 01-07-2009, 02:15 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
If your system actually uses quota, you can try the repquota command to retrieve information about the filesystem usage of each user.
 
Old 09-19-2009, 12:51 AM   #5
uunuu
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you everyone!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to calculate cpu and memory usage of a process narendra1310 Ubuntu 1 08-30-2008 02:39 AM
calculate /var/tmp usage for different machines on network sun_sun Linux - Networking 3 02-09-2008 06:37 AM
How change space usage of file systems Ejdaha Linux - Newbie 8 01-24-2007 01:35 AM
How to list file space usage estimate (du), SPECIFIED BY RANGE tsilok Linux - Newbie 6 10-24-2005 04:56 AM
Calculate the space of a folder Half_Elf Linux - General 4 05-18-2003 07:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration