[Gluster-devel] help to check correctness
Simon Hunanyan
simon.hunanyan at googlemail.com
Wed May 28 06:25:51 UTC 2008
Hi,
I am beginner at GlusterFS and ask you to help me. I have adapted the
simple sample "GlusterFS\GlusterFS 1_2 Configuration Example for Four
Bricks" (http://www.gluster.org/docs/index.php/GlusterFS_1.2_Configuration_Example_for_Four_Bricks)
to the version 1.3.9. Please see below the configuration files
Server volume for the 1st node:: server0.vol
volume brick
type storage/posix
option directory /home/cfs0
end-volume
volume server
type protocol/server
option transport-type tcp/server
option listen-port 6996
option bind-address 127.0.0.1
subvolumes brick
option auth.ip.brick.allow *
end-volume
Server volume for the 2st node: server1.vol
volume brick
type storage/posix
option directory /home/cfs1
end-volume
volume server
type protocol/server
option transport-type tcp/server
option listen-port 6997
option bind-address 127.0.0.1
subvolumes brick
option auth.ip.brick.allow *
end-volume
Server volume for namespace node: server3.vol
volume brick-ns
type storage/posix
option directory /home/cfs2
end-volume
volume server
type protocol/server
option transport-type tcp/server
option listen-port 6998
option bind-address 127.0.0.1
subvolumes brick-ns
option auth.ip.brick-ns.allow *
end-volume
Configure the client node: client.vol
volume client0
type protocol/client
option transport-type tcp/client
option remote-host 127.0.0.1
option remote-port 6996
option remote-subvolume brick
end-volume
volume client1
type protocol/client
option transport-type tcp/client
option remote-host 127.0.0.1
option remote-port 6997
option remote-subvolume brick
end-volume
volume client-ns
type protocol/client
option transport-type tcp/client
option remote-host 127.0.0.1
option remote-port 6998
option remote-subvolume brick-ns
end-volume
volume bricks
type cluster/unify
option namespace client-ns # this will not be storage child of unify
subvolumes client0 client1
option rr.limits.min-free-disk 5%.
option scheduler rr
end-volume
### Add writebehind feature
volume writebehind
type performance/write-behind
option aggregate-size 131072 # unit in bytes
subvolumes bricks
end-volume
### Add readahead feature
volume readahead
type performance/read-ahead
option page-size 65536 # unit in bytes
option page-count 16 # cache per file = (page-count x page-size)
subvolumes writebehind
end-volume
I think, it is working. At least, log file contains no any error
records and when I try to create files in the mounted folder, the
server mapped folders receive copy of these files. But I cannot
understand - should the maped and namespace folders contain all files
too?
touch ./glusterfs/file{0,1,2,3,4,5,6,7,8}
find /home/cfs[0-3] -type f
/home/cfs0/file7
/home/cfs0/file1
/home/cfs0/file5
/home/cfs0/file3
/home/cfs1/file6
/home/cfs1/file2
/home/cfs1/file4
/home/cfs1/file0
/home/cfs1/file8
/home/cfs2/file6
/home/cfs2/file2
/home/cfs2/file4
/home/cfs2/file7
/home/cfs2/file0
/home/cfs2/file1
/home/cfs2/file5
/home/cfs2/file8
/home/cfs2/file3
/home/glusterfs/file6
/home/glusterfs/file2
/home/glusterfs/file4
/home/glusterfs/file7
/home/glusterfs/file0
/home/glusterfs/file1
/home/glusterfs/file5
/home/glusterfs/file8
/home/glusterfs/file3
Please help me to understand correctness of test result.
TIA,
Simon
More information about the Gluster-devel
mailing list