All of lore.kernel.org
 help / color / mirror / Atom feed
* btrfs raid5 with mixed disks
@ 2015-02-09 22:24 Rich Freeman
  2015-02-09 22:47 ` Hugo Mills
  0 siblings, 1 reply; 2+ messages in thread
From: Rich Freeman @ 2015-02-09 22:24 UTC (permalink / raw)
  To: Btrfs BTRFS

How does btrfs raid5 handle mixed-size disks?  The docs weren't
terribly clear on this.

Suppose I have 4x3TB and 1x1TB disks.  Using conventional lvm+mdadm in
raid5 mode I'd expect to be able to fit about 10TB of space on those
(2TB striped across 4 disks plus 1TB striped across 5 disks after
partitioning).  How much would btrfs be able to store in the same
configuration?  I did see something about being able to use fixed-size
stripes, and I'm not sure if this helps.  If it does, are there any
penalties, especially with future expansion of the array?

With raid1 mode btrfrs is reasonably smart about mixed disk sizes, and
you usually end up with half of the total space available.

--
Rich

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: btrfs raid5 with mixed disks
  2015-02-09 22:24 btrfs raid5 with mixed disks Rich Freeman
@ 2015-02-09 22:47 ` Hugo Mills
  0 siblings, 0 replies; 2+ messages in thread
From: Hugo Mills @ 2015-02-09 22:47 UTC (permalink / raw)
  To: Rich Freeman; +Cc: Btrfs BTRFS

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

On Mon, Feb 09, 2015 at 05:24:42PM -0500, Rich Freeman wrote:
> How does btrfs raid5 handle mixed-size disks?  The docs weren't
> terribly clear on this.
> 
> Suppose I have 4x3TB and 1x1TB disks.  Using conventional lvm+mdadm in
> raid5 mode I'd expect to be able to fit about 10TB of space on those
> (2TB striped across 4 disks plus 1TB striped across 5 disks after
> partitioning).  How much would btrfs be able to store in the same
> configuration?  I did see something about being able to use fixed-size
> stripes, and I'm not sure if this helps.  If it does, are there any
> penalties, especially with future expansion of the array?
> 
> With raid1 mode btrfrs is reasonably smart about mixed disk sizes, and
> you usually end up with half of the total space available.

   http://carfax.org.uk/btrfs-usage/ may be useful here.

   Hugo.

-- 
Hugo Mills             | "It was half way to Rivendell when the drugs began
hugo@... carfax.org.uk | to take hold"
http://carfax.org.uk/  |                                      Hunter S Tolkien
PGP: 65E74AC0          |                        Fear and Loathing in Barad Dûr

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-09 22:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-09 22:24 btrfs raid5 with mixed disks Rich Freeman
2015-02-09 22:47 ` Hugo Mills

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.