ferrety ferrety
2008-Aug-13 22:54 UTC
[Gluster-users] Gluster on Mac OSX : mounting problem
Hi guys, I'm new to GlusterFS and I faced a little problem to test it on my Mac OSX (Leopard, XCode3) After installing and configuring MacFUSE (from dmg) and GlusterFS (v1.4.0qa30 from source), I want to test this little example which simulate 4 servers and 1 client all running in the same localhost (I choosed to test it with only 2 servers instead of 4): http://www.gluster.org/docs/index.php/GlusterFS_Configuration_Example_for_Four_Bricks#The_big_picture Everything went well and server nodes were running: $ sudo glusterfsd -f ./server0.vol $ sudo glusterfsd -f ./server1.vol $ ps auxwww | grep glusterfsd | grep -v "grep" root 32804 1.8 0.0 76600 564 ?? Ss 11:28PM 1:17.58 glusterfsd -f ./server0.vol root 32807 1.8 0.0 76600 564 ?? Ss 11:28PM 1:17.25 glusterfsd -f ./server1.vol $ netstat -ant | grep 699 tcp4 0 0 *.6997 *.* LISTEN tcp4 0 0 *.6996 *.* LISTEN But when I tried to mount the directory on the client, it simply failed and nothing was mounted: $ sudo glusterfs -f ./client.vol ./glusterfs $ mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local) fdesc on /dev (fdesc, union) map -hosts on /net (autofs, automounted) map auto_home on /home (autofs, automounted) I found some interesting options for debugging GlusterFS on the WIKI and here is the new output: $ sudo glusterfs --no-daemon --log-file=/dev/stdout --log-level=DEBUG -f ./client.vol ./glusterfs 2008-08-14 00:42:57 D [glusterfs.c:198:get_spec_fp] glusterfs: loading spec from ./client.vol Version: glusterfs 1.4.0qa30 TLA Repo Revision: glusterfs--mainline--3.0--patch-249 Time : 2008-08-14 00:42:57 glusterfs -f ./client.vol -l /dev/stdout -L DEBUG 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 bricks type cluster/unify subvolumes client0 client1 option rr.limits.min-free-disk 10GB # In later versions, its changed to % based value. option scheduler rr end-volume 008-08-14 00:45:50 D [spec.y:113:new_section] parser: New node for 'client0' 2008-08-14 00:45:50 D [xlator.c:118:xlator_set_type] xlator: attempt to load file /usr/lib/glusterfs/1.4.0qa30/xlator/protocol/client.so 2008-08-14 00:45:50 D [spec.y:133:section_type] parser: Type:client0:protocol/client 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:client0:transport-type:tcp/client 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:client0:remote-host:127.0.0.1 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:client0:remote-port:6996 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:client0:remote-subvolume:brick 2008-08-14 00:45:50 D [spec.y:244:section_end] parser: end:client0 2008-08-14 00:45:50 D [spec.y:113:new_section] parser: New node for 'client1' 2008-08-14 00:45:50 D [xlator.c:118:xlator_set_type] xlator: attempt to load file /usr/lib/glusterfs/1.4.0qa30/xlator/protocol/client.so 2008-08-14 00:45:50 D [spec.y:133:section_type] parser: Type:client1:protocol/client 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:client1:transport-type:tcp/client 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:client1:remote-host:127.0.0.1 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:client1:remote-port:6997 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:client1:remote-subvolume:brick 2008-08-14 00:45:50 D [spec.y:244:section_end] parser: end:client1 2008-08-14 00:45:50 D [spec.y:113:new_section] parser: New node for 'bricks' 2008-08-14 00:45:50 D [xlator.c:118:xlator_set_type] xlator: attempt to load file /usr/lib/glusterfs/1.4.0qa30/xlator/cluster/unify.so 2008-08-14 00:45:50 D [spec.y:133:section_type] parser: Type:bricks:cluster/unify 2008-08-14 00:45:50 D [spec.y:231:section_sub] parser: child:bricks->client0 2008-08-14 00:45:50 D [spec.y:231:section_sub] parser: child:bricks->client1 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:bricks:rr.limits.min-free-disk:10GB 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:bricks:scheduler:rr 2008-08-14 00:45:50 D [spec.y:244:section_end] parser: end:bricks 2008-08-14 00:45:50 D [spec.y:113:new_section] parser: New node for 'writebehind' 2008-08-14 00:45:50 D [xlator.c:118:xlator_set_type] xlator: attempt to load file /usr/lib/glusterfs/1.4.0qa30/xlator/performance/write-behind.so 2008-08-14 00:45:50 D [xlator.c:148:xlator_set_type] xlator: dlsym(notify) on dlsym(0x101610, notify): symbol not found -- neglecting 2008-08-14 00:45:50 D [spec.y:133:section_type] parser: Type:writebehind:performance/write-behind 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:writebehind:aggregate-size:131072 2008-08-14 00:45:50 D [spec.y:231:section_sub] parser: child:writebehind->bricks 2008-08-14 00:45:50 D [spec.y:244:section_end] parser: end:writebehind 2008-08-14 00:45:50 D [spec.y:113:new_section] parser: New node for 'readahead' 2008-08-14 00:45:50 D [xlator.c:118:xlator_set_type] xlator: attempt to load file /usr/lib/glusterfs/1.4.0qa30/xlator/performance/read-ahead.so 2008-08-14 00:45:50 D [xlator.c:148:xlator_set_type] xlator: dlsym(notify) on dlsym(0x101940, notify): symbol not found -- neglecting 2008-08-14 00:45:50 D [spec.y:133:section_type] parser: Type:readahead:performance/read-ahead 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:readahead:page-size:65536 2008-08-14 00:45:50 D [spec.y:176:section_option] parser: Option:readahead:page-count:16 2008-08-14 00:45:50 D [spec.y:231:section_sub] parser: child:readahead->writebehind 2008-08-14 00:45:50 D [spec.y:244:section_end] parser: end:readahead 2008-08-14 00:45:50 D [client-protocol.c:4298:init] client0: defaulting transport-timeout to 42 2008-08-14 00:45:50 D [transport.c:105:transport_load] transport: attempt to load file /usr/lib/glusterfs/1.4.0qa30/transport/socket.so 2008-08-14 00:45:50 D [client-protocol.c:4338:init] client0: defaulting limits.transaction-size to 268435456 2008-08-14 00:45:50 D [client-protocol.c:4298:init] client1: defaulting transport-timeout to 42 2008-08-14 00:45:50 D [transport.c:105:transport_load] transport: attempt to load file /usr/lib/glusterfs/1.4.0qa30/transport/socket.so 2008-08-14 00:45:50 D [client-protocol.c:4338:init] client1: defaulting limits.transaction-size to 268435456 2008-08-14 00:45:50 C [unify.c:4453:init] bricks: namespace option not specified, Exiting 2008-08-14 00:45:50 E [xlator.c:261:xlator_init_rec] xlator: 'bricks' init() failed. Check spec file. 2008-08-14 00:45:50 E [glusterfs.c:648:main] glusterfs: Error while initializing translators. Exiting Could anyone help me understand the problem? Thanks in advance N.B: please, find attached my configuration files. cheers Ferret t -------------- next part -------------- A non-text attachment was scrubbed... Name: server0.vol Type: application/octet-stream Size: 321 bytes Desc: not available URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20080814/f7bd6415/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: server1.vol Type: application/octet-stream Size: 321 bytes Desc: not available URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20080814/f7bd6415/attachment-0001.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: client.vol Type: application/octet-stream Size: 911 bytes Desc: not available URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20080814/f7bd6415/attachment-0002.obj>
Keith Freedman
2008-Aug-13 23:04 UTC
[Gluster-users] Gluster on Mac OSX : mounting problem
the captioned log entry indicates your problem. If you use AFR instaed of Unify, your configuration will work, but if you''re goal is to use unify to combine those 2 storage bricks (instead of AFR to mirror them), then you need a namespace brick to hold the shared namespace. At 03:54 PM 8/13/2008, ferrety ferrety wrote:>2008-08-14 00:45:50 C [unify.c:4453:init] bricks: namespace option not >specified, Exiting
Keith Freedman
2008-Aug-13 23:04 UTC
[Gluster-users] Gluster on Mac OSX : mounting problem
the captioned log entry indicates your problem. If you use AFR instaed of Unify, your configuration will work, but if you're goal is to use unify to combine those 2 storage bricks (instead of AFR to mirror them), then you need a namespace brick to hold the shared namespace. At 03:54 PM 8/13/2008, ferrety ferrety wrote:>2008-08-14 00:45:50 C [unify.c:4453:init] bricks: namespace option not >specified, Exiting
Keith Freedman
2008-Aug-13 23:04 UTC
[Gluster-users] Gluster on Mac OSX : mounting problem
the captioned log entry indicates your problem. If you use AFR instaed of Unify, your configuration will work, but if you''re goal is to use unify to combine those 2 storage bricks (instead of AFR to mirror them), then you need a namespace brick to hold the shared namespace. At 03:54 PM 8/13/2008, ferrety ferrety wrote:>2008-08-14 00:45:50 C [unify.c:4453:init] bricks: namespace option not >specified, Exiting
Keith Freedman
2008-Aug-13 23:04 UTC
[Gluster-users] Gluster on Mac OSX : mounting problem
the captioned log entry indicates your problem. If you use AFR instaed of Unify, your configuration will work, but if you''re goal is to use unify to combine those 2 storage bricks (instead of AFR to mirror them), then you need a namespace brick to hold the shared namespace. At 03:54 PM 8/13/2008, ferrety ferrety wrote:>2008-08-14 00:45:50 C [unify.c:4453:init] bricks: namespace option not >specified, Exiting