Re: Feature request: true RAID-1 mode

2012-07-02 Thread H. Peter Anvin
On 06/25/2012 04:00 PM, H. Peter Anvin wrote: I am aware of that, and it is not a problem... the one-device bootloader can find out *which* disk it is talking to by comparing uuids, and the btrfs data structures will tell it how to find the data on that specific disk. It does of course mean

Re: Feature request: true RAID-1 mode

2012-06-25 Thread H. Peter Anvin
On 06/25/2012 08:21 AM, Chris Mason wrote: Yes and no. If you have 2 drives and you add one more, we can make it do all new chunks over 3 drives. But, turning the existing double mirror chunks into a triple mirror requires a balance. -chris So trigger one. This is the exact analogue to

Re: Feature request: true RAID-1 mode

2012-06-25 Thread H. Peter Anvin
On 06/25/2012 03:28 PM, Gareth Pye wrote: To me one doesn't have to be triggered, a user expects to have to tell the disks to rebuild/resync/balance after adding a disk, they may want to wait till they've added all 4 disks and run a few extra commands before they run the rebalance. They do?

Re: Feature request: true RAID-1 mode

2012-06-25 Thread Gareth Pye
On Tue, Jun 26, 2012 at 8:37 AM, H. Peter Anvin h...@zytor.com wrote: They do?  E.g. mdadm doesn't make them... Hrm, you are right. It is something I always confirm is happening though. Without a M=N mode there would need to be two balances as the first balance would be doing it wrong :( --

Re: Feature request: true RAID-1 mode

2012-06-25 Thread Hugo Mills
On Mon, Jun 25, 2012 at 10:46:01AM -0700, H. Peter Anvin wrote: On 06/25/2012 08:21 AM, Chris Mason wrote: Yes and no. If you have 2 drives and you add one more, we can make it do all new chunks over 3 drives. But, turning the existing double mirror chunks into a triple mirror requires a

Re: Feature request: true RAID-1 mode

2012-06-25 Thread H. Peter Anvin
On 06/25/2012 03:54 PM, Hugo Mills wrote: On Mon, Jun 25, 2012 at 10:46:01AM -0700, H. Peter Anvin wrote: On 06/25/2012 08:21 AM, Chris Mason wrote: Yes and no. If you have 2 drives and you add one more, we can make it do all new chunks over 3 drives. But, turning the existing double mirror

Feature request: true RAID-1 mode

2012-06-20 Thread H. Peter Anvin
Yet another boot loader support request. Right now btrfs' definition of RAID-1 with more than two devices is a bit unorthodox: it stores on any two drives. True RAID-1 would instead store N copies on each of N devices, the same way an actual RAID-1 would operate with an arbitrary number of

Re: Feature request: true RAID-1 mode

2012-06-20 Thread Marios Titas
On Wed, Jun 20, 2012 at 12:27 PM, H. Peter Anvin h...@zytor.com wrote: Yet another boot loader support request. Right now btrfs' definition of RAID-1 with more than two devices is a bit unorthodox: it stores on any two drives.  True RAID-1 would instead store N copies on each of N devices,

Re: Feature request: true RAID-1 mode

2012-06-20 Thread Chris Mason
On Wed, Jun 20, 2012 at 06:35:30PM -0600, Marios Titas wrote: On Wed, Jun 20, 2012 at 12:27 PM, H. Peter Anvin h...@zytor.com wrote: Yet another boot loader support request. Right now btrfs' definition of RAID-1 with more than two devices is a bit unorthodox: it stores on any two drives.  

Re: Feature request: true RAID-1 mode

2012-06-20 Thread H. Peter Anvin
Could you have a mode, though, where M = N at all times, so a user doesn't end up adding a new drive and get a nasty surprise? Chris Mason chris.ma...@fusionio.com wrote: On Wed, Jun 20, 2012 at 06:35:30PM -0600, Marios Titas wrote: On Wed, Jun 20, 2012 at 12:27 PM, H. Peter Anvin