<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks&nbsp;Karthik!<div class=""><br class=""></div><div class="">I was trying to find some resolution methods from [2] but unfortunately none worked (I can explain what I tried if needed).</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div class="">I guess the volume you are talking about is of type replica-2 (1x2).</div></div></div></div></div></blockquote>That’s correct, aware of the arbiter solution but still didn’t took time to implement.</div><div class=""><br class=""></div><div class="">From the info results I posted, how to know in which situation I am. No files are mentioned in spit brain, only directories. One brick has 3 entries and one two entries.<div class=""><br class="webkit-block-placeholder"></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">sudo gluster volume heal storage2 info</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[sudo] password for sshadmin:&nbsp;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Brick storage3:/data/data-cluster</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&lt;gfid:256ca960-1601-4f0d-9b08-905c6fd52326&gt;&nbsp;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&lt;gfid:7a63a729-c48f-4a00-9040-c3e2a0710ae6&gt;&nbsp;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/dms/final_archive - Possibly undergoing heal</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Status: Connected</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Number of entries: 3</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Brick storage4:/data/data-cluster</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&lt;gfid:276fec9a-1c9b-4efe-9715-dcf4207e99b0&gt;&nbsp;</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/dms/final_archive - Possibly undergoing heal</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Status: Connected</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Number of entries: 2</span></div></div><div class=""><br class=""></div><div class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">- Kindest regards,<br class=""><br class="">Milos Cuculovic<br class="">IT Manager<br class=""><br class="">---<br class="">MDPI AG<br class="">Postfach, CH-4020 Basel, Switzerland<br class="">Office: St. Alban-Anlage 66, 4052 Basel,&nbsp;Switzerland<br class="">Tel. +41 61 683 77 35<br class="">Fax +41 61 302 89 18<br class=""><a href="mailto:cuculovic@mdpi.com" class="">Email:&nbsp;cuculovic@mdpi.com</a><br class="">Skype: milos.cuculovic.mdpi<br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Disclaimer: The information and files&nbsp;contained in this message are&nbsp;confidential and intended solely for the&nbsp;use of the individual or entity to whom&nbsp;they are addressed. If you have received&nbsp;this message in error, please notify me&nbsp;and delete this message from your&nbsp;system. You may not copy this message&nbsp;in its entirety or in part, or disclose its&nbsp;contents to anyone.</div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 21 Mar 2019, at 10:27, Karthik Subrahmanya &lt;<a href="mailto:ksubrahm@redhat.com" class="">ksubrahm@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">Note: I guess the volume you are talking about is of type replica-2 (1x2). Usually replica 2 volumes are prone to split-brain. If you can consider converting them to arbiter or replica-3, they will handle most of the cases which can lead to slit-brains. For more information see [1].<br class=""></div><div class=""><br class=""></div><div class="">Resolving the split-brain: [2] talks about how to interpret the heal info output and different ways to resolve them using the CLI/manually/using the favorite-child-policy.</div><div class="">If you are having entry split brain, and is a gfid split-brain (file/dir having different gfids on the replica bricks) then you can use the CLI option to resolve them. If a directory is in gfid split-brain in a distributed-replicate volume and you are using the source-brick option please make sure you use the brick of this subvolume, which has the same gfid as that of the other distribute subvolume(s) where you have the correct gfid, as the source.</div><div class="">If you are having a type mismatch then follow the steps in [3] to resolve the split-brain.</div><div class=""><br class=""></div><div class="">[1]&nbsp;<a href="https://docs.gluster.org/en/v3/Administrator%20Guide/Split%20brain%20and%20ways%20to%20deal%20with%20it/" class="">https://docs.gluster.org/en/v3/Administrator%20Guide/Split%20brain%20and%20ways%20to%20deal%20with%20it/</a></div><div class="">[2]&nbsp;<a href="https://docs.gluster.org/en/latest/Troubleshooting/resolving-splitbrain/" class="">https://docs.gluster.org/en/latest/Troubleshooting/resolving-splitbrain/</a></div><div class="">[3]&nbsp;<a href="https://docs.gluster.org/en/latest/Troubleshooting/resolving-splitbrain/#dir-split-brain" class="">https://docs.gluster.org/en/latest/Troubleshooting/resolving-splitbrain/#dir-split-brain</a></div><div class=""><br class=""></div><div class="">HTH,</div><div class="">Karthik</div></div></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 21, 2019 at 1:45 PM Milos Cuculovic &lt;<a href="mailto:cuculovic@mdpi.com" class="">cuculovic@mdpi.com</a>&gt; wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">I was now able to catch the split brain log:<div class=""><br class=""></div><div class=""><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">sudo gluster volume heal storage2 info</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Brick storage3:/data/data-cluster</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">&lt;gfid:256ca960-1601-4f0d-9b08-905c6fd52326&gt;&nbsp;</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">&lt;gfid:7a63a729-c48f-4a00-9040-c3e2a0710ae6&gt;&nbsp;</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">/dms/final_archive - Is in split-brain</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Status: Connected</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Number of entries: 3</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Brick storage4:/data/data-cluster</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">&lt;gfid:276fec9a-1c9b-4efe-9715-dcf4207e99b0&gt;&nbsp;</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">/dms/final_archive - Is in split-brain</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Status: Connected</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Number of entries: 2</span></div><div class=""><br class=""></div><div class="">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">Milos</div></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="">On 21 Mar 2019, at 09:07, Milos Cuculovic &lt;<a href="mailto:cuculovic@mdpi.com" target="_blank" class="">cuculovic@mdpi.com</a>&gt; wrote:</div><br class="gmail-m_-1511781683842647198Apple-interchange-newline"><div class=""><div class="">Since 24h, after upgrading from 4.0 to 4.1.7 one of the servers, the heal shows this:<br class=""><br class="">sudo gluster volume heal storage2 info<br class="">Brick storage3:/data/data-cluster<br class="">&lt;gfid:256ca960-1601-4f0d-9b08-905c6fd52326&gt; <br class="">&lt;gfid:7a63a729-c48f-4a00-9040-c3e2a0710ae6&gt; <br class="">/dms/final_archive - Possibly undergoing heal<br class=""><br class="">Status: Connected<br class="">Number of entries: 3<br class=""><br class="">Brick storage4:/data/data-cluster<br class="">&lt;gfid:276fec9a-1c9b-4efe-9715-dcf4207e99b0&gt; <br class="">/dms/final_archive - Possibly undergoing heal<br class=""><br class="">Status: Connected<br class="">Number of entries: 2<br class=""><br class="">The same files stay there. From time to time the status of the /dms/final_archive is in split brain at the following command shows:<br class=""><br class="">sudo gluster volume heal storage2 info split-brain<br class="">Brick storage3:/data/data-cluster<br class="">/dms/final_archive<br class="">Status: Connected<br class="">Number of entries in split-brain: 1<br class=""><br class="">Brick storage4:/data/data-cluster<br class="">/dms/final_archive<br class="">Status: Connected<br class="">Number of entries in split-brain: 1<br class=""><br class="">How to know the file who is in split brain? The files in /dms/final_archive are not very important, fine to remove (ideally resolve the split brain) for the ones that differ.<br class=""><br class="">I can only see the directory and GFID. Any idea on how to resolve this situation as I would like to continue with the upgrade on the 2nd server, and for this the heal needs to be done with 0 entries in sudo gluster volume heal storage2 info<br class=""><br class="">Thank you in advance, Milos.</div></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">
Gluster-users mailing list<br class="">
<a href="mailto:Gluster-users@gluster.org" target="_blank" class="">Gluster-users@gluster.org</a><br class="">
<a href="https://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank" class="">https://lists.gluster.org/mailman/listinfo/gluster-users</a></blockquote></div>
</div></blockquote></div><br class=""></div></body></html>