[Gluster-users] Failed file system

Leno Vo lenovolastname at yahoo.com
Tue Aug 2 17:26:42 UTC 2016

you need to have a downtime to recreate the second node, two nodes is actually not good for production and you should have put raid 1 or raid 5 as your gluster storage, when you recreate the second node you might try running some VMs that need to be up and rest of vm need to be down but stop all backup and if you have replication, stop it too.  if you have 1G nic, 2cpu and less 8Gram, then i suggest all turn off the VMs during recreation of second node. someone said if you have sharding with 3.7.x, maybe some vip vm can be up...
if it just a filesystem, then just turn off the backup service until you recreate the second node. depending on your resources and how big is your storage, it might be hours to recreate it and even days...
here's my process on recreating the second or third node (copied and modifed from the net),
#make sure partition is already added!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!This procedure is for replacing a failed server, IF your newly installed server has the same hostname as the failed one:
(If your new server will have a different hostname, see this article instead.)
For purposes of this example, the server that crashed will be server3 and the other servers will be server1 and server2
On both server1 and server2, make sure hostname server3 resolves to the correct IP address of the new replacement server.#On either server1 or server2, dogrep server3 /var/lib/glusterd/peers/*
This will return a uuid followed by ":hostname1=server3"
#On server3, make sure glusterd is stopped, then doecho UUID={uuid from previous step}>/var/lib/glusterd/glusterd.info
#actual testing below,[root at node1 ~]# cat /var/lib/glusterd/glusterd.infoUUID=4b9d153c-5958-4dbe-8f91-7b5002882aacoperating-version=30710#the second line is new.........  maybe not needed...
On server3:make sure that all brick directories are created/mountedstart glusterdpeer probe one of the existing servers
#restart glusterd, check that full peer list has been populated using gluster peer status
(if peers are missing, probe them explicitly, then restart glusterd again)#check that full volume configuration has been populated using gluster volume info
if volume configuration is missing, do #on the other nodegluster volume sync "replace-node" all
#on the node to be replacedsetfattr -n trusted.glusterfs.volume-id -v 0x$(grep volume-id /var/lib/glusterd/vols/v1/info | cut -d= -f2 | sed 's/-//g') /gfs/b1/v1setfattr -n trusted.glusterfs.volume-id -v 0x$(grep volume-id /var/lib/glusterd/vols/v2/info | cut -d= -f2 | sed 's/-//g') /gfs/b2/v2setfattr -n trusted.glusterfs.volume-id -v 0x$(grep volume-id /var/lib/glusterd/vols/config/info | cut -d= -f2 | sed 's/-//g') /gfs/b1/config/c1
mount -t glusterfs localhost:config /data/data1
#install ctdb if not yet installed and put it back online, use the step on creating the ctdb config but #use your common sense not to deleted or modify current one.
gluster vol heal v1 fullgluster vol heal v2 fullgluster vol heal config full

    On Tuesday, August 2, 2016 11:57 AM, Andres E. Moya <amoya at moyasolutions.com> wrote:

 Hi, we have a 2 node replica setup
on 1 of the nodes the file system that had the brick on it failed, not the OS
can we re create a file system and mount the bricks on the same mount point

what will happen, will the data from the other node sync over, or will the failed node wipe out the data on the other mode?

what would be the correct process?

Thanks in advance for any help
Gluster-users mailing list
Gluster-users at gluster.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160802/b068d79c/attachment.html>

More information about the Gluster-users mailing list