How to repair split brain files under GlusterFS
How to repair the cracked brain file under GlusterFS, aiming at this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find an easier way.
Some instructions on repairing GlusterFS cracked brain files on the Internet
1 、 Fixing a GlusterFS split-brain
Https://inuits.eu/blog/fixing-glusterfs-split-brain
The methods provided when deleting invalid copies are as follows:
Srv02 $sudo find / export/brick1/sdb1/-samefile / export/brick1/sdb1/test-print-delete/export/brick1/sdb1/.glusterfs/47/0a/470a742c-b0d6-4846-9ab3-2483c3a0c8da/export/brick1/sdb1/test
This method can be very slow to find a large number of files, especially online servers.
You can find and delete it directly through the gfid in the file extension attribute.
2 、 GlusterFS Split-Brain Recovery Made Easy
Http://blog.gluster.org/2014/02/glusterfs-split-brain-recovery-made-easy/
This article provides a splitmount tool through which you can find out the fault copy more conveniently, and of course, you can also compare it manually in the background.
The schematic diagram of the tool is as follows:
This is the answer to the question about how to repair the cracked brain file under GlusterFS. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.