Hello, I need to migrate a old 2 node cluster to a proxmox cluster with a replicated gluster storage between those two (and a third arbitrer node). Id like to create a volume with a single node, migrate the data on this volume from the old server and then reinstall the second server and add the second brick to the volume. I found no informations about creating a replicated volume with a single node, is it possible ? Also is it possible to add a third arbitrary node to an existing 2 replica volume ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20161025/e440a28e/attachment.html>
On Tue, Oct 25, 2016 at 1:38 PM, Maxence Sartiaux <contact at makz.me> wrote:> Hello, > > I need to migrate a old 2 node cluster to a proxmox cluster with a > replicated gluster storage between those two (and a third arbitrer node). > > Id like to create a volume with a single node, migrate the data on this > volume from the old server and then reinstall the second server and add the > second brick to the volume. > > I found no informations about creating a replicated volume with a single > node, is it possible ?This is possible. You first create a single brick volume on the first server. Note that this is not a replica volume right now. # gluster volume create <volume-name> <server-1>:<brick-path> After migration and re-installing the 2nd server, you add the new server to the GlusterFS trusted pool. # gluster peer probe <server-2> And add a replica brick the volume you created earlier, # gluster volume add-brick <volume-name> replica 2 <server-2>:<brick-path>> > Also is it possible to add a third arbitrary node to an existing 2 replica > volume ?I'm not sure this is possible yet. Krutika or Pranith can answer this.> > Thank you. > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://www.gluster.org/mailman/listinfo/gluster-users
Hello. 25.10.2016 10:08, Maxence Sartiaux wrote:> I need to migrate a old 2 node cluster to a proxmox cluster with a > replicated gluster storage between those two (and a third arbitrer > node). > > Id like to create a volume with a single node, migrate the data on > this volume from the old server and then reinstall the second server > and add the second brick to the volume.If you have only 2 nodes in total, you may lower replica to replica 1, reinstall another node, re-add bricks to form replica 2 and repeat these steps for another node. No downtime and data migration by hands needed.> I found no informations about creating a replicated volume with a > single node, is it possible ?Yes, with "force" option, if you really need that.> Also is it possible to add a third arbitrary node to an existing 2 > replica volume ?Yes, starting from v3.8. Regards, Oleksandr