public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* RAID-10 arrays built with btrfs & md report 2x difference in available size?
@ 2010-01-24  5:31 0bo0
  2010-01-24 12:01 ` RK
  0 siblings, 1 reply; 14+ messages in thread
From: 0bo0 @ 2010-01-24  5:31 UTC (permalink / raw)
  To: linux-btrfs

I created a btrfs RAID-10 array across 4-drives,

 mkfs.btrfs -L TEST -m raid10 -d raid10 /dev/sda /dev/sdb /dev/sdc /dev/sdd
 btrfs-show
 	Label: TEST  uuid: 2ac85206-2d88-47d7-a1e7-a93d80b199f8
 	        Total devices 4 FS bytes used 28.00KB
 	        devid    1 size 931.51GB used 2.03GB path /dev/sda
 	        devid    2 size 931.51GB used 2.01GB path /dev/sdb
 	        devid    4 size 931.51GB used 2.01GB path /dev/sdd
 	        devid    3 size 931.51GB used 2.01GB path /dev/sdc

@ mount,

 mount /dev/sda /mnt
 df -H | grep /dev/sda
	/dev/sda               4.1T    29k   4.1T   1% /mnt

for RAID-10 across 4-drives, shouldn't the reported/available size be
1/2x4TB ~ 2TB?

e.g., using mdadm to build a RAID-10 array across the same drives,

 mdadm -v --create /dev/md0 --level=raid10 --raid-devices=4 /dev/sd[abcd]1
 pvcreate     /dev/md0
pvs
  PV         VG   Fmt  Attr PSize   PFree
  /dev/md0        lvm2 --   1.82T 1.82T

is the difference in available array space real, an artifact, or a
misunderstanding on my part?

thanks.

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: RAID-10 arrays built with btrfs & md report 2x difference in  available size?
@ 2010-01-29 21:57 Thomas Kupper
  2010-01-29 22:13 ` 0bo0
  0 siblings, 1 reply; 14+ messages in thread
From: Thomas Kupper @ 2010-01-29 21:57 UTC (permalink / raw)
  To: 0.bugs.only.0; +Cc: linux-btrfs


> noticing from above
> 
> >>  ... size 931.51GB used 2.03GB ...
> 
> 'used' more than the 'size'?
> 
> more confused ...

For me, it looks as if 2.03GB is way smaller than 931.51GB (2 << 931), no? Everything seems to be fine here.

And regarding your original mail: it seems that df is still lying about the size of the btrfs fs, check http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg00758.html

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

end of thread, other threads:[~2010-02-08 14:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-24  5:31 RAID-10 arrays built with btrfs & md report 2x difference in available size? 0bo0
2010-01-24 12:01 ` RK
2010-01-24 17:18   ` 0bo0
  -- strict thread matches above, loose matches on Subject: below --
2010-01-29 21:57 Thomas Kupper
2010-01-29 22:13 ` 0bo0
2010-01-29 22:38   ` RK
2010-01-29 23:46     ` jim owens
2010-01-29 23:53       ` 0bo0
2010-01-30 13:24         ` Goffredo Baroncelli
2010-01-30 13:29           ` Goffredo Baroncelli
2010-01-30 15:36         ` jim owens
2010-02-08  3:52           ` 0bo0
2010-02-08  3:54           ` 0bo0
2010-02-08 14:33             ` jim owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox