Re: [PATCH RESEND 1/2] btrfs: handle volume split brain scenario

2017-12-19 Thread Anand Jain
Suppose you have 3 devices in a raid1 and one goes missing.  The user can now, in trying to fix this, mount each of the two remaining devices separately (by accident of course), in which case you can still have a split brain situation. Austin, that's not possible a N disk raid1 can still

Re: [PATCH RESEND 1/2] btrfs: handle volume split brain scenario

2017-12-18 Thread Austin S. Hemmelgarn
On 2017-12-18 09:39, Anand Jain wrote: Now the procedure to assemble the disks would be to continue to mount the good set first without the device set on which new data can be ignored, and later run btrfs device scan to bring in the missing device and complete the RAID group which then shall

Re: [PATCH RESEND 1/2] btrfs: handle volume split brain scenario

2017-12-18 Thread Anand Jain
On 12/18/2017 08:52 PM, Nikolay Borisov wrote: On 17.12.2017 15:52, Anand Jain wrote: In two device configs of RAID1/RAID5 where one device can be missing in the degraded mount, or in the configs such as four devices RAID6 where two devices can be missing, in these type of configs it can

Re: [PATCH RESEND 1/2] btrfs: handle volume split brain scenario

2017-12-18 Thread Anand Jain
Now the procedure to assemble the disks would be to continue to mount the good set first without the device set on which new data can be ignored, and later run btrfs device scan to bring in the missing device and complete the RAID group which then shall reset the flag

Re: [PATCH RESEND 1/2] btrfs: handle volume split brain scenario

2017-12-18 Thread Nikolay Borisov
On 17.12.2017 15:52, Anand Jain wrote: > In two device configs of RAID1/RAID5 where one device can be missing > in the degraded mount, or in the configs such as four devices RAID6 > where two devices can be missing, in these type of configs it can form > two separate set of devices where each of

Re: [PATCH RESEND 1/2] btrfs: handle volume split brain scenario

2017-12-18 Thread Austin S. Hemmelgarn
On 2017-12-17 08:52, Anand Jain wrote: In two device configs of RAID1/RAID5 where one device can be missing in the degraded mount, or in the configs such as four devices RAID6 where two devices can be missing, in these type of configs it can form two separate set of devices where each of the set

[PATCH RESEND 1/2] btrfs: handle volume split brain scenario

2017-12-17 Thread Anand Jain
In two device configs of RAID1/RAID5 where one device can be missing in the degraded mount, or in the configs such as four devices RAID6 where two devices can be missing, in these type of configs it can form two separate set of devices where each of the set can be mounted without the other set.