LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 01-03-2007, 02:46 AM   #1
oudoubah
LQ Newbie
 
Registered: Oct 2005
Location: France
Distribution: Arch
Posts: 23

Rep: Reputation: 0
nfs over ssh : mount failed


Hi,

I wrote a script to mount a nfs share to backup linux servers :
Code:
...
# Creating the tunnel
affiche_action "Tunneling"
ssh -f -L${NFSPORT}:${IPSERV}:2049 -L${NFSMOUNTPORT}:${IPSERV}:32767 -l sauvegarde ${IPSERV} sleep 60
affiche_resultat $? || quit 1

# Montage du partage nfs
affiche_action "Mount nfs share to $SERVER"
mkdir $REP
mount -v -t nfs -o tcp,sync,rsize=8192,wsize=8192,soft,timeo=60,port=$NFSPORT,mountport=$NFSMOUNTPORT $SERVER $REP
affiche_resultat $? || quit 1
...
I've many servers, and it works fine for some, but two won't mount the nfs.

1st server :
When i run the script above, i obtain this :
Code:
Tunneling ........... [OK]
Mount nfs share to localhost:/images ...........
mount -v -t nfs -o tcp,sync,rsize=8192,wsize=8192,soft,timeo=60,port=38000,mountport=38001 localhost:/images /tmp/save.4979
mount to NFS server 'localhost' failed: possible invalid protocol.
RPC Error: 15 ( le programme n'est pas enregistré )
[KO]
When i mount directly the nfs (without tunneling it in ssh), it works.

Is anyone have an idea?

2nd server
Here is my error message :
Code:
Tunneling ........... [OK]
Mount nfs share to localhost:/images ...........
mount -v -t nfs -o tcp,sync,rsize=8192,wsize=8192,soft,timeo=60,port=38000,mountport=38001 localhost:/images /tmp/save.17346
mount to NFS server 'localhost' failed: server is down.
[KO]
From the client i tried telnet on portmap on the server, and i get connected.
I can't try to mount directly the nfs without tunneling because the client and server are in different networks and network team won't open other ports than 111 and 22 for the saves.

Thanks
 
Old 01-08-2007, 02:17 AM   #2
oudoubah
LQ Newbie
 
Registered: Oct 2005
Location: France
Distribution: Arch
Posts: 23

Original Poster
Rep: Reputation: 0
For the second error message, the problem was that portmap was not running O:-)
But now, i obtain the first error message.
Anyone have a clue or an idea?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 8 09-22-2006 03:34 AM
mount to NFS server '192.168.12.43' failed: server is down. hemant kumar tiwari General 1 06-07-2006 09:09 AM
Failed to mount the root directory via nfs banner Linux - Networking 2 04-01-2005 02:04 AM
Failed to mount the root directory via nfs banner Linux - Newbie 2 03-30-2005 01:57 PM
mount to NFS server '192.168.1.13' failed: server is down rblampain Linux - Networking 2 01-14-2005 01:19 AM


All times are GMT -5. The time now is 06:34 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