LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-11-2012, 04:43 AM   #1
Maarten-P001
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Rep: Reputation: Disabled
NFS mount over internet


Good morning folks!!

I'm trying to mount a NFS share over the internet however I keep receiving the following error:

Mount.nfs: mount system call failed.

Ports are NATted and local mounting works just fine.

What I'm planning to do is mount this location and then rsync an incremental backup to it.
This problem is not limmited to the setup I'm implementing it on. I've a test enviroment where I'm trying the same thing and it produces the same error.

The test enviroment consists of a NAS with NFS support and a virtual Ubuntu 10.04 server. It's very close to the setup I need to implement the backup sollution on. As i've said: on both setups I'm able to mount the NFS shares locally.

What am I missing here??

Thanks in advance!!

Kind regards,
Maarten
 
Old 07-11-2012, 09:44 AM   #2
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
Check /etc/hosts.allow and /etc/hosts.deny on host. portmap, lockd, mountd, rquotad and statd should all be listed unless ALL:ALL is listed in hosts.allow.

Last edited by kbscores; 07-11-2012 at 09:46 AM.
 
1 members found this post helpful.
Old 07-11-2012, 09:46 AM   #3
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,023

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
from what i understand nfs doesnt allow mounts thru routers (has to be on the local network).

look into sshfs.
 
1 members found this post helpful.
Old 07-12-2012, 12:57 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Doing NFS over the internet could be a problem, its really designed for LANs; also most firewalls would block those ports because of that.
Why not just do a straight rsync, preferably using ssh as transport.
 
1 members found this post helpful.
Old 07-16-2012, 08:17 AM   #5
Maarten-P001
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi all,

Thanks for the push in the right direction!!

As you stated NFS isn't the right choice here. Learned a lot about SSH, Rsync and sshfs. Great stuff!!

I've setup an Ubuntu server on our site and created an SSH key for our local server from the remote server. I'm now able to Rsync over ssh.

Thanks again!!

Kind Regards,

Maarten
 
Old 07-19-2012, 07:10 AM   #6
Maarten-P001
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi again people!!

Kinda solved the issue I started this thread for but still i'm experienmcing some difficulties with my RSync backup. Perhaps one of you might have a solution to the following problem:

I'm using a script to make a incremental, date stamped snapshot of a folder. or, at least I'm trying to...

from the script, the manual command would look kinda like this:

rsync -rvh -e ssh --delete --link-dest=server1.office.nl:/mnt/rsync/backup/2012-07-17 /backup server1.office.nl:/mnt/rsync/backup/2012-07-19 1> /var/log/backup/backup1.log

The error RSync returns is: --link-dest arg does not exist: server1.office.nl:/mnt/rsync/backup/2012-07-17

The sync works fine except for being incremental due to the error above. I'm able to mount the ../2012-07-17 folder with sshfs however when i change the --linkdest= path to the mount poit, the same error is produced... when I cd to the mount point I am able to see all the fiels and folders RSync should use..

I've googled for --link-dest problems, couldn't find one single site that mentioned this option.

Any1 got any idear??

For more information: My method is based on Andrew J. Nelson's guide on http://webgnuru.com/linux/rsync_incremental.php.

Thanks in advance!!

Kind Regards,

Maarten

Last edited by Maarten-P001; 07-19-2012 at 07:14 AM.
 
Old 07-25-2012, 06:46 AM   #7
Maarten-P001
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Any1??
 
Old 07-26-2012, 05:59 AM   #8
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 11.4
Posts: 1,319

Rep: Reputation: 252Reputation: 252Reputation: 252
The --link-dest=<dir> must point to a local directory with the last backup. So the new backup can make hard links thereto. But you would like to make hard links on the destination site - and only there. Even if the syntax would allow it: I fear the sshfs mounted directory won’t provide the necessary information about the inodes to create hard links anywhere.

You can try to specify the plain directory like it’s called on the receiving side without any host address of sshfs in the way.
 
1 members found this post helpful.
Old 08-01-2012, 03:32 AM   #9
Maarten-P001
LQ Newbie
 
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thnx Reuti for your reply!!

Ouch... That's a major set back. It seemed like the perfect way to do an incremental backup with date stamp however it appears this will only work as a local backup.

The link-dest=<dir> should point to the directory created by the backup of yesterday so that files that haven't changed are linked to the inode of the file in yesterdays backup.

Is there any other way we can get this to work??
 
Old 08-02-2012, 01:13 PM   #10
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 11.4
Posts: 1,319

Rep: Reputation: 252Reputation: 252Reputation: 252
Did you try to provide the plain path from the remote side for --link-dest=<dir> too (i.e. without the hostname) as this is already given for the target of the synchronization? No sshfs in the game.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 07:03 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 02:36 PM
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 8 09-22-2006 03:34 AM
Can I mount NFS over the Internet through secure tunnel??? cvega99 Linux - Networking 1 03-10-2003 06:19 AM


All times are GMT -5. The time now is 11:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration