Get the statistics of "the usage of disk " for every user
Author Message
Posted : Mon, 05 January 2009 07:38:45
Subject : Get the statistics of "the usage of disk " for every user
hi! I got a problem. Our storage pool 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)
bsulli
Posted : Tue, 06 January 2009 16:32:07
Subject : Get the statistics of "the usage of disk " for every user
Could use more important such as does 10TB span several filesystems? Are users restricted to only using disk space in home directories? What Linux OS and build are you using? Without knowing I'm going to assume a current OS with quota software installed by default. I would start with enabling the built in quota function on the filesystem and setup the quota very very high with a long grace period to start. Do it on a non production system until you understand it because it affects all users such as a database user like MySQL. Can bring things to a halt otherwise. Then you could get that info easily. Again it depends on how you configured the filesystem in the first place. Your English was just fine. One article http://www.linux.com/feature/118885 Another article http://downloads.techrepublic.com.com/5138-10877-6070368.html I always use quotas with my large filesystem customers.
jiangyou
Posted : Wed, 07 January 2009 02:50:32
Subject : Get the statistics of "the usage of disk " for every user
There are single filesystem,and our users are restricted to using /data directory only.We use RHEL 4.4 (2.6.9-42 kernel). Quota was installed. Thank you,bsulli ! I will make a study on quota from now on!