Re: [Gluster-devel] Automated split-brain resolution

2014-08-14 Thread Harshavardhana
Not sure. We can figure this out by traversing up the softlinks for directories. But for files there is no way to find the parent at the moment. This email from Dan Mons puts some perspective on what actually people expect - https://www.mail-archive.com/gluster-devel@gluster.org/msg00392.html

Re: [Gluster-devel] Automated split-brain resolution

2014-08-14 Thread Joe Julian
Some people. Depends on use case. Dan's is pretty specific. On August 14, 2014 10:58:33 AM PDT, Harshavardhana har...@harshavardhana.net wrote: Not sure. We can figure this out by traversing up the softlinks for directories. But for files there is no way to find the parent at the moment.

Re: [Gluster-devel] Automated split-brain resolution

2014-08-14 Thread Harshavardhana
On Thu, Aug 14, 2014 at 11:12 AM, Joe Julian j...@julianfamily.org wrote: Some people. Depends on use case. Dan's is pretty specific. Those are majority of the users/customers. -- Religious confuse piety with mere ritual, the virtuous confuse regulation with outcomes

Re: [Gluster-devel] Automated split-brain resolution

2014-08-14 Thread Joe Julian
Not from what I see on IRC. I get a pretty broad set of use cases. I'd say about a third of them have end-user data that could be lost and the admin has no way of determining what's important between two copies of a split-brain. On 08/14/2014 11:45 AM, Harshavardhana wrote: On Thu, Aug 14,

Re: [Gluster-devel] Automated split-brain resolution

2014-08-12 Thread Pranith Kumar Karampuri
On 08/12/2014 11:29 AM, Harshavardhana wrote: This is a standard problem where there are split-brains in distributed systems. For example even in git there are cases where it gives up asking users to fix the file i.e. merge conflicts. If the user doesn't want split-brains they should move to

Re: [Gluster-devel] Automated split-brain resolution

2014-08-11 Thread Ravishankar N
On 08/09/2014 01:23 AM, Joe Julian wrote: Thinking about it more, I'd still rather have this functionality exposed at the client through xattrs. For 5 years I've thought about this, and the more I encounter split-brain, the more I think this is the needed approach. Joe, why do you feel

Re: [Gluster-devel] Automated split-brain resolution

2014-08-11 Thread Vijay Bellur
On 08/11/2014 11:20 AM, Pranith Kumar Karampuri wrote: On 08/09/2014 12:18 AM, Harshavardhana wrote: Some initial thoughts on the solution based on Harsha/Joe/Emmanuel's inputs are: 1) gluster volume heal volname info split-brain should give output in some 'format' giving stat/pending-matrix

Re: [Gluster-devel] Automated split-brain resolution

2014-08-11 Thread Joe Julian
On 08/10/2014 11:42 PM, Ravishankar N wrote: On 08/09/2014 01:23 AM, Joe Julian wrote: Thinking about it more, I'd still rather have this functionality exposed at the client through xattrs. For 5 years I've thought about this, and the more I encounter split-brain, the more I think this is

Re: [Gluster-devel] Automated split-brain resolution

2014-08-11 Thread Harshavardhana
This is a standard problem where there are split-brains in distributed systems. For example even in git there are cases where it gives up asking users to fix the file i.e. merge conflicts. If the user doesn't want split-brains they should move to replica-3 and enable client-quorum. But if the

Re: [Gluster-devel] Automated split-brain resolution

2014-08-08 Thread Harshavardhana
On Thu, Aug 7, 2014 at 1:35 AM, Ravishankar N ravishan...@redhat.com wrote: Manual resolution of split-brains [1] has been a tedious task involving understanding and modifying AFR's changelog extended attributes. To simplify and to an extent automate this task, we are proposing a new CLI

Re: [Gluster-devel] Automated split-brain resolution

2014-08-08 Thread Ravishankar N
On 08/08/2014 01:09 PM, Harshavardhana wrote: On Thu, Aug 7, 2014 at 1:35 AM, Ravishankar N ravishan...@redhat.com wrote: Manual resolution of split-brains [1] has been a tedious task involving understanding and modifying AFR's changelog extended attributes. To simplify and to an extent

Re: [Gluster-devel] Automated split-brain resolution

2014-08-08 Thread Joe Julian
On 08/07/2014 03:08 AM, Niels de Vos wrote: On Thu, Aug 07, 2014 at 03:17:11PM +0530, Ravishankar N wrote: On 08/07/2014 03:06 PM, Niels de Vos wrote: On Thu, Aug 07, 2014 at 02:05:34PM +0530, Ravishankar N wrote: Manual resolution of split-brains [1] has been a tedious task involving

Re: [Gluster-devel] Automated split-brain resolution

2014-08-08 Thread Harshavardhana
Wait, directories *are* supposed to automatically heal from split-brain? Guess I need to file a bug report. That doesn't happen. All the metadata and gfid can be the same, but since the trusted.afr are both dirty, it'll stay split-brain forever. Conservative merge happens, but 'directories'

Re: [Gluster-devel] Automated split-brain resolution

2014-08-08 Thread Joe Julian
Thinking about it more, I'd still rather have this functionality exposed at the client through xattrs. For 5 years I've thought about this, and the more I encounter split-brain, the more I think this is the needed approach. getfattr -n trusted.glusterfs.stat returns

Re: [Gluster-devel] Automated split-brain resolution

2014-08-08 Thread Harshavardhana
On Fri, Aug 8, 2014 at 12:53 PM, Joe Julian j...@julianfamily.org wrote: Thinking about it more, I'd still rather have this functionality exposed at the client through xattrs. For 5 years I've thought about this, and the more I encounter split-brain, the more I think this is the needed

Re: [Gluster-devel] Automated split-brain resolution

2014-08-07 Thread Pranith Kumar Karampuri
On 08/07/2014 02:05 PM, Ravishankar N wrote: Manual resolution of split-brains [1] has been a tedious task involving understanding and modifying AFR's changelog extended attributes. To simplify and to an extent automate this task, we are proposing a new CLI command with which the user can

Re: [Gluster-devel] Automated split-brain resolution

2014-08-07 Thread Niels de Vos
On Thu, Aug 07, 2014 at 02:05:34PM +0530, Ravishankar N wrote: Manual resolution of split-brains [1] has been a tedious task involving understanding and modifying AFR's changelog extended attributes. To simplify and to an extent automate this task, we are proposing a new CLI command with