Hi, The method depends a bit if you use a distributed-only system (like me) or a replicated setting. I'm using a distributed-only setting (many bricks on different servers, but no replication). All my servers boot via network, i.e., on a start, it's like a new host. To rescue the old bricks, just set up a new server this the same OS, the same IP and and the same hostname (!very important). The simplest thing would be if you could retrieve the files in /var/lib/glusterd If you install a completely new server (but with the same IP and the same hostname), _then_ restore the files in /var/lib/glusterd, you can just use it as before. It will be recognised as the previous peer, without any additional commands. In fact, I think that /var/lib/glusterd/*... should be identical on all servers, except /var/lib/glusterd/glusterd.info which holds the UUID of the server. However, you should be able to retrieve the UUID from the command: gluster pool list This is your scenario 2a) Note that if it's __not__ a distributed-only system, other steps might be necessary. Your 2b) scenario should also work, but slightly different. (Again, only distributed-only) I use it occasionally for failover mode, but I haven't tested it extensively: gluster v reset-brick NameOfVolume FailedServer:/path/to/brick start gluster v add-brick NameOfVolume NewServer:/path/to/brick force # Order is important! # if brick is removed before other brick is added, # will lead to duplicate files. gluster v remove-brick NameOfVolume FailedServer:/path/to/brick force gluster v rebalance NameOfVolume fix-layout start If it's also replcated or striped or using sharding, then other steps might be necessary. best wishes, Stefan Solbrig -- Dr. Stefan Solbrig Universität Regensburg Fakultät für Informatik und Data Science 93040 Regensburg
|
________ Community Meeting Calendar: Schedule - Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC Bridge: https://meet.google.com/cpu-eiue-hvk Gluster-users mailing list Gluster-users@xxxxxxxxxxx https://lists.gluster.org/mailman/listinfo/gluster-users