* Building a RAID post-mkfs?
@ 2009-10-16 17:54 Chris Ball
2009-10-26 9:35 ` Chris Mason
0 siblings, 1 reply; 2+ messages in thread
From: Chris Ball @ 2009-10-16 17:54 UTC (permalink / raw)
To: linux-btrfs
Hi,
I installed btrfs to one disk using the Fedora 12 installer; it
doesn't allow any configuration of the mkfs command by the user,
so it wasn't possible to mkfs with more than one disk.
I'd like to add a second disk, with either RAID0 or RAID1 between
the two -- the equivalent of "mkfs.btrfs -m raid0/1 -d raid0/1
/dev/sda /dev/sdb". Is it possible to create this non-destructively
now? If not, should it be? What would the implementation look like?
Thanks,
- Chris.
--
Chris Ball <cjb@laptop.org>
One Laptop Per Child
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Building a RAID post-mkfs?
2009-10-16 17:54 Building a RAID post-mkfs? Chris Ball
@ 2009-10-26 9:35 ` Chris Mason
0 siblings, 0 replies; 2+ messages in thread
From: Chris Mason @ 2009-10-26 9:35 UTC (permalink / raw)
To: Chris Ball; +Cc: linux-btrfs
On Fri, Oct 16, 2009 at 01:54:10PM -0400, Chris Ball wrote:
> Hi,
>
> I installed btrfs to one disk using the Fedora 12 installer; it
> doesn't allow any configuration of the mkfs command by the user,
> so it wasn't possible to mkfs with more than one disk.
>
> I'd like to add a second disk, with either RAID0 or RAID1 between
> the two -- the equivalent of "mkfs.btrfs -m raid0/1 -d raid0/1
> /dev/sda /dev/sdb". Is it possible to create this non-destructively
> now? If not, should it be? What would the implementation look like?
It's not very complex, you can take a look at how we upgrade from
single spindle dup to RAID1 for metadata when a second disk is added.
Basically once we have a block group with the new type we're able to
force new allocations to the new raid level. btrfs-vol -b does the
rest.
-chris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-26 9:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-16 17:54 Building a RAID post-mkfs? Chris Ball
2009-10-26 9:35 ` Chris Mason
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox