Page 1 of 1

How to best mount GH shares with NFS

Posted: Sun Dec 11, 2011 1:52 pm
by doomedtx
I'd like to know the best way to mount gh shares with NFS so that they work correctly. Currently my movies share is exported like this:

Code: Select all

/var/hda/files/movies *(rw,insecure,all_squash,async,anonuid=48,anongid=48)
When I copy a file to this share and it is moved to a drive in the pool, it works fine in Windows with Samba. However, when I access the file from another Linux machine, it looks like this:

Code: Select all

lrwxrwxrwx 1 root root 51 Dec 11 01:36 Office2011.exe -> /var/hda/files/drives/sdd1/gh/Movies/Office2011.exe
Obviously the other Linux machine doesn't have the directory referenced by the symlink, so when I try to copy from there it gives me a "file not found" error. I'm assuming there's a way to mount shares so that Linux machines are able to access the target without resorting to CIFS. I've looked through the forums and haven't seen the correct way to accomplish this. As requested, gh details below:

1. What version of Fedora, Samba & Greyhole are you running?

Code: Select all

2.6.35.6-45.fc14.x86_64 samba-3.5.5-68.fc14.1.x86_64 hda-greyhole-0.9.2-1.x86_64


2. The content of the /etc/samba/smb.conf & /etc/greyhole.conf files (provide paste URLs):

http://fpaste.org/81PO/
http://fpaste.org/g4Ui/

3. The result of the following commands:

http://fpaste.org/PSKO/
http://fpaste.org/UXwX/
http://fpaste.org/HctE/
http://fpaste.org/tYBK/

4. The list drives in your storage pool (per Amahi platform):

Code: Select all

+----+----------------------------+--------------+---------------------+---------------------+ | id | path | minimum_free | created_at | updated_at | +----+----------------------------+--------------+---------------------+---------------------+ | 1 | /var/hda/files/drives/sda1 | 10 | 2011-12-11 07:01:10 | 2011-12-11 07:01:10 | | 2 | /var/hda/files/drives/sdb1 | 10 | 2011-12-11 07:01:11 | 2011-12-11 07:01:11 | | 3 | /var/hda/files/drives/sdc1 | 10 | 2011-12-11 07:01:13 | 2011-12-11 07:01:13 | | 4 | /var/hda/files/drives/sdd1 | 10 | 2011-12-11 07:01:14 | 2011-12-11 07:01:14 | | 5 | /var/hda/files/drives/sde1 | 10 | 2011-12-11 07:01:15 | 2011-12-11 07:01:15 | | 6 | /var/hda/files/drives/sdf1 | 10 | 2011-12-11 07:01:17 | 2011-12-11 07:01:17 | +----+----------------------------+--------------+---------------------+---------------------+


5. A list of the directories on the root of the drives included in your storage pool, obtained with the following command (provide a paste URL):

http://fpaste.org/BOLY/

6. The Greyhole work queue:

Code: Select all

Greyhole Work Queue Statistics ============================== This table gives you the number of pending operations queued for the Greyhole daemon, per share. Write Delete Rename Movies 0 0 0 Music 0 0 0 Photos 0 0 0 TV 0 0 0 ======= Total 0 + 0 + 0 = 0 The following is the number of pending operations that the Greyhole daemon still needs to parse. Until it does, the nature of those operations is unknown. Spooled operations that have been parsed will be listed above and disappear from the count below. Spooled 0

Re: How to best mount GH shares with NFS

Posted: Sun Dec 11, 2011 1:57 pm
by bigfoot65
Try using the mount_shares_locally script and you will not need to go to such drastic measures.

http://wiki.amahi.org/index.php/Mount_Shares_Locally

Recommend you read the Greyhole documentation as well.

Re: How to best mount GH shares with NFS

Posted: Sun Dec 11, 2011 2:10 pm
by doomedtx
Try using the mount_shares_locally script and you will not need to go to such drastic measures.

http://wiki.amahi.org/index.php/Mount_Shares_Locally

Recommend you read the Greyhole documentation as well.
I didn't realize using NFS to share files between two Linux machines was considered a drastic measure. Are you suggesting I mount the shares locally on the Amahi server and export those directories to the NFS clients? I've read the Greyhole documentation and realize it describes itself as a Samba-implemented solution, so it might be that NFS isn't the way to go here. For speed and other reasons I'm used to sharing directories via NFS between Linux machines, but the most important thing is to present a homogenous set of data to Windows, Mac and Linux machines in the house. I will probably wind up sticking with CIFS/Samba on the Linux clients since that is how GH was designed.

Re: How to best mount GH shares with NFS

Posted: Sun Dec 11, 2011 3:14 pm
by bigfoot65
I didn't realize using NFS to share files between two Linux machines was considered a drastic measure. Are you suggesting I mount the shares locally on the Amahi server and export those directories to the NFS clients?
I am just saying it's alot of trouble to do when http://wiki.amahi.org/index.php/Mount_Shares_Locally will do it all for you. No need to use NFS at all. The script will run them through Samba and they will work just like in Windows.
I will probably wind up sticking with CIFS/Samba on the Linux clients since that is how GH was designed.
I think you are better off going this route. Anytime you start messing with Greyhole folders outside Samba, its a bit of a risk. I believe the Greyhole documentation even mentions this. Obviously its your data, so the method of choice is up to you.

Re: How to best mount GH shares with NFS

Posted: Sun Dec 11, 2011 3:38 pm
by doomedtx
The more I read about Greyhole I realize it's designed to work only with Samba, so I won't try to use it any other way. Now I can go join the "transfer speed" thread because I got 45mb/s with NFS and 8MB/s with Samba. That's why I was trying to get NFS working in the first place.

Thanks for the advice.

Re: How to best mount GH shares with NFS

Posted: Sun Dec 11, 2011 6:04 pm
by bigfoot65
Sorry to hear you are having problems with the transfer rate. Something must be amiss as I get good speeds on my HDA. I have even seen speeds approaching 100MB/sec a few times with large files.