linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Raid1 degraded mode
@ 2011-01-06 16:41 Alan Chandler
  0 siblings, 0 replies; only message in thread
From: Alan Chandler @ 2011-01-06 16:41 UTC (permalink / raw)
  To: linux-btrfs

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

I am trying to understand how btrfs works with Raid1.

Is it possible to create the filesystem with -m raid1 -d raid1 in which 
there is only one device available when the filesystem is created.  Is 
it possible to refer to a second device as "missing"

The use case I am thinking of is converting an existing raid1 setup from 
mdm + lvm + ext4 to btrfs with raid1 and subvolumes.

I would like to fail half of my existing mdm devices and re-initialise 
them as btrfs.  make subvolumes for each of my lvm logical volumes, copy 
the data over, then remove mdm and lvm entirely and add back in the 
devices that were supporting them as additional btrfs devices.

The problem I see is that, according to the wiki, specifying -m raid1 
and -d raid1 with a single device causes two copies to be made on the 
same device, whereas I really want it to start off degraded with only 
one copy until I add in the second device.  Trying to cram two copies on 
the one device will make it run out of space.



[-- Attachment #2: alan_chandler.vcf --]
[-- Type: text/x-vcard, Size: 147 bytes --]

begin:vcard
fn:Alan Chandler
n:Chandler;Alan
email;internet:alan.chandler@hartley-consultants.com
tel;cell:+44 7540 419 854
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-06 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-06 16:41 Raid1 degraded mode Alan Chandler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).