-
NFS Server cannot be mounted
I am trying to use a Knoppix system as an NFS server.
I have edited /etc/exports with the directory:
/mnt-system *(sync,no_subtree_check)
I've tried starting/restarting services:
Code:
/etc/init.d/rpcbind restart
/etc/init.d/nfs-common restart
/etc/init.d/nfs-kernel-server restart
/etc/init.d/portmap restart
/etc/init.d/inetutils-inetd restart
exportfs -ra
But the clients always simply timeout after a couple of minutes trying to mount.
Showmount suggests a possible problem:
Code:
# showmount -e
clnt_create: RPC: Program not registered
What is needed to get NFS servers going on Knoppix (7.0.4)?
Thanks.
-
Senior Member
registered user
Greetings, renderer!
I booted up my first system using Knoppix 7.0.4 DVD. I connected to the network and wrote the following text into /etc/exports.
Code:
/mnt-system 192.168.2.0/255.255.255.0(rw,no_subtree_check)
Then I started some services.
Code:
sudo /etc/init.d/rpcbind start
sudo /etc/init.d/nfs-common start
sudo /etc/init.d/nfs-kernel-server start
sudo exportfs -rv
I took my notebook and booted up using Knoppix 7.0.5 DVD. After having connected to the network I created a mount point, started some services and issued the mount command.
Code:
sudo mkdir /media/remote
sudo /etc/init.d/rpcbind start
sudo /etc/init.d/nfs-common start
sudo mount -v 192.168.2.37:/mnt-system /media/remote
I started the PCManFM and was able to open the image background.jpg in the KNOPPIX directory of the remote system.
-
Kernel Oopses with NFS
Thanks very much for the suggestions about services and various options.
I tried following them, but hit a kernel "Oops". I'm running 7.0.4 on a Intel Core Duo with 7.0.4 DVD files stored on the HDD and "upgraded". I use this installation every day, and it has been very stable, so I don't think it's data corruption or flaky hardware.
I had already experienced a problem with NFS (as a client, this time), running directly from the DVD, which I reported here : http://knoppix.net/forum/threads/30193-NFSv4-client-crash-in-Knoppix-7.0.4-(and-work-araound)
I will download 7.0.5 and boot directly from DVD, and try again, when I have time.
I'll write back here with the results.
Code:
# /etc/init.d/nfs-kernel-server start
[ ok ] Exporting directories for NFS kernel daemon....
[....] Starting NFS kernel daemon: nfsd/etc/init.d/nfs-kernel-server: line 61: 3685 Killed start-stop-daemon --start --oknodo --quiet --nicelevel $RPCNFSDPRIORITY --exec $PREFIX/sbin/rpc.nfsd -- $RPCNFSDCOUNT
Message from syslogd@Microknoppix at Tue Feb 5 22:31:06 2013 ...
Microknoppix kernel: [ 274.316665] Process rpc.nfsd (pid: 3685, ti=f148e000 task=f14da5e0 task.ti=f148e000)
Message from syslogd@Microknoppix at Tue Feb 5 22:31:06 2013 ...
Microknoppix kernel: [ 274.316665] Stack:
Message from syslogd@Microknoppix at Tue Feb 5 22:31:06 2013 ...
Microknoppix kernel: [ 274.316665] Call Trace:
Message from syslogd@Microknoppix at Tue Feb 5 22:31:06 2013 ...
Microknoppix kernel: [ 274.316665] Code: 00 8b 75 e8 f3 a5 8b 45 f0 e8 d0 a1 00 00 eb 0a 8b 45 f0 e8 55 a1 00 00 31 c0 83 c4 18 5b 5e 5f 5d c3 55 89 e5 53 89 c3 83 ec 08 <8b> 40 0c 85 c0 74 14 48 85 c0 89 43 0c 74 1c 89 d8 e8 1e 1d 00
Message from syslogd@Microknoppix at Tue Feb 5 22:31:06 2013 ...
Microknoppix kernel: [ 274.316665] EIP: [<c15abc35>] svc_destroy+0x9/0xbf SS:ESP 0068:f148ff14
failed!
# dmesg
[ 274.312208] svc: failed to register nfsdv2 RPC service (errno 97).
[ 274.312221] svc: failed to register nfsaclv2 RPC service (errno 97).
[ 274.314684] nfsd: last server has exited, flushing export cache
[ 274.314728] BUG: unable to handle kernel NULL pointer dereference at 0000000c
[ 274.315018] IP: [<c15abc35>] svc_destroy+0x9/0xbf
[ 274.315214] *pde = 00000000
[ 274.315330] Oops: 0000 [#1] PREEMPT SMP
[ 274.315509] Modules linked in: parport_pc ppdev lp parport nfs ipv6 dell_wmi sparse_keymap dell_laptop dcdbas coretemp 8250_pnp 8250 serial_core wmi battery ac snd_hda_codec_idt arc4 pcmcia iwl3945 iwlegacy mac80211 cfg80211 joydev yenta_socket snd_hda_intel i2c_i801 snd_hda_codec tg3 i915 drm_kms_helper
[ 274.316665]
[ 274.316665] Pid: 3685, comm: rpc.nfsd Tainted: G W 3.4.9 #34 Dell Inc. Latitude D830 /0HN341
[ 274.316665] EIP: 0060:[<c15abc35>] EFLAGS: 00210286 CPU: 0
[ 274.316665] EIP is at svc_destroy+0x9/0xbf
[ 274.316665] EAX: 00000000 EBX: 00000000 ECX: 00000100 EDX: c1959800
[ 274.316665] ESI: f1518004 EDI: c11b2028 EBP: f148ff20 ESP: f148ff14
[ 274.316665] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[ 274.316665] CR0: 8005003b CR2: 0000000c CR3: 3158a000 CR4: 000007d0
[ 274.316665] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 274.316665] DR6: ffff0ff0 DR7: 00000400
[ 274.316665] Process rpc.nfsd (pid: 3685, ti=f148e000 task=f14da5e0 task.ti=f148e000)
[ 274.316665] Stack:
[ 274.316665] c15abd06 ffffff9f ffffff9f f148ff5c c11b20e1 00000ffc c12b14b2 f1518004
[ 274.316665] 00000002 f1518005 00000004 c10e5394 f148ff5c c10e5b97 0804c8a0 f34d8b00
[ 274.316665] 00000002 c11b2028 f148ff70 c11b1dda f34d8b00 0804c8a0 c11b1da0 f148ff8c
[ 274.316665] Call Trace:
[ 274.316665] [<c15abd06>] ? svc_shutdown_net+0x1b/0x1f
[ 274.316665] [<c11b20e1>] write_ports+0xb9/0x2c3
[ 274.316665] [<c12b14b2>] ? _copy_from_user+0x2b/0x3e
[ 274.316665] [<c10e5394>] ? copy_from_user+0x8/0xa
[ 274.316665] [<c10e5b97>] ? simple_transaction_get+0x71/0x8b
[ 274.316665] [<c11b2028>] ? write_maxblksize+0xa3/0xa3
[ 274.316665] [<c11b1dda>] nfsctl_transaction_write+0x3a/0x55
[ 274.316665] [<c11b1da0>] ? write_filehandle+0x146/0x146
[ 274.316665] [<c10ce131>] vfs_write+0x7c/0xe8
[ 274.316665] [<c10cf301>] ? fget_light+0x2b/0x7d
[ 274.316665] [<c10ce31a>] sys_write+0x38/0x60
[ 274.316665] [<c15ebf65>] syscall_call+0x7/0xb
[ 274.316665] Code: 00 8b 75 e8 f3 a5 8b 45 f0 e8 d0 a1 00 00 eb 0a 8b 45 f0 e8 55 a1 00 00 31 c0 83 c4 18 5b 5e 5f 5d c3 55 89 e5 53 89 c3 83 ec 08 <8b> 40 0c 85 c0 74 14 48 85 c0 89 43 0c 74 1c 89 d8 e8 1e 1d 00
[ 274.316665] EIP: [<c15abc35>] svc_destroy+0x9/0xbf SS:ESP 0068:f148ff14
[ 274.316665] CR2: 000000000000000c
[ 274.439286] ---[ end trace c6d2c5f77bcaf00f ]---
-
Everything works for me with 7.0.5
I downloaded the 7.0.5 DVD to use instead of the 7.0.4 DVD
Everything works as expected now. Thanks for confirming which services and options are needed to get NFS server working.
I don't know why my 7.0.4 DVD download had problems with NFS. I have verified the integrity of the files involved, so it's not a simple data error.
I will stop using the 7.0.4 now. Hopefully things will run smoothly now!
Thanks again for your help.
-
I managed to get an NFS server working in Knoppix 7.0.5 by following the advice above - thanks. Now I'm trying to get Knoppix to start the NFS server automatically during startup. I've been looking at the startup scripts in /etc/init.d, and they appear to work. So I've been looking at which scripts are run at each runlevel in the /etc/rc?.d directories.
I noticed that in the /etc/rc2.d directory there are the following links:
S20nfs-common
S20nfs-kernel-server
S43rpcbind
As I understand the runlevel system, this means that the /etc/init.d/nfs-common and /etc/init.d/nfs-kernel-server scripts will be run earlier than the /etc/init.d/rpcbind script. I have previously found that it's necessary to run /etc/init.d/rpcbind start before /etc/init.d/nfs-common and /etc/init.d/nfs-kernel-server, because rpcbind starts the portmapper, and the other services won't start if portmapper isn't running. So I wondered whether this was why the nfs daemons weren't automatically starting up.
In an attempt to get /etc/init.d/rpcbind to run before the other two scripts, I renamed S43rpcbind to S19rpcbind, I ran update-rc.d rpcbind defaults, which didn't appear to change anything, and then rebooted the system. But it hasn't helped. The NFS daemons are still not running.
I'm running out of ideas now, can anyone help?
-
Senior Member
registered user
I would suggest that you edit /etc/rc.local and append your services in the proper order to the SERVICES string.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD US
$131.99
ORICO 5Bay Raid Hard Drive Enclosure USB3.0 to SATA for 3.5'' HDD SSD 150W Power
$82.49
Intel VROC Virtual RAID Upgrade Key (Standard) BD 5Module VROCSTANMOD J55901-103
$79.99
SAS9305-16I LSI SAS 9305-16I 16 Port PCIe 3.0 x8 12 Gb/s Host Bus Adapter FH
$64.00
Adaptec - ASR-7805 6Gbs SAS- PCI EXPRESS 3.0 X8 -1GB Cache RAID Controller Card
$24.99
LSI MegaRAID SAS 9361-4i 12Gb/s SAS RAID PCIe Controller Card
$21.96
PCI To 2 Port SATA RAID Controller Card Sil3112 chipset SATA PCI Controller Card
$13.98
OWC Gemini -- two bay RAID and Thunderbolt 3 dock - no drives
$169.99
LSI SAS9207-8e 8-Port PCIe IT Mode 9207-8e SAS 6Gb/s External HBA RAID Card
$28.00
Dell Perc H810 1Gb Raid Controller NDD93 FH Bracket
$28.99