LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Thread Tools
Old 11-05-2009, 07:57 PM   #1
taoleicn
LQ Newbie
 
Registered: Nov 2009
Posts: 3
Thanked: 0
What does "Used Dev Size" mean (mdadm --detail)


[Log in to get rid of this advertisement]
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.
windows_xp_2003 taoleicn is offline     Reply With Quote
Old 11-05-2009, 08:26 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, NetBSD, Debian
Posts: 218
Blog Entries: 5
Thanked: 17
Just what it says, the amount used.
linuxdebian Mr-Bisquit is offline     Reply With Quote
Old 11-05-2009, 09:15 PM   #3
taoleicn
LQ Newbie
 
Registered: Nov 2009
Posts: 3
Thanked: 0

Original Poster
I think the amount used should be near to zero.
I have not written any data to it, how can it use 136448 bytes?
windows_xp_2003 taoleicn is offline     Reply With Quote
Old 11-05-2009, 11:35 PM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, NetBSD, Debian
Posts: 218
Blog Entries: 5
Thanked: 17
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.
linuxdebian Mr-Bisquit is offline     Reply With Quote
Thanked by:
Old 11-06-2009, 01:01 AM   #5
taoleicn
LQ Newbie
 
Registered: Nov 2009
Posts: 3
Thanked: 0

Original Poster
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.
windows_xp_2003 taoleicn is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 07:12 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration