linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alan Chandler <alan.chandler@hartley-consultants.com>
To: linux-btrfs@vger.kernel.org
Subject: Raid1 degraded mode
Date: Thu, 06 Jan 2011 16:41:53 +0000	[thread overview]
Message-ID: <4D25F0D1.1030009@hartley-consultants.com> (raw)

[-- 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


                 reply	other threads:[~2011-01-06 16:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D25F0D1.1030009@hartley-consultants.com \
    --to=alan.chandler@hartley-consultants.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).