Add the GPG key to apt
apt-get update
2. Dealing with mounting issue at boot time
With GlusterFS 3.4.2, we may get in trouble trying to mount the gluster volume via
Create a script to mount our volume
nano /etc/init.d/mount-glusterfs
# Provides: mount-glusterfs
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
#! /bin/sh
# /etc/init.d/mount-glusterfs
#
# Some things that run always at boot
mount -t glusterfs <server-ip>:/gluster_volume /var/mount
# Uncomment this line if you need to start Apache after mount glusterFS volume
# service apache2 start
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Mounting glusterfs volumes "
mount -t glusterfs <server-ip>:/gluster_volume /var/mount
;;
stop)
echo "Unmount glusterfs volumes"
umount /var/mount
;;
*)
echo "Usage: /etc/init.d/mount-glusterfs {start|stop}"
exit 1
;;
esac
exit 0
Make the script executable
No comments:
Post a Comment