Discussion:
setting up NFS - help!
John Smith
2008-07-25 14:15:07 UTC
Permalink
Trying to do a ./configure on the nfs-utils-1.1.2 on an ubuntu 8.04 server.


All is well, except for one line involving Kerberos v5, which I'm not sure about. Any insight into why it is giving me the following message would be appreciated! (I am trying to incorporate Kerberos v5 into the build).

checking for Kerberos v5... ./configure: line 23561: test: 163-beta1-debian: integer expression expected
/usr
The current KRBDIR is /usr
Kevin Coffman
2008-07-25 14:46:02 UTC
Permalink
Post by John Smith
Trying to do a ./configure on the nfs-utils-1.1.2 on an ubuntu 8.04 server.
All is well, except for one line involving Kerberos v5, which I'm not sure about. Any insight into why it is giving me the following message would be appreciated! (I am trying to incorporate Kerberos v5 into the build).
checking for Kerberos v5... ./configure: line 23561: test: 163-beta1-debian: integer expression expected
/usr
The current KRBDIR is /usr
Hi John,
(Unfortunately, for reasons I won't go into...) We attempt to parse
the Kerberos version and use it. It isn't handling the non-numerical
"-beta1-debian" part very well.

Is this causing problems with the build or in operation? If not, it
can be ignored. If so, I can probably help you get around the
problem.

K.C.
John Smith
2008-07-28 15:37:34 UTC
Permalink
Kevin & nfsv4 list,

I've successfully configured and setup nfsv4 on my ubuntu 8.04 server. I was reading in the README file that nfs purposefully does not include startup scripts to begin the service, which makes sense since most OS's have their own methods of starting it.

But, since I've installed everything from separate binary files, I was wondering if someone could get me started on how to start nfs manually. The README is a bit confusing in this sense. It has the order in which to start each service, but no instructions on how to actually do so.

Might sound a bit like a noobish request, as I seriously am no expert to begin with, but I'm pretty stuck. Using apt-get is not an option in my case, for those that are wondering.

-John





----- Original Message ----
From: Kevin Coffman <kwc at umich.edu>
To: John Smith <jsmith_at_work at yahoo.com>
Cc: NFSv4 at linux-nfs.org
Sent: Friday, July 25, 2008 10:46:02 AM
Subject: Re: setting up NFS - help!
Post by John Smith
Trying to do a ./configure on the nfs-utils-1.1.2 on an ubuntu 8.04 server.
All is well, except for one line involving Kerberos v5, which I'm not sure about. Any insight into why it is giving me the following message would be appreciated! (I am trying to incorporate Kerberos v5 into the build).
checking for Kerberos v5... ./configure: line 23561: test: 163-beta1-debian: integer expression expected
/usr
The current KRBDIR is /usr
Hi John,
(Unfortunately, for reasons I won't go into...) We attempt to parse
the Kerberos version and use it. It isn't handling the non-numerical
"-beta1-debian" part very well.

Is this causing problems with the build or in operation? If not, it
can be ignored. If so, I can probably help you get around the
problem.

K.C.
Kevin Coffman
2008-07-28 18:21:33 UTC
Permalink
Unfortunately, I don't have a Debian or Ubuntu machine handy where I
can grab their startup scripts. Maybe you do?

Have you seen this page yet?
http://www.citi.umich.edu/projects/nfsv4/linux/using-nfsv4.html
Ignore the references to debian init scripts because they have since
been removed. I believe these instructions are still relevant besides
that. Hopefully, that is enough to get you started?
Post by John Smith
Kevin & nfsv4 list,
I've successfully configured and setup nfsv4 on my ubuntu 8.04 server. I was reading in the README file
that nfs purposefully does not include startup scripts to begin the service, which makes sense since most
OS's have their own methods of starting it.
But, since I've installed everything from separate binary files, I was wondering if someone could get me
started on how to start nfs manually. The README is a bit confusing in this sense. It has the order in
which to start each service, but no instructions on how to actually do so.
Might sound a bit like a noobish request, as I seriously am no expert to begin with, but I'm pretty stuck.
Using apt-get is not an option in my case, for those that are wondering.
-John
----- Original Message ----
From: Kevin Coffman <kwc at umich.edu>
To: John Smith <jsmith_at_work at yahoo.com>
Cc: NFSv4 at linux-nfs.org
Sent: Friday, July 25, 2008 10:46:02 AM
Subject: Re: setting up NFS - help!
Post by John Smith
Trying to do a ./configure on the nfs-utils-1.1.2 on an ubuntu 8.04 server.
All is well, except for one line involving Kerberos v5, which I'm not sure about. Any insight into why it is giving me the following message would be appreciated! (I am trying to incorporate Kerberos v5 into the build).
checking for Kerberos v5... ./configure: line 23561: test: 163-beta1-debian: integer expression expected
/usr
The current KRBDIR is /usr
Hi John,
(Unfortunately, for reasons I won't go into...) We attempt to parse
the Kerberos version and use it. It isn't handling the non-numerical
"-beta1-debian" part very well.
Is this causing problems with the build or in operation? If not, it
can be ignored. If so, I can probably help you get around the
problem.
K.C.
_______________________________________________
NFSv4 mailing list
NFSv4 at linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4
John Smith
2008-08-01 13:29:44 UTC
Permalink
I'm now installing nfs4 through apt-get, but still running into problems (Note: not using Kerberos).


Error Message:
---------------------------
mount.nfs4: Connection timed out

Commands Used:
---------------------------
sudo apt-get install nfs-common (on the client)
sudo apt-get install nfs-kernel-server (on the server)

Config Changes:
---------------------------
sudo vi /etc/default/nfs-common
--> Added "NEED_IDMAPD=yes" (to both client and server)

sudo vi /etc/exports
--> Added /files 192.168.1.0/24(rw,sync,no_subtree_check)
--> sudo exportfs -r

sudo vi /etc/resolv.conf
--> add the nameserver
---------------------------
*idmapd is running on both the client and server*

*client and server are separate virtual machines, and they are the only two machines on the network (besides a DNS server)*
---------------------------

***There is network traffic going back and forth between the two machines (using tcpdump to trace--see below)***

[17:24:29.271467] IP client.example.net.34236755563 > server.example.net.nfs 112 getattr [|nfs]
[17:24:29.271619] IP server.example.net.nfs > client.example.net.3423675563: reply ERR 24: Auth Bogus Credentials (seal broken)
---------------------------

This is one of the simplest scenarios I can ever think of and I'm still having
trouble! Something looks kind of funky in that network trace above, so any help would be appreciated. There is also nothing in the logs that would help me out in troubleshooting this error.

-John
J. Bruce Fields
2008-08-02 17:27:05 UTC
Permalink
Post by John Smith
I'm now installing nfs4 through apt-get, but still running into problems (Note: not using Kerberos).
---------------------------
mount.nfs4: Connection timed out
---------------------------
sudo apt-get install nfs-common (on the client)
sudo apt-get install nfs-kernel-server (on the server)
---------------------------
sudo vi /etc/default/nfs-common
--> Added "NEED_IDMAPD=yes" (to both client and server)
sudo vi /etc/exports
--> Added /files 192.168.1.0/24(rw,sync,no_subtree_check)
--> sudo exportfs -r
Do you know about the fsid=0 stuff? See the explanation of exports in
http://www.citi.umich.edu/projects/nfsv4/linux/using-nfsv4.html

--b.
Post by John Smith
sudo vi /etc/resolv.conf
--> add the nameserver
---------------------------
*idmapd is running on both the client and server*
*client and server are separate virtual machines, and they are the only two machines on the network (besides a DNS server)*
---------------------------
***There is network traffic going back and forth between the two machines (using tcpdump to trace--see below)***
[17:24:29.271467] IP client.example.net.34236755563 > server.example.net.nfs 112 getattr [|nfs]
[17:24:29.271619] IP server.example.net.nfs > client.example.net.3423675563: reply ERR 24: Auth Bogus Credentials (seal broken)
---------------------------
This is one of the simplest scenarios I can ever think of and I'm still having
trouble! Something looks kind of funky in that network trace above, so any help would be appreciated. There is also nothing in the logs that would help me out in troubleshooting this error.
-John
_______________________________________________
NFSv4 mailing list
NFSv4 at linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4
John Smith
2008-08-04 15:30:09 UTC
Permalink
Bruce & nfs list,

After adding fsid=0 to the export, I am now receiving the error:
---------------------------
"mount.nfs4: mounting server.example.net:/files failed, reason given by server:
No such file or directory"
---------------------------


Doing an ls -l on the server reveals the following permissions:
---------------------------
drwxr-xr-x 2 root root 4096 2008-07-07 06:59 files
---------------------------

Have you seen the above error before?

-John
Post by John Smith
I'm now installing nfs4 through apt-get, but still running into problems (Note: not using Kerberos).
---------------------------
mount.nfs4: Connection timed out
---------------------------
sudo apt-get install nfs-common (on the client)
sudo apt-get install nfs-kernel-server (on the server)
---------------------------
sudo vi /etc/default/nfs-common
--> Added "NEED_IDMAPD=yes" (to both client and server)
sudo vi /etc/exports
--> Added /files 192.168.1.0/24(rw,sync,no_subtree_check)
--> sudo exportfs -r
Do you know about the fsid=0 stuff? See the explanation of exports in
http://www.citi.umich.edu/projects/nfsv4/linux/using-nfsv4.html

--b.
J. Bruce Fields
2008-08-04 15:44:00 UTC
Permalink
are you now trying to mount "<server>:/files" or "<server>:/" ? With
the "fsid=0", I think you want the latter.
Right. What the URL I gave:

http://www.citi.umich.edu/projects/nfsv4/linux/using-nfsv4.html

attempts to explain is that the path marked with fsid=0 is seen on the
client side as "/".

--b.
Maybe you could cat /etc/exports on the server and give the exact
mount command you are using on the client?
Post by John Smith
Bruce & nfs list,
---------------------------
No such file or directory"
---------------------------
---------------------------
drwxr-xr-x 2 root root 4096 2008-07-07 06:59 files
---------------------------
Have you seen the above error before?
-John
Post by John Smith
I'm now installing nfs4 through apt-get, but still running into problems (Note: not using Kerberos).
---------------------------
mount.nfs4: Connection timed out
---------------------------
sudo apt-get install nfs-common (on the client)
sudo apt-get install nfs-kernel-server (on the server)
---------------------------
sudo vi /etc/default/nfs-common
--> Added "NEED_IDMAPD=yes" (to both client and server)
sudo vi /etc/exports
--> Added /files 192.168.1.0/24(rw,sync,no_subtree_check)
--> sudo exportfs -r
Do you know about the fsid=0 stuff? See the explanation of exports in
http://www.citi.umich.edu/projects/nfsv4/linux/using-nfsv4.html
--b.
_______________________________________________
NFSv4 mailing list
NFSv4 at linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4
Kevin Coffman
2008-08-04 15:42:33 UTC
Permalink
are you now trying to mount "<server>:/files" or "<server>:/" ? With
the "fsid=0", I think you want the latter.

Maybe you could cat /etc/exports on the server and give the exact
mount command you are using on the client?
Post by John Smith
Bruce & nfs list,
---------------------------
No such file or directory"
---------------------------
---------------------------
drwxr-xr-x 2 root root 4096 2008-07-07 06:59 files
---------------------------
Have you seen the above error before?
-John
Post by John Smith
I'm now installing nfs4 through apt-get, but still running into problems (Note: not using Kerberos).
---------------------------
mount.nfs4: Connection timed out
---------------------------
sudo apt-get install nfs-common (on the client)
sudo apt-get install nfs-kernel-server (on the server)
---------------------------
sudo vi /etc/default/nfs-common
--> Added "NEED_IDMAPD=yes" (to both client and server)
sudo vi /etc/exports
--> Added /files 192.168.1.0/24(rw,sync,no_subtree_check)
--> sudo exportfs -r
Do you know about the fsid=0 stuff? See the explanation of exports in
http://www.citi.umich.edu/projects/nfsv4/linux/using-nfsv4.html
--b.
_______________________________________________
NFSv4 mailing list
NFSv4 at linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4
John Smith
2008-08-04 18:17:29 UTC
Permalink
Hey, that worked. Thank you.

-John




----- Original Message ----
From: J. Bruce Fields <bfields at fieldses.org>
To: Kevin Coffman <kwc at umich.edu>
Cc: John Smith <jsmith_at_work at yahoo.com>; NFSv4 at linux-nfs.org
Sent: Monday, August 4, 2008 11:44:00 AM
Subject: Re: setting up NFS - help!
are you now trying to mount "<server>:/files" or "<server>:/" ? With
the "fsid=0", I think you want the latter.
Right. What the URL I gave:

http://www.citi.umich.edu/projects/nfsv4/linux/using-nfsv4.html

attempts to explain is that the path marked with fsid=0 is seen on the
client side as "/".

--b.
Maybe you could cat /etc/exports on the server and give the exact
mount command you are using on the client?
Post by John Smith
Bruce & nfs list,
---------------------------
No such file or directory"
---------------------------
---------------------------
drwxr-xr-x 2 root root 4096 2008-07-07 06:59 files
---------------------------
Have you seen the above error before?
-John
Post by John Smith
I'm now installing nfs4 through apt-get, but still running into problems (Note: not using Kerberos).
---------------------------
mount.nfs4: Connection timed out
---------------------------
sudo apt-get install nfs-common (on the client)
sudo apt-get install nfs-kernel-server (on the server)
---------------------------
sudo vi /etc/default/nfs-common
--> Added "NEED_IDMAPD=yes" (to both client and server)
sudo vi /etc/exports
--> Added /files 192.168.1.0/24(rw,sync,no_subtree_check)
--> sudo exportfs -r
Do you know about the fsid=0 stuff? See the explanation of exports in
http://www.citi.umich.edu/projects/nfsv4/linux/using-nfsv4.html
--b.
_______________________________________________
NFSv4 mailing list
NFSv4 at linux-nfs.org
http://linux-nfs.org/cgi-bin/mailman/listinfo/nfsv4
Loading...