Re: multiple device usage

2008-12-31 Thread Chris Samuel
On Wed, 31 Dec 2008 8:25:08 am Chris Mason wrote: > This gets confusing in a hurry, but the idea is to duplicate metadata by > default.  So, if you're using the default mount options on a single > drive and add a second drive, it should switch metadata to raid1. Yup, that's what I inferred from y

Re: multiple device usage

2008-12-30 Thread Chris Mason
On Mon, 2008-12-29 at 20:35 +0800, Yan Zheng wrote: > 2008/12/29 Roland : > >>> so i can do btrfs-vol -r /dev/sdb while it`s being mounted, pull the disk > >>> , > >>> replace it with a bigger one, rescan-scsi-bus, mkfs.btrfs the new disk > >>> and > >> > >>

Re: multiple device usage

2008-12-30 Thread Chris Mason
On Mon, 2008-12-29 at 23:16 +0800, Yan Zheng wrote: > 2008/12/29 Chris Samuel : > > Hello Yan, > > > > On Mon, 29 Dec 2008 11:33:18 pm Yan Zheng wrote: > > > >> 2008/12/29 Chris Samuel : > >> > >> > The rebalancing code does appear (from a naive read of the code) to be > >> > able to rebalance over

Re: multiple device usage

2008-12-29 Thread Yan Zheng
2008/12/29 Chris Samuel : > Hello Yan, > > On Mon, 29 Dec 2008 11:33:18 pm Yan Zheng wrote: > >> 2008/12/29 Chris Samuel : >> >> > The rebalancing code does appear (from a naive read of the code) to be >> > able to rebalance over stripes, but I have no idea if the disk format >> > currently support

Re: multiple device usage

2008-12-29 Thread Chris Samuel
Hello Yan, On Mon, 29 Dec 2008 11:33:18 pm Yan Zheng wrote: > 2008/12/29 Chris Samuel : > > > The rebalancing code does appear (from a naive read of the code) to be > > able to rebalance over stripes, but I have no idea if the disk format > > currently supports changing that on the fly. > > The r

Re: multiple device usage

2008-12-29 Thread Yan Zheng
2008/12/29 Roland : >>> so i can do btrfs-vol -r /dev/sdb while it`s being mounted, pull the disk >>> , >>> replace it with a bigger one, rescan-scsi-bus, mkfs.btrfs the new disk >>> and >> >>~~~ >>

Re: multiple device usage

2008-12-29 Thread Yan Zheng
2008/12/29 Chris Samuel : > On Sat, 27 Dec 2008 5:45:42 pm Chris Samuel wrote: > >> I'll add two questions that're not answered by the Wiki too.. :-) > > Looking at the source implies to me: > >> 1) If you add a second disk to an existing btrfs filesystem, can you get it >> to set it up as a RAID-1

Re: multiple device usage

2008-12-29 Thread Roland
so i can do btrfs-vol -r /dev/sdb while it`s being mounted, pull the disk , replace it with a bigger one, rescan-scsi-bus, mkfs.btrfs the new disk and ~~~ This step will fail, you

Re: multiple device usage

2008-12-29 Thread Chris Samuel
On Sat, 27 Dec 2008 5:45:42 pm Chris Samuel wrote: > I'll add two questions that're not answered by the Wiki too.. :-) Looking at the source implies to me: > 1) If you add a second disk to an existing btrfs filesystem, can you get it > to set it up as a RAID-1 arrangement rather than just rebala

Re: multiple device usage

2008-12-29 Thread Stephan von Krawczynski
On Sun, 28 Dec 2008 21:26:11 +0800 "yanhai zhu" wrote: > > so i can do btrfs-vol -r /dev/sdb while it`s being mounted, pull the disk , > > replace it with a bigger one, rescan-scsi-bus, mkfs.btrfs the new disk and > ~~~ >

Re: multiple device usage

2008-12-28 Thread yanhai zhu
> so i can do btrfs-vol -r /dev/sdb while it`s being mounted, pull the disk , > replace it with a bigger one, rescan-scsi-bus, mkfs.btrfs the new disk and ~~~ This step will fail, yo

Re: multiple device usage

2008-12-27 Thread Roland
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/sd

Re: multiple device usage

2008-12-26 Thread Chris Samuel
On Sat, 27 Dec 2008 10:15:18 am devz...@web.de wrote: > http://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices I'll add two questions that're not answered by the Wiki too.. :-) 1) If you add a second disk to an existing btrfs filesystem, can you get it to set it up as a RAID-1

Re: multiple device usage

2008-12-26 Thread Yan Zheng
devz...@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: >