All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yan Zheng <ukernel@gmail.com>
To: devzero@web.de
Cc: linux-btrfs@vger.kernel.org
Subject: Re: multiple device usage
Date: Sat, 27 Dec 2008 10:44:02 +0800	[thread overview]
Message-ID: <49559672.7060204@gmail.com> (raw)
In-Reply-To: <556243856@web.de>

devzero@web.de wrote:
> hello,
> 
> i have some difficulty in understanding multi-device handling in depth.
> 
> as http://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices 
> tells,
> 
> btrfs can span over multiple devices at the same time. (great feature, btw !)
> 
> ok then:
>  
> mkfs.btrfs -m single -d single  /dev/sdb /dev/sdc - creates a btrfs spanning 
> over /dev/sdb and sdc
> 
> mount /dev/sdb /btrfs - mounts it
> 
> btrfs-vol -b /btrfs - does a rebalancing of all data and metadata
> 
> btrfs-vol -r /dev/sdc - removes one of the volumes and redistributes any 
> extends in use on sdc to sdb (killer feature!!!)
> 
> but what if i want to remove /dev/sdb ? (as that one is in use for the 
> mount)
>  

Devices in btrfs are equal, so you can do this. The only glitch is
/proc/mounts and mount(8) get confused.

Regards
Yan Zheng 

  reply	other threads:[~2008-12-27  2:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-26 23:15 multiple device usage devzero
2008-12-27  2:44 ` Yan Zheng [this message]
2008-12-27 14:12   ` Roland
2008-12-28 13:26     ` yanhai zhu
2008-12-29 10:49       ` Stephan von Krawczynski
2008-12-29 12:31       ` Roland
2008-12-29 12:35         ` Yan Zheng
2008-12-30 21:43           ` Chris Mason
2008-12-27  6:45 ` Chris Samuel
2008-12-29 11:32   ` Chris Samuel
2008-12-29 12:33     ` Yan Zheng
2008-12-29 12:52       ` Chris Samuel
2008-12-29 15:16         ` Yan Zheng
2008-12-30 21:25           ` Chris Mason
2009-01-01  1:02             ` Chris Samuel

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=49559672.7060204@gmail.com \
    --to=ukernel@gmail.com \
    --cc=devzero@web.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.