GFS Client Manual

GFS Client Manual

1. 安装

#tar zxvf fuse-2.7.4glfs11.tar.gz

#cd fuse-2.7.4glfs11

#./configure

#make

#make install

#depmod -a

#modprobe fuse

#lsmod |grep fuse

#vi /etc/rc.d/init.d/rc.modules

添加如下内容

modprobe fuse

#chmod a+x /etc/rc.d/init.d/rc.modules

#cd ..

#tar zxvf glusterfs-3.0.2.tar.gz

#cd glusterfs-3.0.2

#./configure

#make

#make install

#vi /etc/ld.so.conf.d/gfs3.0.2.conf

添加如下内容

/usr/local/lib

#ldconfig

#glusterfs --version

2. 配置

#vi /usr/local/etc/glusterfs/glusterfs.cvs.client

内容如下

volume client205

type protocol/client

option transport-type tcp

option remote-host 10.1.69.205 # IP address of the remote brick

option remote-port 6997

option frame-timeout 10 # seconds to wait for a reply

option remote-subvolume brick # name of the remote volume

end-volume

volume client206

type protocol/client

option transport-type tcp

option remote-host 10.1.69.206 # IP address of the remote brick

option remote-port 6997

option frame-timeout 10

option remote-subvolume brick # name of the remote volume

end-volume

volume dht

type cluster/dht

option min-free-disk 10%

subvolumes client205 client206

end-volume

#mkdir /cloudxfs /var/log/glusterfs

3. 启动

#/usr/local/sbin/glusterfs -f /usr/local/etc/glusterfs/glusterfs.cvs.client /cloudxfs/ -l /var/log/glusterfs/`date +%F-%T`.log

#df -h

#vi /etc/rc.local //suse上是/etc/init.d/boot.local

modprobe fuse

/usr/local/sbin/glusterfs -f /usr/local/etc/glusterfs/glusterfs.cvs.client /cloudxfs/ -l /var/log/glusterfs/`date +%F-%T`.log

你可能感兴趣的:(GFS Client Manual)