lemonnierk at ulrar.net
2017-Aug-25 21:21 UTC
[Gluster-users] GlusterFS as virtual machine storage
> > This concern me, and it is the reason I would like to avoid sharding. > How can I recover from such a situation? How can I "decide" which > (reconstructed) file is the one to keep rather than to delete? >No need, on a replica 3 that just doesn't happen. That's the main advantage of it, that and the fact that you can perform operations on your servers without having the volume go down. For a replica 2 though, it will happen. With or without sharding the operation is the same, it involves fiddling with gfids and is a bit annoying, but not that hard for one file. But with sharding enabled you'll need to pick each split brained shard out, which is I imagine a huge pain .. Again, just don't do 2 nodes, it's a _bad_ idea. Add at the very least an arbiter. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: Digital signature URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170825/1ab76749/attachment.sig>
On 8/25/2017 2:21 PM, lemonnierk at ulrar.net wrote:>> This concern me, and it is the reason I would like to avoid sharding. >> How can I recover from such a situation? How can I "decide" which >> (reconstructed) file is the one to keep rather than to delete? >> > No need, on a replica 3 that just doesn't happen. That's the main > advantage of it, that and the fact that you can perform operations on > your servers without having the volume go down. > > For a replica 2 though, it will happen. With or without sharding the > operation is the same, it involves fiddling with gfids and is a bit > annoying, but not that hard for one file. But with sharding enabled > you'll need to pick each split brained shard out, which is I imagine a > huge pain .. Again, just don't do 2 nodes, it's a _bad_ idea. Add at the > very least an arbiter. >Big +1 on what was Kevin just said.? Just avoiding the problem is the best strategy. However, for the record,? and if you really, really want to get deep into the weeds on the subject, then the? Gluster people have docs on Split-Brain recovery. https://gluster.readthedocs.io/en/latest/Troubleshooting/split-brain/ and if you Google the topic, there are a lot of other blog posts, emails, etc that discuss it. I'd recommend reviewing those as well to wrap your head around what is going on.
Il 26-08-2017 01:13 WK ha scritto:> Big +1 on what was Kevin just said.? Just avoiding the problem is the > best strategy.Ok, never run Gluster with anything less than a replica2 + arbiter ;)> However, for the record,? and if you really, really want to get deep > into the weeds on the subject, then the? Gluster people have docs on > Split-Brain recovery. > > https://gluster.readthedocs.io/en/latest/Troubleshooting/split-brain/ > > and if you Google the topic, there are a lot of other blog posts, > emails, etc that discuss it. > > I'd recommend reviewing those as well to wrap your head around what is > going on.I'll surely give a look at the documentation. I have the "bad" habit of not putting into production anything I know how to repair/cope with. Thanks. -- Danti Gionatan Supporto Tecnico Assyoma S.r.l. - www.assyoma.it email: g.danti at assyoma.it - info at assyoma.it GPG public key ID: FF5F32A8