dapurhosting.com Blog for Tech

August 27, 2014

Install Glusterfs

Filed under: Uncategorized — dh @ 6:07 pm

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
rpm --import https://fedoraproject.org/static/0608B895.txt
cd /tmp
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
wget -l 1 -nd -nc -r -A.rpm http://download.gluster.org/pub/gluster/glusterfs/LATEST/RHEL/epel-6/x86_64/
yum -y install wget fuse fuse-libs ntsysv glusterfs*
service iptables restart
iptables -A RH-Firewall -1-INPUT -m state --state NEW -m tcp -p tcp --dport 24007:24047 -j ACCEPT
iptables -A RH-Firewall -1-INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT
iptables -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT
iptables -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 38465:38467 -j ACCEPT
service iptables save
service iptables restart
service iptables stop
chkconfig --levels 235 glusterd on
/etc/init.d/glusterd start 
/etc/init.d/glusterd status
glusterfsd --version
gluster peer probe 103.7.226.247
gluster peer status
mkdir /home/data
gluster volume create iredmail replica 2 transport tcp 103.7.226.14:/home/data 103.7.226.247:/home/data force	
gluster volume start iredmail
gluster volume info
modprobe fuse
dmesg | grep -i fuse
mkdir /var/vmail
mount -t glusterfs 103.7.226.14:/iredmail /var/vmail
vi /etc/rc.local
	mount -t glusterfs 103.7.226.14:/iredmail /var/vmail
vi /etc/fstab
	103.7.226.14:/iredmail /var/vmail glusterfs defaults,_netdev 0 0	
df -h
mount -t glusterfs 103.7.226.14:/iredmail2 /home/vmail3
cd /tmp/
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-3.5.2-1.el6.x86_64.rpm glusterfs-cli-3.5.2-1.el6.x86_64.rpm -y
yum install glusterfs-3.5.2-1.el6.x86_64.rpm glusterfs-fuse-3.5.2-1.el6.x86_64.rpm glusterfs-geo-replication-3.5.2-1.el6.x86_64.rpm glusterfs-server-3.5.2-1.el6.x86_64.rpm

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress