Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th January 2010, 17:47
alex_time alex_time is offline
Junior Member
 
Join Date: Jan 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default High-Availability Storage With GlusterFS - Mac Client

I followed your wonderful how to "High-Availability Storage With GlusterFS On Debian Lenny - Automatic File Replication Across Two Storage Servers" and it works perfectly on Linux.

I was trying to make a Mac OSX Snow Leopard Client working, but I cannot yet...

I have already installed MacFUSE as required and glusterfs compiled from source as described in the official website (http://www.gluster.com/community/doc...FS_on_MAC_OS_X), I have also created the /etc/glusterfs/glusterfs.vol file and its content is exactly the same as other Kubuntu client. When I mount the glusterfs with the command

mount -t glusterfs /etc/glusterfs/glusterfs.vol /mnt/glusterfs

it works, and mount and df command show the correct glusterfs size, but the mount point on Mac is empty!

If I try to list the directory from user I receive

"Permession denied"

and if I try to do the same by root I receive:

"Device not configured"

but mount and df says that the gluster "share" is mounted and show the correct volume size...can somebody help me please?!
Reply With Quote
Sponsored Links
  #2  
Old 27th January 2010, 18:19
alex_time alex_time is offline
Junior Member
 
Join Date: Jan 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am looking at the log file in real time, and the fact is that when I try to list the directory content I have a sort of lag during about 1 minute, and after that in the moment I receive the "Permession denied" error, in the log file I see that fuse has unmounted the mount point itselfs...maybe this can help?
Reply With Quote
  #3  
Old 28th January 2010, 15:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Any errors in your logs (on the servers and the client)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 28th January 2010, 16:32
alex_time alex_time is offline
Junior Member
 
Join Date: Jan 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Any errors in your logs (on the servers and the client)?
On the client side I see this

Code:
[2010-01-27 19:04:37] W [xlator.c:555:validate_xlator_volume_options] writebehind: option 'window-size' is deprecated, preferred is 'cache-size', continuing with correction
[2010-01-27 19:04:37] N [glusterfsd.c:1306:main] glusterfs: Successfully started
[2010-01-27 19:04:37] N [client-protocol.c:5733:client_setvolume_cbk] remote: Connected to 192.168.1.1:6996, attached to remote volume 'brick'.
[2010-01-27 19:04:37] N [afr.c:2194:notify] replicate: Subvolume 'remote' came back up; going online.
[2010-01-27 19:04:37] N [client-protocol.c:5733:client_setvolume_cbk] remote: Connected to 192.168.1.1:6996, attached to remote volume 'brick'.
[2010-01-27 19:04:37] N [afr.c:2194:notify] replicate: Subvolume 'remote' came back up; going online.
[2010-01-27 19:04:37] N [client-protocol.c:5733:client_setvolume_cbk] remote2: Connected to 192.168.1.2:6996, attached to remote volume 'brick'.
[2010-01-27 19:04:37] N [client-protocol.c:5733:client_setvolume_cbk] remote2: Connected to 192.168.1.2:6996, attached to remote volume 'brick'.
[2010-01-27 19:05:37] N [fuse-bridge.c:2577:fuse_thread_proc] fuse: unmounting /glusterfs
[2010-01-27 19:05:37] W [glusterfsd.c:898:cleanup_and_exit] glusterfs: shutting down
So no Errors, only "normal" Warning, now I'll post the Server side log
Reply With Quote
  #5  
Old 29th January 2010, 10:10
alex_time alex_time is offline
Junior Member
 
Join Date: Jan 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Any errors in your logs (on the servers and the client)?
On the server side I see this:
Code:
[2010-01-27 15:55:12] N [server-protocol.c:7065:mop_setvolume] server: accepted client from 192.168.1.10:1023
[2010-01-27 15:55:12] N [server-protocol.c:7065:mop_setvolume] server: accepted client from 192.168.1.10:1022
[2010-01-27 15:56:05] N [server-protocol.c:7825:notify] server: 192.168.1.10:1023 disconnected
[2010-01-27 15:56:05] N [server-protocol.c:7825:notify] server: 192.168.1.10:1022 disconnected
[2010-01-27 15:56:05] N [server-helpers.c:779:server_connection_destroy] server: destroyed connection of Alessio-K-1043-2010/01/27-15:55:09:665816-remote
[2010-01-27 15:57:07] N [server-protocol.c:7065:mop_setvolume] server: accepted client from 192.168.1.10:1023
[2010-01-27 15:57:12] N [server-protocol.c:7065:mop_setvolume] server: accepted client from 192.168.1.10:1021
[2010-01-27 17:11:15] N [server-protocol.c:7065:mop_setvolume] server: accepted client from 192.168.1.50:1023
[2010-01-27 17:11:15] N [server-protocol.c:7065:mop_setvolume] server: accepted client from 192.168.1.50:1022
[2010-01-27 17:14:49] N [server-protocol.c:7825:notify] server: 192.168.1.50:1022 disconnected
[2010-01-27 17:14:49] N [server-protocol.c:7825:notify] server: 192.168.1.50:1023 disconnected
[2010-01-27 17:14:49] N [server-helpers.c:779:server_connection_destroy] server: destroyed connection of Mac-Pro-di-Alessio.local-17314-2010/01/27-17:11:14:617401-remote
192.168.1.10 is a Ubuntu client with no problem, and the Mac is the 192.168.1.50, I see no differences between theme, so I think the log is not telling us nothing...am I wrong?!
Reply With Quote
  #6  
Old 29th January 2010, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

I wonder where this comes from?

Quote:
[2010-01-27 19:05:37] N [fuse-bridge.c:2577:fuse_thread_proc] fuse: unmounting /glusterfs
[2010-01-27 19:05:37] W [glusterfsd.c:898:cleanup_and_exit] glusterfs: shutting down
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 30th January 2010, 09:12
alex_time alex_time is offline
Junior Member
 
Join Date: Jan 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
I wonder where this comes from?
I really do not know...but as I tought, the problem is on client side...

On the Ubuntu Pc, the log file looks like this:

Code:
[2010-01-21 08:49:28] W [xlator.c:555:validate_xlator_volume_options] writebehind: option 'window-size' is deprecated, preferred is 'cache-size', continuing with correction
[2010-01-21 08:49:28] N [glusterfsd.c:1306:main] glusterfs: Successfully started
[2010-01-21 08:49:29] N [client-protocol.c:5733:client_setvolume_cbk] remote: Connected to 192.168.1.1:6996, attached to remote volume 'brick'.
[2010-01-21 08:49:29] N [afr.c:2194:notify] replicate: Subvolume 'remote' came back up; going online.
[2010-01-21 08:49:29] N [client-protocol.c:5733:client_setvolume_cbk] remote: Connected to 192.168.1.1:6996, attached to remote volume 'brick'.
[2010-01-21 08:49:29] N [afr.c:2194:notify] replicate: Subvolume 'remote' came back up; going online.
[2010-01-21 08:49:29] N [client-protocol.c:5733:client_setvolume_cbk] remote2: Connected to 192.168.1.2:6996, attached to remote volume 'brick'.
[2010-01-21 08:49:29] N [client-protocol.c:5733:client_setvolume_cbk] remote2: Connected to 192.168.1.2:6996, attached to remote volume 'brick'.
[2010-01-21 09:08:51] W [glusterfsd.c:898:cleanup_and_exit] glusterfs: shutting down
[2010-01-21 09:08:51] N [fuse-bridge.c:2879:fini] fuse: Unmounting '/mnt/glusterfs'.
[2010-01-21 09:08:51] W [glusterfsd.c:898:cleanup_and_exit] glusterfs: shutting down
so even my Ubuntu does the same thing, but it disconnect when I unmount or halt the Pc, so the real question is: "why Mac decide itself to disconnect? what's the matter?!"
Reply With Quote
  #8  
Old 30th January 2010, 09:17
alex_time alex_time is offline
Junior Member
 
Join Date: Jan 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The difference between Ubuntu (which works well) and Mac (which does not), is that Ubuntu does one more thing before unmounting:

Code:
W [glusterfsd.c:898:cleanup_and_exit] glusterfs: shutting down
while the Mac directly unmount.

The problem is that the log file does not say anything to investigate...where I can look for something?! Maybe the MacFUSE client? Even if I used a 2.x version like glusterfs suggest con the Mac guide posted earlier.
Reply With Quote
  #9  
Old 30th January 2010, 16:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

I don't know why this is happening - unfortunately I don't have a Mac to test with...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 2nd February 2010, 09:44
alex_time alex_time is offline
Junior Member
 
Join Date: Jan 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko View Post
I don't know why this is happening - unfortunately I don't have a Mac to test with...
...an Hackintosh to make some test?!?! I really do not know where search. GlusterFS project does not have a forum or email address...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability Cluster Using Debian Lenny jbimmerle Installation/Configuration 0 4th September 2009 03:01
Distributed Storage Across Four Storage Nodes With GlusterFS - Expandable? c0mputernick HOWTO-Related Questions 1 2nd July 2009 14:42
GlusterFS High Availability: is it possible? miumiento HOWTO-Related Questions 1 26th June 2009 14:20
MySQL High Availability FreeBSD Cluster businessgeeks Suggest HOWTO 1 22nd May 2008 11:46
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38


All times are GMT +2. The time now is 04:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.