Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-20-2009, 09:27 PM   #1
LQ Newbie
Registered: May 2009
Posts: 4

Rep: Reputation: 0
df reports vastly different usage on raid array

I'm having a problem where df and du report different disk usage on a raid10 array created with mdadm. Here is some output:

> du -sh /data01
1.2T /data01

> df -h /data01
Filesystem Size Used Avail Use% Mounted on
/dev/md0 1.4T 169G 1.2T 13% /data01

> df -i /data01
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/md0 91578368 -188528 91766896 0% /data01

> mdadm --detail /dev/md0
Version : 00.90
Creation Time : Wed Aug 20 00:14:12 2008
Raid Level : raid10
Array Size : 1465148928 (1397.27 GiB 1500.31 GB)
Used Dev Size : 732574464 (698.64 GiB 750.16 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Wed May 20 22:17:14 2009
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0

Layout : near=2, far=1
Chunk Size : 64K

UUID : 967aec6e:cbbe7390:aba2e195:aa6694ad
Events : 0.2059734

Number Major Minor RaidDevice State
0 8 96 0 active sync /dev/sdg
1 8 80 1 active sync /dev/sdf
2 8 48 2 active sync /dev/sdd
3 8 64 3 active sync /dev/sde

The 1.2T used from du and 1.2T free from df is a coincidence, since it has reported different numbers in the past. But the 1.2T used is the correct number.

I have a few other disks, including a hardware raid1 array, and df reports the correct usage for those. Any ideas on why this might be? The negative inode listing for IUsed seems to be the biggest hint towards a solution, but I can't figure out why it's saying that.

Google brings up some results, but they don't seem to be related to this problem.

Last edited by tops008; 05-21-2009 at 04:39 PM.


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
Need help with bash array usage jhansonxi Programming 8 07-09-2008 07:33 PM
mdadm reports no superblock trying to rebuild failed RAID 5 hotcut23 Linux - Hardware 0 08-18-2007 01:39 AM
df reports 100% usage miner49er Debian 2 03-24-2006 05:20 PM
Rename/VI/Awstats Reports Usage nistelrooy Linux - General 7 07-16-2005 09:02 PM
df reports wrong disk usage Mathieu_G Linux - General 4 04-13-2005 02:44 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:06 PM.

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