NFS backup server won't mount

My backup server (192.168.0.103) is configured in Yast>Network Services>NFS Server as follows:-

Directories to Export --- /mnt/SERVER

Host Wild Card --- *
Options --- fsid=0,crossmnt,rw,no_root_squash,sync,no_subtree_check

Yet when as root in my client box (192.168.0.171) I invoke…

mount  192.168.0.103:/mnt/SERVER /mnt/SERVER

…nothing happens. The command does not complete, I get no error message and “top” does not show mount as running. I have to CTL-C to get out. This used to work until a recent software update.

Does anyone have any suggestions as to a solution? Thanks in advance.

On 2013-05-31 12:06, ionmich wrote:
>
> My backup server (192.168.0.103) is configured in Yast>Network
> Services>NFS Server as follows:-
>
>
> Directories to Export — /mnt/SERVER
>
> Host Wild Card — *
> Options —
> fsid=0,crossmnt,rw,no_root_squash,sync,no_subtree_check

Please, instead of description, just paste the contents of the export
file, like this:


> cer@Telcontar:~> cat /etc/exports
> /data/storage_c/repositorios_zypp/                      192.168.1.0/24(fsid=1234,rw,no_root_squash,nohide,no_subtree_check,insecure) 172.16.108.0/24(fsid=1234,rw,no_root_squash,nohide,no_subtree_check,insecure)  192.168.74.0/24(fsid=1234,rw,no_root_squash,nohide,no_subtree_check,insecure)       127.0.0.1(fsid=1234,rw,no_root_squash,nohide,no_subtree_check,insecure)
> cer@Telcontar:~>


Please use code tags for printouts and commands. Advanced editor, ‘#’
button. Posting in Code Tags - A Guide

> Yet when as root in my client box (192.168.0.171) I invoke…
>
>
> mount 192.168.0.103:/mnt/SERVER /mnt/SERVER
>
> …nothing happens. The command does not complete, I get no error
> message and “top” does not show mount as running. I have to CTL-C to get
> out. This used to work until a recent software update.

Again, instead of description, just paste the terminal contents,
including the “^C” and next prompt :wink:

I suggest you add an “-v” to the command for verbose output and let it
run for 2 minutes or more, 5 perhaps, to see if it times out.

You can also run in another terminal “tailf /var/log/messages” and paste
here the new lines after the mount command.

And all those inside code tags blocks, please :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Sorry I forgot about /etc/exports.

# cat /etc/exports
  mnt/SERVER     *(fsid=0,crossmnt,rw,no_root_squash,sync,no_subtree_check)

But your “-v” suggestion provided the following output…

# mount -v  192.168.0.103:/mnt/SERVER /mnt/SERVER
mount.nfs: timeout set for Fri May 31 14:54:19 2013
mount.nfs: trying text-based options 'vers=4,addr=192.168.0.103,clientaddr=192.168.0.171'
mount.nfs: mount(2): No route to host
mount.nfs: trying text-based options 'vers=4,addr=192.168.0.103,clientaddr=192.168.0.171'
^C

…which prompted me to try…

# ping 192.168.0.103
PING 192.168.0.103 (192.168.0.103) 56(84) bytes of data.
From 192.168.0.171 icmp_seq=1 Destination Host Unreachable
From 192.168.0.171 icmp_seq=2 Destination Host Unreachable

…pointing me to a broken cable connector at my router. Replacing the cable fixed the problem.

Thank you very much.

On 2013-05-31 15:16, ionmich wrote:

> Sorry I forgot about /etc/exports.
>
>
>
> Code:
> --------------------
> # cat /etc/exports
> mnt/SERVER *(fsid=0,crossmnt,rw,no_root_squash,sync,no_subtree_check)
> --------------------

Well, there you have, there is a missing “/” before the “mnt” directory.
It can not work :slight_smile:

> But your “-v” suggestion provided the following output…
>
>
> Code:
> --------------------
> # mount -v 192.168.0.103:/mnt/SERVER /mnt/SERVER
> mount.nfs: timeout set for Fri May 31 14:54:19 2013
> mount.nfs: trying text-based options ‘vers=4,addr=192.168.0.103,clientaddr=192.168.0.171’
> mount.nfs: mount(2): No route to host
> mount.nfs: trying text-based options ‘vers=4,addr=192.168.0.103,clientaddr=192.168.0.171’
> ^C
>
> --------------------
>
>
> …which prompted me to try…
>
>
> Code:
> --------------------
> # ping 192.168.0.103
> PING 192.168.0.103 (192.168.0.103) 56(84) bytes of data.
> From 192.168.0.171 icmp_seq=1 Destination Host Unreachable
> From 192.168.0.171 icmp_seq=2 Destination Host Unreachable
>
> --------------------

Ah, network problem, too.

>
>
> …pointing me to a broken cable connector at my router. Replacing the
> cable fixed the problem.

Good!

But with the error in the exports file? Or did you miss a char when pasting?


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Just to clear everything up, there WAS a "/"  before the "mnt" directory. The backup server is a text-only installation so I can't copy and paste or use a graphic browser to connect to this forum. In the process of viewing Yast in text-only and copying via keyboard to my browser running in my usual graphic box, I did not see the "/".

But then broken connectors are easier to diagnose and fix.

On 2013-06-02 13:26, ionmich wrote:

> Just to clear everything up, there WAS a “/” before the “mnt”
> directory. The backup server is a text-only installation so I can’t copy
> and paste or use a graphic browser to connect to this forum. In the
> process of viewing Yast in text-only and copying via keyboard to my
> browser running in my usual graphic box, I did not see the “/”.
>
> But then broken connectors are easier to diagnose and fix.

Oh, I see.

Just in case you are interested, for the next time, it is possible to use the mouse in text mode,
too, and copy-paste between terminals (service is named ‘gpm’). There are also a few text mode
web-browsers (links, lynx, w3m), but I don’t remember if they work with the forum or not.
Alternatively, there are text mail clients that can also access nntp servers (alpine, perhaps
mutt?), and also stand alone nntp servers. I mention nntp because these forums have nttp access, so
you can post from text mode :wink:

Or you can paste to a file which you can copy to usb stick if network is not available.

In any case, text mode copy-paste can be useful for other work in that server.


Cheers / Saludos,

Carlos E. R.
(from oS 12.3 “Dartmouth” GM (rescate 1))