Gluster: Geo-replication Fixes — #1

Issue
On running gluster volume geo-replication <main vol> <secondary-host>::<secondary volume> start
you get
geo-replication start failed for <primary vol> <secondary host>::<secondary volume>
geo-replication command failed
Error📓
OSError: libgfchangelog.so.0: cannot open shared object file: No such file or directory.
Log File 📁
/var/log/glusterfs/geo-replication/<main vol>_<secondary host>_<secondary_vol>/gsyncd.log
You can cat
the above file and find the following error mentioned above.
Fix 🔧
- Try rebooting glusterd
service glusterd restart
and check. - If it doesn’t work. Follow the following procedure:
root@user# cd /etc/ld.so.conf.d/root@user /etc/ld.so.conf.d# vi myconfig.conf
- Press I or Insert to start writing.
- Add the following lines:
- Press Esc
- Type
:wq
and press Enter - Run the following command
root@user /etc/ld.so.conf.d# ldconfig
- You can also check the files:
root@user /etc/ld.so.conf.d# ldconfig -v | less
- If it shows the files, then you are done. 😄
- Restart glusterd service
root@user # service glusterd restart
- Now run the geo-replication volume start command
root@user # gluster volume geo-rep <primary vol> <secondary host>::<secondary volume> start [force]
Starting geo-replication session between <primary vol> & <secondary host>::<secondary volume> has been successful
- Done 👍