nfs-kernel-server installation issues
Hello everyone.
I have a Seagate-Dockstar (Mini-PC) with 1.2GHz ARM CPU and 128MB RAM
running Debian Squeeze with kernel 2.6.32-5-kirkwood.
I had NFS running on this thing a few months ago, but now, it didnt
start anymore. So i purged it (including nfs-common, nfs-kernel-server,
portmap) and wanted to reinstall it.
This is what happens:
---------------------
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsdrpc.nfsd: Setting version failed: errno
16 (Device or resource busy)
rpc.nfsd: writing fd to kernel failed: errno 12 (Cannot allocate memory)
rpc.nfsd: unable to set any sockets for nfsd
failed!
invoke-rc.d: initscript nfs-kernel-server, action "start" failed.
dpkg: error processing nfs-kernel-server (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing: nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up nfs-kernel-server (1:1.2.2-4) ...
Starting NFS common utilities: statd.
Exporting directories for NFS kernel daemon....
Starting NFS kernel daemon: nfsdrpc.nfsd: Setting version failed: errno
16 (Device or resource busy)
rpc.nfsd: writing fd to kernel failed: errno 12 (Cannot allocate memory)
rpc.nfsd: unable to set any sockets for nfsd
failed!
invoke-rc.d: initscript nfs-kernel-server, action "start" failed.
dpkg: error processing nfs-kernel-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
nfs-kernel-server
---------------------
I want to provide some information because i googled this issue and
found some reasons why that could happen.
cat /proc/cpuinfo
Processor : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 1192.75
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1
Hardware : Marvell SheevaPlug Reference Board
Revision : 0000
Serial : 0000000000000000
(Deactivated Loopback can cause this problem)
cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
When this happens at boot, it can be that nfs-kernel-server wants to
start, before the network is up. Well, of course, it is up, when i try
to install nfs-kernel-server over ssh.
uname -a
Linux dockstar-debian 2.6.32-5-kirkwood #1 Sat Sep 18 15:20:08 UTC 2010
armv5tel GNU/Linux
tail -n 5 /var/log/messages
Jan 12 15:22:13 dockstar-debian portmap: Removing stale lockfile for pid
13277
Jan 12 15:22:42 dockstar-debian kernel: [108413.734035] svc: failed to
register lockdv1 RPC service (errno 97).
Jan 12 15:22:42 dockstar-debian kernel: [108413.740898] lockd_up:
svc_rqst allocation failed, error=-12
Jan 12 15:23:28 dockstar-debian kernel: [108459.338663] svc: failed to
register lockdv1 RPC service (errno 97).
Jan 12 15:23:28 dockstar-debian kernel: [108459.345072] lockd_up:
svc_rqst allocation failed, error=-12
grep -i nfs /boot/config-2.6.32-5-kirkwood
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
# CONFIG_NFS_V4_1 is not set
CONFIG_NFS_FSCACHE=y
CONFIG_NFSD=m
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFS_ACL_SUPPORT=m
CONFIG_NFS_COMMON=y
CONFIG_NCPFS_NFS_NS=y
cat /etc/default/portmap
# Portmap configuration file
#
# Note: if you manually edit this configuration file,
# portmap configuration scripts will avoid modifying it
# (for example, by running 'dpkg-reconfigure portmap').
# If you want portmap to listen only to the loopback
# interface, uncomment the following line (it will be
# uncommented automatically if you configure this
# through debconf).
OPTIONS=""
cat /etc/default/nfs-kernel-server
# Number of servers to start up
RPCNFSDCOUNT=8
# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0
# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option. For more information,
# see rpc.mountd(8) or http://wiki.debian.org/?SecuringNFS
RPCMOUNTDOPTS=--manage-gids
# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=
# Options for rpc.svcgssd.
RPCSVCGSSDOPTS=
cat /etc/default/nfs-common
# If you do not set values for the NEED_ options, they will be attempted
# autodetected; this should be sufficient for most people. Valid
alternatives
# for the NEED_ options are "yes" and "no".
# Do you want to start the statd daemon? It is not needed for NFSv4.
NEED_STATD=
# Options for rpc.statd.
# Should rpc.statd listen on a specific port? This is especially useful
# when you have a port-based firewall. To use a fixed port, set this
# this variable to a statd argument like: "--port 4000 --outgoing-port
4001".
# For more information, see rpc.statd(8) or
http://wiki.debian.org/?SecuringNFS
STATDOPTS=
# Do you want to start the idmapd daemon? It is only needed for NFSv4.
NEED_IDMAPD=
# Do you want to start the gssd daemon? It is required for Kerberos mounts.
NEED_GSSD=
netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 0.0.0.0:38748 0.0.0.0:*
LISTEN 16483/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:*
LISTEN 16267/portmap
tcp 0 0 0.0.0.0:22 0.0.0.0:*
LISTEN 16933/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:*
LISTEN 10111/master
udp 0 0 127.0.0.1:18120 0.0.0.0:*
1025/freeradius
udp 0 0 0.0.0.0:971 0.0.0.0:*
16483/rpc.statd
udp 0 0 0.0.0.0:51550 0.0.0.0:*
16483/rpc.statd
udp 0 0 0.0.0.0:111 0.0.0.0:*
16267/portmap
udp 0 0 0.0.0.0:1812 0.0.0.0:*
1025/freeradius
udp 0 0 0.0.0.0:1813 0.0.0.0:*
1025/freeradius
udp 0 0 0.0.0.0:1814 0.0.0.0:*
1025/freeradius
If you need more information, please tell me.
Reply to: