LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-29-2014, 10:18 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
nfs mount: No such file or directory ?


Im having some odd behavior when try mount NFS share on my Solaris 10.
NFS Server is Linux SUSE and this share I can mount easily on any another Linux box in my network.
However, when I try to mount this same share under my Solaris I get following error.

Code:
# mount -F nfs 10.23.5.30:/var/backups/ /export/home/a
nfs mount: 10.23.5.30:/var/backups/ /export/home/a: No such file or directory
I have no clue whats wrong. I checked paths - all exists.
Any ideas ?
 
Old 08-29-2014, 11:09 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
You verified "/export/home/a" exists on the Solaris server? That appears to be what the message is complaining about.
 
Old 09-01-2014, 08:19 AM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
As I have written:
Quote:
I checked paths - all exists.
 
Old 09-01-2014, 02:58 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
It would help if you provide more clues and details about this issue.
Can you for example explain how did you check the paths? i.e. what command(s) you used and what output you got?
 
Old 09-02-2014, 03:41 AM   #5
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
OK. I think it is all written in my 1st post but let me try again with full details.

This is NFS server: Linux SUSE (SUSE Linux Enterprise Server 11 (x86_64))
IP: 10.23.5.30
Code:
suse1:/var/backups/ # pwd
/var/backups/

suse1:/var/backups/ # ls -al
total 16
drwxrwxrwx 4 nobody nogroup 4096 2014-08-29 17:27 .
drwxrwxrwx 8 sogadm sog     4096 2014-09-02 03:00 ..
drwxr-xr-x 5 root   root    4096 2014-08-25 16:17 CR1
drwxr-xr-x 4 root   root    4096 2014-08-29 17:25 ZH1
This is NFS client: Solaris 10 (Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC)

Code:
[root@solaris1 /export/home/a]# pwd
/export/home/a

[root@solaris1 /export/home/a]# ls -al
total 4
drwxr-xr-x   2 root     root         512 Sep  2 10:28 .
drwxr-xr-x   8 root     root         512 Sep  2 10:28 ..
This is mount command executed under Solaris to mount NFS share from SUSE Linux:
Code:
[root@solaris1 /]# mount -F nfs 10.23.5.30:/var/backups/ /export/home/a
nfs mount: 10.23.5.30:/var/backups/: No such file or directory

Last edited by czezz; 09-02-2014 at 07:24 AM.
 
Old 09-02-2014, 05:41 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I'm afraid that's not the same error message.

Please copy/paste what is actually written.
 
Old 09-02-2014, 06:17 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,836

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
you should not stand in the directory (/export/home/a) if you want to use it for mounts.
check if /var/backup really shared
 
Old 09-02-2014, 07:06 AM   #8
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
Here is screen shot for SUSE Linux (NFS server): https://www.dropbox.com/s/rak5p012oxlbue7/nfs1.PNG?dl=0
Code:
suse1:/var/backups # pwd
/var/backups
suse1/var/backups # ls -al
total 16
drwxr-xr-x  4 root root 4096 2014-09-02 14:13 .
drwxr-xr-x 24 root root 4096 2014-09-02 14:12 ..
drwxr-xr-x  2 root root 4096 2014-09-02 14:13 CR1
drwxr-xr-x  2 root root 4096 2014-09-02 14:13 ZH1


Here is the sitiation on Solaris: https://www.dropbox.com/s/ckep98ce3n...olnfs.PNG?dl=0
Code:
[root@solaris1 /]# pwd
/
[root@solaris1 /]# ls -al /export/home/a/
total 4
drwxr-xr-x   2 root     root         512 Sep  2 10:28 .
drwxr-xr-x   8 root     root         512 Sep  2 10:28 ..
[root@solaris1 /]#
[root@solaris1 /]# mount -F nfs 10.23.5.30:/var/backups/ /export/home/a/
nfs mount: 10.23.5.30:/var/backups/: No such file or directory

I also tried to mount this share on another machine (with RHEL) and it mounts with no problem
@pan64 - im obviously not in the mount point dir. See that prompt is /

Last edited by czezz; 09-02-2014 at 07:22 AM.
 
Old 09-02-2014, 07:47 AM   #9
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What does "exportfs" with no options output on the NFS server?

What does "showmount <nfs-server>" output on the NFS server? What does the same command output on the target NFS client system?

What does "ping 10.23.50.5" from the NFS client system show?
 
Old 09-02-2014, 07:59 AM   #10
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
Like I said, I can mount this share form another machine (under RHEL).
Here is an output you ask:
NFS Server
Code:
suse1:~ # exportfs
/var/backups    10.23.5.30/255.255.255.128

suse1:~ # showmount 10.23.5.30
Hosts on 10.23.5.30:
10.23.5.20
NFS Client
Code:
[root@solaris1 /]# showmount 10.23.5.30
10.23.5.20

[root@solaris1 /]# ping 10.23.5.30
10.23.5.30 is alive

Last edited by czezz; 09-02-2014 at 08:01 AM.
 
Old 09-02-2014, 08:40 AM   #11
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Sorry - command should be "showmount -e" so it shows you what mounts are available that can be seen.

Is the IP of the client in range between 10.23.5.0 and 10.23.5.127? Your export is restricting it to that range?

Is there a firewall running on the client? Does disabling that firewall make it work?

Are you running the NFS client on the client? That is on some OSes like Linux the NFS server and the NFS client are started separately. It has been a while since I did Solaris. Is the RPC daemon running there?
 
Old 09-09-2021, 03:39 PM   #12
kkuhle
LQ Newbie
 
Registered: Sep 2021
Posts: 1

Rep: Reputation: Disabled
In case someone comes across this many years later, I found the solution for me on another search result that I cannot link as this is my first post

For me, it was as simple as adding the option `-o vers=3` to the mount command.

This works:

```
bash-3.2# mount -F nfs -o vers=3 server:/shares/data1 /mnt/filer/data1
```

After previously seeing `No such file or directory` response:

```
bash-3.2# mount -F nfs server:/shares/data1 /mnt/filer/data1
nfs mount: server:/shares/data1: No such file or directory
```
 
1 members found this post helpful.
  


Reply



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
mount.nfs: mount point /mnt/cdrom is not a directory Error Anna23 Red Hat 1 06-29-2014 06:27 AM
Is this the best way to auto-mount nfs to a certain directory? DJOtaku Linux - General 4 08-02-2012 08:47 AM
fedora core 5 nfs mount:no such file or directory horizonti_2004 Linux - Networking 5 09-15-2007 06:14 PM
fedora core 5 nfs mount:no such file or directory horizonti_2004 Linux - Server 2 09-12-2007 07:00 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:38 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration