public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* A bug with multiple devices?
@ 2008-12-30  1:44 Shen Feng
  2008-12-30 10:45 ` Chris Samuel
  2008-12-31  1:11 ` Shen Feng
  0 siblings, 2 replies; 12+ messages in thread
From: Shen Feng @ 2008-12-30  1:44 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I create a raid-1 btrfs with the following command.

[root@localhost ~]# fdisk -l /dev/sdb

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb44829ea

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        4863    39062016   83  Linux
/dev/sdb2            4864        9726    39062047+  83  Linux
/dev/sdb3            9727       38905   234375905+   f  W95 Ext'd (LBA)
/dev/sdb5            9727       14590    39063374   83  Linux
/dev/sdb6           14590       19453    39068690+   7  HPFS/NTFS
/dev/sdb7           19454       29178    78116031   83  Linux
/dev/sdb8           29179       31610    19535008+  83  Linux
/dev/sdb9           31611       34041    19526976   83  Linux
/dev/sdb10          34042       36473    19535008+  83  Linux
/dev/sdb11          36474       38904    19526976   83  Linux

[root@localhost ~]# mkfs.btrfs -m raid1 /dev/sdb8 /dev/sdb9 /dev/sdb10 /dev/sdb11
adding device /dev/sdb9 id 2
adding device /dev/sdb10 id 3
adding device /dev/sdb11 id 4
fs created label (null) on /dev/sdb8
	nodesize 4096 leafsize 4096 sectorsize 4096 size 74.50GB
Btrfs v0.16-29-g0d53b21

[root@localhost ~]# mount -t btrfs /dev/sdb8 /mnt/btrfs[root@localhost ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
...
/dev/sdb8             78123968        28  78123940   1% /mnt/btrfs

I think the partition size is no correct since this is a raid-1 partition.
The size should be half.
Is this a bug?

-Shen

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

end of thread, other threads:[~2009-01-01  0:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-30  1:44 A bug with multiple devices? Shen Feng
2008-12-30 10:45 ` Chris Samuel
2008-12-30 11:14   ` Chris Samuel
2008-12-30 21:19     ` Chris Mason
2008-12-30 11:35   ` Yan Zheng
2008-12-30 12:03     ` Chris Samuel
2008-12-30 12:19     ` Chris Samuel
2008-12-31  1:11 ` Shen Feng
2008-12-31  1:17   ` Liu Hui
2008-12-31  1:43     ` Shen Feng
2009-01-01  0:52       ` Chris Samuel
2008-12-31  3:30     ` Shen Feng

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