LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-29-2007, 08:08 PM   #1
adn0r
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
Question Software RAID - where is all my space?


Hi All,

I have used mdadm to set up a RAID5 system using 3x500GB drives.

Code:
~# cat /proc/mdstat 
Personalities : [raid6] [raid5] [raid4] 
md0 : active raid5 hdd1[2] hdc1[1] hdb1[0]
      976767872 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
      
unused devices: <none>
Upon creating an etx3 filesystem and mounting, I see that I have about 50 GB missing from the filesystem!

Code:
/share# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             3.8G  573M  3.0G  16% /
varrun                 62M   48K   62M   1% /var/run
varlock                62M     0   62M   0% /var/lock
procbususb             62M   76K   62M   1% /proc/bus/usb
udev                   62M   76K   62M   1% /dev
devshm                 62M     0   62M   0% /dev/shm
/dev/md0              917G  200M  871G   1% /share

/share# ls -lah
total 24K
drwxr-xr-x  3 root root 4.0K 2007-08-30 10:35 .
drwxr-xr-x 22 root root 4.0K 2007-08-30 10:38 ..
drwx------  2 root root  16K 2007-08-30 10:35 lost+found
Note that the fs is currently completely empty. Where has the extra space gone??
 
Old 08-29-2007, 09:16 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,768

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
The ext3 filesystem reserves approximately 3% of available space for system use. That 3% doesn't show up as available, therefore it appears that you have missing disk space.

Note that 3% of 3x500 gig comes out to 45 gig.
 
Old 08-29-2007, 11:22 PM   #3
adn0r
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up

Ah Yes that was it. I knew that ext3 reserved some space but I never thought it to be such a large volume. Using tune2fs to change reserved blocks to 1% has made a difference.

Thanks.
 
  


Reply

Tags
raid, software


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 03:35 PM
software raid 0 and raid 5: which chunk size to choose? malo_umoran Linux - General 2 02-26-2007 06:19 PM
Will a ex - Software Raid 1 disk boot without Raid software? carlosruiz Linux - Software 0 05-27-2006 01:12 PM
Can fake raid be converted to linux software raid? jmacdonald801 Linux - General 3 01-30-2005 12:33 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM


All times are GMT -5. The time now is 02:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration