安装fuse
GlusterFS需要fuse支持库,需先安装:
# yum -y install fuse fuse-devel libibverbs-devel flex bison
tar xvf glusterfs-3.0.1.tar.gz
cd glusterfs-3.0.1
./configure --prefix=/usr/local/glusterfs
make
make install
vim /usr/local/glusterfs/etc/glusterfs/glusterfs.vol
volume brick
type storage/posix
option directory /data/export # Note: Once exported, DO NOT WRITE DIRECTLY TO THIS DIRECTORY
end-volume
volume brick-ns
type storage/posix
option directory /data/export-ns
end-volume
volume server
type protocol/server
subvolumes brick brick-ns
option transport-type tcp/server # For TCP/IP transport
option auth.ip.brick.allow *
option auth.ip.brick-ns.allow *
end-volume
/usr/loca/glusterfs -f vim /usr/local/glusterfs/etc/glusterfs/glusterfs.vol
netstat -ant | grep 6996
客户端配置问题
volume client0
type protocol/client
option transport-type tcp/client
option remote-host 192.168.1.23
option remote-port 6996
option remote-subvolume brick-ns
end-volume
阅读(1325) | 评论(0) | 转发(1) |