Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have 4 Centos 6.4 (x86_64) VM servers installed onto VMWork Station 7.1.4, the host machine is Windows 7 Ultimate 64-bit, each with 1GB memory and 1 CPU. The networking is through VMnet0(Bridged) using the WiFi card of the Windows 7 host. All computers get static IP through the Netgear router
The fours node have ip: 192.168.1.4, 192.168.1.7, 192.168.1.8, 192.168.1.9, the starting machine is 192.168.1.4, I don't have DNS server,so I just use the ip address. Each machine, I have 15GB dedicated for storage, the partition is always /dev/sda3, each mounted to /mnt/exp4 (or 7,8,9) folder. Firewall is setup as follows. Port 24007-24012 (tcp/udp), Port 34865-34867 (tcp/udp), 111(tcp/udp), the problem persis even I turn off firewall for all the nodes.
This is what I get:
*********************************************
[root@stor4 ~]# gluster peer status
peer status: No peers present
[root@stor4 ~]# gluster peer probe 192.168.1.7
peer probe: success
[root@stor4 ~]# gluster peer probe 192.168.1.8
peer probe: success
[root@stor4 ~]# gluster peer probe 192.168.1.9
peer probe: success
[root@stor4 ~]# gluster peer status
Number of Peers: 3
The question is this is not right, I am supposed to get:
State: Peer in Cluster (Connected)
because the peering clearly does not work well. I go to each host and go to /var/lib/glusterd/peers/ and delete all the peering info files, such as these (1.4 has three files, other nodes have only one in this /var/lib/glusterd/peers/ folder )
-rw-------. 1 root root 72 Oct 1 00:51 2bbd2a39-ef93-4b5d-aa36-00a9fad1775b
-rw-------. 1 root root 72 Oct 1 00:51 97297223-2927-4d39-a1e4-039663c0190a
-rw-------. 1 root root 72 Oct 1 00:51 cc76c4e9-3ef2-4dc9-b704-cb160c404503
I'm ware of the attributes can be problematic, so I used the following command
[root@stor4 mnt]# getfattr -m- -d /mnt/exp4
[root@stor4 mnt]# setfattr -x trusted.glusterfs.volume-id /mnt/exp4
[root@stor4 mnt]# setfattr -x trusted.gfid /mnt/exp4
Aftre these, I restarted each nodes and start the peer search, once again I have the same peering issues. I am really buffled.
BTW, I did the same thing 3 weeks ago and did not experience these problems, this is just driving me crazy, as I have seen again and again, RHEL is just WAY TOO complicated and extremely prone to issues! :-(
I have 4 nodes, stor4, stor7, stor8 and stor9, they worked w/o any problem 4 weeks ago, from then, I have kept 4,7,8 intact, never bother with them since they exists solely for practising Gluster FS, for stor9, since it has extra space, I practised partitioning, building LVM, expanding swap, that sort of things using command lines (these are easy for me, but I still struggle with command line because I can't remember all of them)
It is really bizaare as nothing has really changed since then!
I have never had to "go to /var/lib/glusterd/peers/ and delete all the peering info files" and why would you do that?
You may have to delete the peers and re-add them to get it working again.
Never delete files in gluster-related directories using the command-line.
Use the gluster-related c-line tools instead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.