[Gluster-users] Moving a physical disk from one machine to another
aspandey at redhat.com
Wed Feb 8 05:58:14 UTC 2017
I don't know which version of glusterfs you have been using. In case you have been using latest version, you can also explore reset-brick command.
----- Original Message -----
From: "Ted Miller" <tmiller21 at zoho.com>
To: gluster-users at gluster.org
Sent: Wednesday, February 8, 2017 9:20:59 AM
Subject: Re: [Gluster-users] Moving a physical disk from one machine to another
On 02/06/2017 11:11 AM, Scott Hazelhurst wrote:
> Apologies if this is obvious but I’ve searched the documentation and mailing list and can’t see an answer.
> One of my servers which hosts a gluster brick has died beyond possible saving. The physical disk of the brick itself is good and I’d like not to lose anything.
> Can I just add it as a brick on another server? Unfortunately, I am not able to host the disk on a machine with the same IP address/host name. I suppose I could just add a new empty disk and then copy the data from the old disk but I’d prefer to do things as easily as possible.
> <table width="100%" border="0" cellspacing="0" cellpadding="0" style="width:100%;">
> <td align="left" style="text-align:justify;"><font face="arial,sans-serif" size="1" color="#999999"><span style="font-size:11px;">This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorised signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary. </span></font></td>
> Gluster-users mailing list
> Gluster-users at gluster.org
Did this a few months ago, when I had a server die.
Assuming it is a replicated volume, first thing is to remove old brick from
your volume. It has been a while since I had to do this, but I think you
just do a "gluster remove-brick ". It will probably require a 'force'
since the server is gone.
You should be able to install the disk in another server (with gluster
Then just add that brick to the volume, like you did when setting up the
volume. You will again have to force, because the volume will already have
a volume signature.
After that do a full heal, and wait. It will save a good bit of time that
the files are already on the disk. It should add any files that have been
changed, and then go on its way. You may want to be sure that any files
deleted since the server died don't get put back into the volume. Have had
that happen, but don't remember if this was the combination that triggered
it, or something else.
Gluster-users mailing list
Gluster-users at gluster.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gluster-users