A question about showing disk space
I use df -h to list the used disk and get followings:
Code:
[root@s003ap02-test ~]# df -h As I try to list the detail I get followings: Code:
[root@s003ap02-test ~]# du -sh /home/* Someone knows why? |
Hi thomas2004ch,
Try the command: Code:
$ du -shc /home |
Reserved Block Count
Okay, you're "Reserved Blocks Percentage" might be a wee bit too high on that filesystem.
Back in the days of old, when disks were smaller, the default behavior for mkfs.ext2 and mkfs.ext3 was to set a "Reserved Blocks Percentage" to 5%. Traditionally, this is so root-owned processes can still write space when bad little users processes max-out filesystems. To see how many blocks are currently marked as reserved on an ext2 or ext3 filesystem, run the following command; dumpe2fs /dev/mapper/vg00-lv_home | grep -i "reserved block count" That'll show you how many blocks are restricted. Multiply that by how big your actual blocks are, and you'll know what percentage of your filesystem is restricted to root. Keep in mind, your block size can be set when you initially use mkfs.ext2 and mkfs.ext3 to create a filesystem, as can the "reserved block count". To change the "Reserved Block Count" on an existing ext2 and ext3, run the following command; tune2fs -m 1 /dev/mapper/vg00-lv_home Then do a "df -h" and see if that straightens things out. |
Quote:
|
All times are GMT -5. The time now is 09:06 PM. |