[plug] NFS problem

John Summerfield summer at os2.ami.com.au
Tue Dec 1 08:34:50 WST 1998


On Mon, 30 Nov 1998, Nick Bannon wrote:

> On Mon, Nov 30, 1998 at 10:29:55AM +0800, Matt Kemner wrote:
> [...]
> > Also, I found when I had the same problem you did, that killing mountd,
> > and running
> > /usr/sbin/rpc.mountd -F -d   # run in foreground, debug
> > was very helpful to the cause.
> > running strace -p `pidof rpc.mountd` can be very enlightening too.
> 
> Two general handy hints for NFS ;
> 
> 1. Sometimes actually stopping and starting the daemons in question (eg
> Debian "/etc/init.d/netstd_nfs stop", "/etc/init.d/netstd_nfs start")
> rather than just SIGHUP-ing them ("/etc/init.d/netstd_nfs reload")
> helps.
The problem has persisted past several reboots (for changing OS)
> 
> 2. "/usr/sbin/showmount -e nfsserver.domainname.foo" is very handy for
> telling you whether you've a client problem or a server problem. If
> it tells you "RPC: Program not registered", then one of your daemons
> isn't running. Otherwise it will tell you the directories it thinks it's
> exporting, to which machines - though not the permissions.

well well well
[root at possum /root]# /usr/sbin/showmount -e emu.os2.ami.com.au
Export list for emu.os2.ami.com.au:
/u         possum.os2.ami.com.au
/work      possum.os2.ami.com.au
/mnt/cdrom 192.168.0.6
/mnt/cdrom 192.168.0.5
/mnt/cdrom 192.168.1.6
/mnt/cdrom 192.168.0.6
[root at possum /root]# /usr/sbin/showmount -e emu
Export list for emu:
/u         possum.os2.ami.com.au
/work      possum.os2.ami.com.au
/mnt/cdrom 192.168.0.6
/mnt/cdrom 192.168.0.5
/mnt/cdrom 192.168.1.6
/mnt/cdrom 192.168.0.6
[root at possum /root]# 

While fiddling around with  /usr/sbin/showmount, I made a discovery:
[root at possum /root]# /usr/sbin/showmount -a
All mount points on possum.os2.ami.com.au:
emu.my.ami.com.au:/RedHat
emu.my.ami.com.au:/misc/cd
emu.my.ami.com.au:/mnt/cdrom/RedHat
emu.my.ami.com.au:/mnt/mo
quokka.my.ami.com.au:/RedHat
quokka.my.ami.com.au:/mnt/cdrom
quokka.my.ami.com.au:/usr/src/linux-2.0.32
quokka.my.ami.com.au:/usr/src/linux-2.1.90


My /RedHat directories are now and have been for some time /redhat. I've
had nfs working since then. I also renamed my domain to os2.ami.com.au some
time ago (again, well before this problem).
A quick grep:
[root at possum /root]# grep -l my.ami.com /etc/*
/etc/rmtab
/etc/ssh_host_key
/etc/ssh_host_key.pub

and a cat
[root at possum /root]# cat /etc/rmtab
emu.my.ami.com.au:/RedHat
emu.my.ami.com.au:/misc/cd
emu.my.ami.com.au:/mnt/cdrom/RedHat
emu.my.ami.com.au:/mnt/mo
quokka.my.ami.com.au:/RedHat
quokka.my.ami.com.au:/mnt/cdrom
quokka.my.ami.com.au:/usr/src/linux-2.0.32
quokka.my.ami.com.au:/usr/src/linux-2.1.90

and a ls
[root at possum /root]# ls /etc/rmtab
-rw-r--r--   1 root     root          262 Nov 17 16:56 /etc/rmtab

on emu:
[root at emu log]# ls /etc/rmtab
-rw-r--r--   1 root     root          168 Nov 30 17:04 /etc/rmtab

The timestamp there would be about when I rebooted possum.

Damn. I renamed /etc/rmtab, stopped and started nfs and it still doesn't
work. And there's a new (but empty)  /etc/rmtab


Okay you blokes, this is it.

I reverted to 
-rw-r--r--   3 root     root        63683 May 11  1998 /misc/cd/RedHat/RPMS/nfs-server-2.2beta29-5.i386.rpm
-rw-r--r--   3 root     root         7734 May 11  1998 /misc/cd/RedHat/RPMS/nfs-server-clients-2.2beta29-5.i386.rpm
and I can now mount possum's exports on emu
It seems to me the new nfs* is broken.


-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



More information about the plug mailing list