The UUID for a node is stored in /var/lib/glusterd/glusterd.info The uuidgen tool is used to create a new UUID. voila nJoy ;-)
Gluster peer probe fails (repeated UUID)
Posted on
The UUID for a node is stored in /var/lib/glusterd/glusterd.info The uuidgen tool is used to create a new UUID. voila nJoy ;-)
Tested in AWS and CENTOS6
sudo yum install wget -y mkdir binaries cd binaries http://packages.couchbase.com/releases/2.2.0/couchbase-server-community_2.2.0_x86_64_openssl098.rpm sudo yum install -y pkgconfig -y sudo yum install openssl098e -y sudo yum install couchbase-server*.rpm -y
nJoy ๐
This must be done after you REALLY know this brick is going to be re-used elsewhere not in the same volume it was used before.
NOTE: Potential data loss
setfattr -x trusted.glusterfs.volume-id $brick_path setfattr -x trusted.gfid $brick_path rm -rf $brick_path/.glusterfs
More details in a later post but I finally realized the order of things ? Thought I’d share.
Reference sites:
http://www.gluster.org/community/documentation/index.php/Getting_started_configure
http://www.redhat.com/magazine/009jul05/features/gfs_practices/
mkdir ~/gluster cd ~/gluster wget -l 1 -nd -nc -r -A.rpm http://download.gluster.org/pub/gluster/glusterfs/LATEST/RHEL/epel-6/x86_64/ ย yum install glusterfs-libs-*.el6.x86_64.rpm -y yum install glusterfs-*.el6.x86_64.rpm -y yum install glusterfs-fuse-*.el6.x86_64.rpm -y yum install glusterfs-cli-*.el6.x86_64.rpm -y yum install glusterfs-server-*.el6.x86_64.rpm -y yum install glusterfs-geo-replication-*.el6.x86_64.rpm -y service glusterd start chkconfig glusterd on service glusterfsd start chkconfig glusterfsd on gluster peer probe <hostname of the other server in the cluster, or IP address if you donโt have DNS or /etc/hosts entries> dd if=/dev/zero of=~/test.bin count=10000k losetup /dev/loop0 test.bin fdisk /dev/loop0 ---> new partition all blocks fdisk --> n -> p -> 1 -> from 1 to 637 in this case yum install xfsprogs xfsdump -y mkfs.xfs -i size=512 /dev/loop0 -f --- Testing fs -------- mkdir /mnt/test mount /dev/loop0 /mnt/test --------fstab ----- /root/test.bin /mnt/test xfs loop 0 0 >>>>> test rebooting mkdir -p /mnt/test/brick gluster volume create gv0 replica 2 192.168.1.81:/mnt/test/brick 192.168.1.79:/mnt/test/brick gluster volume info Volume Name: gv0 Type: Replicate Volume ID: cb3110c8-82b0-45f5-9e38-98652a95b54b Status: Created Number of Bricks: 1 x 2 = 2 Transport-type: tcp Bricks: Brick1: 192.168.1.81:/mnt/test/brick Brick2: 192.168.1.79:/mnt/test/brick gluster volume start gv0
Just the client
yum install glusterfs-libs-3.5.0-2.el6.x86_64.rpm -y yum install glusterfs-3.5.0-2.el6.x86_64.rpm -y yum install glusterfs-fuse-3.5.0-2.el6.x86_64.rpm -y
nJoy ๐