Daniel Berteaud
2017-Nov-13 09:04 UTC
[Gluster-users] Help with reconnecting a faulty brick
Hi everyone. I'm running a simple Gluster setup like this: ? * Replicate 2x1 ? * Only 2 nodes, with one brick each ? * Nodes are CentOS 7.0, uising GlusterFS 3.5.3 (yes, I know it's old, I just can't upgrade right now) No sharding or anything "fancy". This Gluster volume is used to host VM images, and are used by both nodes (which are gluster server and clients). Last week, I had a big storage issue, related to LVM (I'll probably post some more about it as I have other questions regarding to this failure), but anyway, I had data corruption, I had to disconnect one brick and continue on a single one. On this brick still alive, all the files have been modified, some renamed, some created. Now, I need to reconnect the faulty brick. It still have data, but which I want to discard. I don't want to reconnect it right away because I'm not sure what's the state of the data on this brick for Gluster, I'd just like to discard everything and sync from the running brick. I red http://docs.gluster.org/en/latest/Administrator%20Guide/Managing%20Volumes/#replace-faulty-brick but my setup has some differences (I'm in pure replication mode, no distribution, and I'm not replacing a brick, I just want to bring back a previously existing one, I just want to be sure Gluster will discard its data and sync from the other, and not create a split brain situation) Could I just remove the content of the brick (including the .glusterfs directory) and reconnect ? I'd really like some help from GlusterFS experts here :-) Cheers, Daniel -- Logo FWS *Daniel Berteaud* FIREWALL-SERVICES SAS. Soci?t? de Services en Logiciels Libres Tel : 05 56 64 15 32 <tel:0556641532> Matrix: @dani:fws.fr /www.firewall-services.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20171113/ccfa0544/attachment.html>
Daniel Berteaud
2017-Nov-13 20:07 UTC
[Gluster-users] Help with reconnecting a faulty brick
Le 13/11/2017 ? 10:04, Daniel Berteaud a ?crit?:> > Could I just remove the content of the brick (including the .glusterfs > directory) and reconnect ? >In fact, what would be the difference between reconnecting the brick with a wiped FS, and using gluster volume remove-brick vmstore replica 1 master1:/mnt/bricks/vmstore gluster volume add-brick myvol replica 2 master1:/mnt/bricks/vmstore gluster volume heal vmstore full As explained here: http://lists.gluster.org/pipermail/gluster-users/2014-January/015533.html ? Cheers, Daniel -- Logo FWS *Daniel Berteaud* FIREWALL-SERVICES SAS. Soci?t? de Services en Logiciels Libres Tel : 05 56 64 15 32 <tel:0556641532> Matrix: @dani:fws.fr /www.firewall-services.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20171113/ce16c3e7/attachment.html>
Daniel Berteaud
2017-Nov-15 07:24 UTC
[Gluster-users] Help with reconnecting a faulty brick
Le 13/11/2017 ? 21:07, Daniel Berteaud a ?crit?:> > Le 13/11/2017 ? 10:04, Daniel Berteaud a ?crit?: >> >> Could I just remove the content of the brick (including the >> .glusterfs directory) and reconnect ? >> > > In fact, what would be the difference between reconnecting the brick > with a wiped FS, and using > > gluster volume remove-brick vmstore replica 1 master1:/mnt/bricks/vmstore > gluster volume add-brick myvol replica 2 master1:/mnt/bricks/vmstore > gluster volume heal vmstore full > > As explained here: > http://lists.gluster.org/pipermail/gluster-users/2014-January/015533.html > > ?No one can help ? Cheers, Daniel -- Logo FWS *Daniel Berteaud* FIREWALL-SERVICES SAS. Soci?t? de Services en Logiciels Libres Tel : 05 56 64 15 32 <tel:0556641532> Matrix: @dani:fws.fr /www.firewall-services.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20171115/91c6da73/attachment.html>