Re: moving drives containing bricks from one server to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It would help if you say what kind of volumes you have, as they all work a little differently.

You should NOT destroy the old volumes.

It should be quite possible to move the bricks to a new server and get them running as part of THE SAME gluster system that you have now.

Until you tell us how many bricks, how many servers have what bricks, exactly which servers you are replacing (you mention only one server, but that is not a normal gluster configuration), we can't give you a whole lot of help.  The usual routine involves working with one brick server at a time, while keeping the rest of the array untouched.  With some replicated arrays and some careful work, you don't have to take the array offline at all.  However, replicated arrays get handled VERY differently from distributed, so we can't help much until you tell us more.

Ted Miller
Elkhart, IN

On 07/18/2017 06:18 AM, Andy Tai wrote:
hi,  I did not see a reply to my problem.  Let me ask it in a different way...

If I have bricks from a previous glusterfs volume and that volume is now gone because of the old machine was replaced, now I tried to create a new volume and add the old bricks to the new volume with the "force" opinion to "volume create".  The old data files are still in the bricks but when I mount the new volume the new volume shows it is empty.

Is it possible for glusterfs to recognize the old data files on the bricks in some way to essentially re-create the same view as the old volume, via some kind of healing or meta data re-scan or re-creation?  The bricks are in good shape with no data corruption and are in sync (same data were replicated).  Thanks

On Thu, May 4, 2017 at 10:03 PM, Andy Tai <atai@xxxxxxxx> wrote:
Hi, I have a gluster volume with bricks spread over several physical drives.   I now want to upgrade my server to a new system and plan to move the drives from the old server to the new server, with a different host name and IP address.  Can I shut down the gluster volume on the old server, move and install the physical drives containing the bricks to the new server, and then create a new gluster volume on the new server, and add the bricks to the new volume in the same way reflecting the previous organization of the volume on the old server, and expect everything to work (all files preserved and accessible via glusterfs, with no data loss? 

The gluster volume on the old server would be retired and I want to let the new server taking over the role of serving the gluster volume.

Thanks

--
Andy Tai, atai@xxxxxxxx, Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010
Year 2017 民國106年
自動的精神力是信仰與覺悟
自動的行為力是勞動與技能



--
Andy Tai, atai@xxxxxxxx, Skype: licheng.tai, Line: andy_tai, WeChat: andytai1010
Year 2017 民國106年
自動的精神力是信仰與覺悟
自動的行為力是勞動與技能


_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-users


_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux