Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th July 2012, 06:54
profm2 profm2 is offline
Junior Member
 
Join Date: Mar 2011
Posts: 12
Thanks: 2
Thanked 2 Times in 2 Posts
Default NFS on Ubuntu 12.04 (Perfect Server) not working

Hi all,

I'm trying to get NFS setup on my Ubuntu 12.04 that was initially installed using the perfect server guide.

Running netstat -antp yields:

Code:
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      948/mysqld      
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      565/rpcbind     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      2031/nginx
tcp        0      0 0.0.0.0:732             0.0.0.0:*               LISTEN      2252/rpc.rquotad
tcp        0      0 0.0.0.0:55901           0.0.0.0:*               LISTEN      17227/rpc.mountd
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:43585           0.0.0.0:*               LISTEN      816/rpc.statd   
tcp        0      0 0.0.0.0:34662           0.0.0.0:*               LISTEN      17227/rpc.mountd
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      2048/php-fpm.conf)
It would appear that 2049 is not bound to any program ... and rpcbind is running on port 111.

From my Linux laptop, when I run nmap -O server ... I get:

Code:
Nmap scan report for server (192.168.xxx.xxx)
Host is up (0.0011s latency).
Not shown: 985 filtered ports
PORT      STATE  SERVICE
20/tcp    closed ftp-data
21/tcp    open   ftp
22/tcp    open   ssh
25/tcp    open   smtp
53/tcp    open   domain
80/tcp    open   http
110/tcp   open   pop3
143/tcp   open   imap
443/tcp   open   https
993/tcp   open   imaps
995/tcp   open   pop3s
3306/tcp  open   mysql
8080/tcp  open   http-proxy
8081/tcp  open   blackice-icecap
10000/tcp closed snet-sensor-mgmt
...
So, from my laptop, I don't see port 2049 or 111 ... the two that I should see.

I also have a NAS that I'm running NFS on and when I run nmap -O data ... I get:

Code:
Nmap scan report for data (192.168.xxx.xxx)
Host is up (0.0025s latency).
Not shown: 989 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
80/tcp   open  http
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
443/tcp  open  https
445/tcp  open  microsoft-ds
515/tcp  open  printer
1025/tcp open  NFS-or-IIS
1026/tcp open  LSA-or-nterm
1027/tcp open  IIS
2049/tcp open  nfs
So, based on that info, I'm sure my server isn't opening the ports.

I've followed the HowTo from the Ubuntu site SettingUpNFSHowTo to the letter, multiple times, but still I cannot get NFS to work correctly. One thing I did notice, is that rpcbind is running in place of portmap.

Code:
Note, selecting 'rpcbind' instead of 'portmap'
rpcbind is already the newest version.
Any thoughts?
Reply With Quote
Sponsored Links
  #2  
Old 5th July 2012, 16:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Did you check your logs for errors?

What happens after you run
Code:
exportfs -a
?

You might also want to check out this guide: http://www.howtoforge.com/setting-up...n-ubuntu-10.04
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 7th July 2012, 05:29
profm2 profm2 is offline
Junior Member
 
Join Date: Mar 2011
Posts: 12
Thanks: 2
Thanked 2 Times in 2 Posts
 
Default

Hi Falko,

I've looked in the logs, but haven't found anything useful.

I did notice "gaps" in rpcinfo -p

Code:
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  38217  status
    100024    1   tcp  56720  status
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    2   tcp   2049
    100227    3   tcp   2049
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100227    2   udp   2049
    100227    3   udp   2049
    100021    1   udp  60615  nlockmgr
    100021    3   udp  60615  nlockmgr
    100021    4   udp  60615  nlockmgr
    100021    1   tcp  58173  nlockmgr
    100021    3   tcp  58173  nlockmgr
    100021    4   tcp  58173  nlockmgr
    100005    1   udp  49889  mountd
    100005    1   tcp  50031  mountd
    100005    2   udp  40699  mountd
    100005    2   tcp  38482  mountd
    100005    3   udp  45412  mountd
    100005    3   tcp  42249  mountd
    100011    1   udp    974  rquotad
    100011    2   udp    974  rquotad
    100011    1   tcp    975  rquotad
    100011    2   tcp    975  rquotad
One thing I forgot to test, was turning off my NFS client to a network attached storage drive that I have around. I would assume that I should be able to run the client and server at the same time, but maybe not.
Reply With Quote
Reply

Bookmarks

Tags
nfs, perfect server, ubuntu 12.04

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Perfect Server - Ubuntu 12.04 (question) carlosmay HOWTO-Related Questions 2 10th May 2012 11:36
Vmware server 2.0.2-x with Ubuntu server 10.04 VMware Remote Console Plug-in letsharehowto HOWTO-Related Questions 12 6th December 2011 21:23
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 14:49
Howtoforge the perfect Server(links) rini90 Installation/Configuration 0 14th December 2008 11:58
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 17:11


All times are GMT +2. The time now is 06:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.