[Gluster-users] How to set iptables in glusterfs 3.2.7 ?

Jian Lee lijian.gnu at gmail.com
Wed Apr 10 12:28:32 UTC 2013


Hi, all

I've problem with iptables when use glusterfs,

my glusterfs' version:
----------------------------------

glusterfs 3.2.7 built on Jun 11 2012 13:22:29
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU
General Public License.


I've configured my iptables rules following this page:

http://gluster.org/community/documentation/index.php/Gluster_3.1:_Installing_Red_Hat_Package_Manager_%28RPM%29_Distributions


My iptables' rules:
-------------------------------------

# cat /etc/sysconfig/iptables
# Generated by iptables-save v1.4.7 on Thu Apr 11 00:09:23 2013
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [21:1996]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A INPUT -p tcp -m state --state NEW -m tcp --dport 24007:24047 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 1000:1100 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 111 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 111 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 38465:38485 -j ACCEPT
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Thu Apr 11 00:09:23 2013


(node04 is one of my nodes)

when i start iptables on node04, and mount the volume set by glusterfs,
the result of 'df -h' :

node01:/gv0           3.5T  596M  3.3T   1% /data

when i stop iptables on node04, and remount the volume, the result of
'df -h':

node01:/gv0           4.3T  796M  4.1T   1% /data

and the brick size on node04 is 816M !


How should i configure my iptables ?


Thanks !

:-)


-- 
Jian  Lee   ( http://www.ylinux.org/ren/2 )



More information about the Gluster-users mailing list