LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-12-2013, 07:32 AM   #1
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,960

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
How to calculate effective disk capacity with RAID 5?


Hi,

I'm planning to install a storage server for a client, using an HP Proliant Microserver with 4 x 2 TB harddisks and RAID 5.

I have a similar configuration in my office, only with much smaller disks. Each disk is 250 GB. Here's what this looks like:

Code:
[root@nestor:~] # cat /proc/mdstat 
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] 
md3 : active raid5 sda3[0] sdd3[3] sdc3[2] sdb3[1]
      729317376 blocks level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
      
md2 : active raid1 sda2[0] sdd2[3] sdc2[2] sdb2[1]
      995904 blocks [4/4] [UUUU]
      
md1 : active raid1 sda1[0] sdd1[3] sdc1[2] sdb1[1]
      96256 blocks [4/4] [UUUU]
      
unused devices: <none>

[root@nestor:~] # df -h
Sys. fich.     Taille Util. Dispo Uti% Monté sur
/dev/md3         685G  517G  133G  80% /
/dev/md1          92M   38M   49M  44% /boot
tmpfs            1,5G     0  1,5G   0% /dev/shm

[root@nestor:~] # fdisk -l | grep sd | grep Disque
Disque /dev/sda*: 250.1*Go, 250059350016*octets
Disque /dev/sdb*: 250.1*Go, 250059350016*octets
Disque /dev/sdc*: 250.1*Go, 250059350016*octets
Disque /dev/sdd*: 250.1*Go, 250059350016*octets
In the example above, combining four 250 GB disks with RAID 5 results in 685 GB effective storage space.

Q: is there any formula or rule of thumb to calculate this storage space for disks with a different size, in my case 2 TB each?

Cheers,

Niki
 
Old 10-12-2013, 07:57 AM   #2
chemfire
Member
 
Registered: Sep 2012
Posts: 89

Rep: Reputation: Disabled
Raid 5 should give you the capacity of N_disks - 1. You need to keep in mind though formatted capacity is not the same as partition size. The filesystem itself uses some space.

Also df, ls etc report values in powers of 2, it looks like fdisk in your screen shot is using powers of 10. So what is sold to you as 250GB disk is really more like 238.
 
1 members found this post helpful.
Old 10-12-2013, 02:26 PM   #3
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,960

Original Poster
Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
OK thanks. It's just to have a rough idea. So basically my 4 x 2 TB array with RAID 5 will offer 4 x 2 - 2 = 6 TB minus some weird math powers stuff, so let's give it something between 5.0 and 5.5 TB.

Cheers,

Niki
 
Old 10-12-2013, 08:39 PM   #4
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 908

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Just use df -H (capital H) to get correct numbers with SI prefixes.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] disk capacity vanished drManhattan Linux - Newbie 2 03-28-2011 07:38 PM
Using mdadm with different capacity drives in RAID 5? lolhan Linux - Server 2 10-27-2009 08:18 AM
[SOLVED] Software RAID (mdadm) - RAID 0 returns incorrect status for disk failure/disk removed Marjonel Montejo Linux - General 4 10-04-2009 07:15 PM
RAID storage capacity calculation 2007fld Linux - Newbie 1 01-31-2008 11:50 AM
hardware raid 5, online capacity expansion, and parted hondaman Linux - Software 0 07-05-2006 01:00 PM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
Advertisement
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