LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-10-2008, 02:52 PM   #1
Ingla
Member
 
Registered: Oct 2005
Distribution: Ubuntu 8.04, Ubuntu 10.04
Posts: 159

Rep: Reputation: 15
NFS File Share - Died After Electrical Outage


Hello.

I have had file sharing (NFS) between to Linux boxes - One running Ubuntu Feisty and one Dapper.

Occasionally, sudden power outages have taken down the house and, of course, the computers.

When this happens, something gets killed in the network. I run through a list of commands on each box:

sudo dpkg-reconfigure portmap
sudo /etc/init.d/portmap restart
sudo gedit /etc/exports
sudo /etc/init.d/nfs-kernel-server restart
sudo exportfs -a
sudo /etc/init.d/portmap restart
/etc/init.d/nfs-common restart

REBOOT and then the share mounts on both machines

This time, an electric company worker cut power from outside to do some work and the results were worse. I lost my screen resolution, the GUI options for reboot and shutdown and, of course, file sharing.

Got the first two fixed, but the network is dead.

On Feisty, I get:
mount to NFS server '10.0.0.2' failed: server is down.

On Dapper it's:
mount to NFS server '10.0.0.139' failed.

I've run the usual commands and rebooted several times. No go. I can't find what's wrong.

Here are some outputs:

On Feisty (IP 10.0.0.139) (10.0.0.2 is Dapper's IP):

rpcinfo -p 10.0.0.2
rpcinfo: can't contact portmapper: RPC: Remote system error - No route to host
----------------------------------------------------------------------------------------------------------------------
rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 32770 nlockmgr
100021 3 udp 32770 nlockmgr
100021 4 udp 32770 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 tcp 59605 nlockmgr
100021 3 tcp 59605 nlockmgr
100021 4 tcp 59605 nlockmgr
100005 1 udp 860 mountd
100005 1 tcp 863 mountd
100005 2 udp 860 mountd
100005 2 tcp 863 mountd
100005 3 udp 860 mountd
100005 3 tcp 863 mountd
100024 1 udp 32771 status
100024 1 tcp 60599 status
----------------------------------------------------------------------------
exportfs -ra
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "10.0.0.2:/home/aba".
Assuming default behaviour ('subtree_check').
NOTE: this default will change with nfs-utils version 1.1.0
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "10.0.0.3:/home/aba".
Assuming default behaviour ('subtree_check').
NOTE: this default will change with nfs-utils version 1.1.0
exportfs: could not open /var/lib/nfs/etab for locking
exportfs: can't lock /var/lib/nfs/etab for writing
---------------------------------------------------------------------------
On Dapper:

rpcinfo -p 10.0.0.139
No remote programs registered.
----------------------------------------------------------------------------
rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100021 1 udp 32768 nlockmgr
100021 3 udp 32768 nlockmgr
100021 4 udp 32768 nlockmgr
100021 1 tcp 44970 nlockmgr
100021 3 tcp 44970 nlockmgr
100021 4 tcp 44970 nlockmgr
100005 1 udp 1000 mountd
100005 1 tcp 1003 mountd
100005 2 udp 1000 mountd
100005 2 tcp 1003 mountd
100005 3 udp 1000 mountd
100005 3 tcp 1003 mountd
100024 1 udp 661 status
100024 1 tcp 664 status
-------------------------------------------------------------------------------
exportfs -ra
exportfs: could not open /var/lib/nfs/etab for locking
exportfs: can't lock /var/lib/nfs/etab for writing
-------------------------------------------------------------------------------

It looks like the daemons are running. /etc/hosts.allow, /etc/hosts.deny, and /etc/hosts all look normal as far as I can recall.

I cannot ping Dapper from Feisty, but the other way around works.

Any ideas what could be wrong?
 
Old 03-12-2008, 08:29 AM   #2
onof
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by Ingla View Post
Hello.
I cannot ping Dapper from Feisty, but the other way around works.
Any ideas what could be wrong?
the Feisty's routing table?
 
Old 03-20-2008, 09:27 AM   #3
Ingla
Member
 
Registered: Oct 2005
Distribution: Ubuntu 8.04, Ubuntu 10.04
Posts: 159

Original Poster
Rep: Reputation: 15
Sorry, I was away for a few days.

Routing Table for Feisty:
---------------------------------------------------------
netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 eth0
--------------------------------------------------------
I don't recognize the 169.254.0.0

If this isn't correct, I don't know how it could have changed - I could ping and share files before the electrical outage??
 
Old 03-26-2008, 05:17 AM   #4
onof
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
$> traceroute 169.254.0.0

Are there Firewalls on?

Last edited by onof; 03-26-2008 at 05:19 AM.
 
  


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
NFS File Share - Cannot Mount Ingla Linux - Software 6 08-06-2007 07:56 PM
browsing an iso file in a nfs share linuxnewbie_2007 Linux - Newbie 6 04-19-2007 04:30 PM
file permission problems on nfs-share Falafel Linux - Networking 3 12-05-2006 01:57 PM
Can't delete file on NFS share in Nautilus corkypa Linux - Software 0 10-18-2005 12:13 PM
Is it better to use sftp to trasfer a file than to use NFS share? mphreddy Linux - Networking 1 01-02-2004 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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