LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-05-2009, 06:57 PM   #1
taoleicn
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
What does "Used Dev Size" mean (mdadm --detail)


HELLO.

In lab environment, I create /dev/md0, consisted of 3 partitions.
Each partition has 128MB.

Because the type is RAID5, there are about 256MB available for data.

After mounting /dev/md0 to /var/share/, "df -h" shows the correct size (259MB Free). But the output of "mdadm --detail /dev/md0" shows the following:
...
Array Size : 272896 (266.54 MiB 279.45 MB)
Used Dev Size : 136448 (133.27 MiB 139.73 MB)
...


What does "Used Dev Size" refer to?

THANK U.
 
Old 11-05-2009, 07:26 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 66
Just what it says, the amount used.
 
Old 11-05-2009, 08:15 PM   #3
taoleicn
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I think the amount used should be near to zero.
I have not written any data to it, how can it use 136448 bytes?
 
Old 11-05-2009, 10:35 PM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 66
Look at your first post. You state that you have three partitions, that 256M is free.
What happened to the other 128M?
I am not good with RAID.
If you can, try mounting /dev/md0
with a graphical partition tool and see what the result is.
I don't see any options in the man page for reading RAID.
 
Old 11-06-2009, 12:01 AM   #5
taoleicn
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Hmm, yes, on a second thought, I think I understand the real meaning of "Used Dev Size". It refers to "disk size that are not for data".

For RAID0, "Used Dev Size" does not exist.
For RAID1, "Used Dev Size" equals to half of total disks' size.
For RAID5, "Used Dev Size" equals to size that are used for parity.

Thanks for replying, Mr-Bisquit.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Storage Question - mdadm - residual metadata for "old" /dev/md0 neiljt Linux - Hardware 4 09-09-2008 12:57 PM
mdadm says "mdadm: /dev/md1 not identified in config file" when booting FC7 raffeD Linux - Server 1 08-11-2008 11:47 AM
RAID 5 with mdadm "spare" and "active sync" confusion ufmale Linux - Server 1 12-08-2007 10:31 AM
Changing the size of "/dev/shm" in openSUSE 10.1 g4j31a5 Linux - General 4 04-26-2007 12:18 PM
How do I switch the labels "/dev/sda1" with "/dev/sda3" vonst Linux - General 10 05-27-2006 10:48 PM


All times are GMT -5. The time now is 11:50 AM.

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
Open Source Consulting | Domain Registration