-
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
Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 32gb / 500gb / 495w
$164.99
Dell Windows 11 Pro Desktop Computer PC Intel Xeon E-2224G 32GB RAM 1TB SSD WiFi
$316.97
Dell Desktop Computer PC XEON, up to 64GB RAM, 4TB SSD, Windows 11 Pro, WiFi BT
$279.99
Lot of 2 Intel Xeon E5-2697 V4 2.3GHz 18 Core LGA 2011-3 Server CPU Processor
$89.50
Intel Xeon E5-2698 v3 2.30GHz 16-Core 40MB LGA2011-3 Processor P/N: SR1XE Tested
$10.99
Intel Xeon 18-Core E5-2699v3 @ 2.3GHz 45MB 145W Processor SR1XD CPU
$29.95
INTEL XEON E5-2698V4 2.2 GHz 20-CORE SR2JW CM8066002024000
$63.75
Intel Xeon E5-2690 V2 3.00GHz 10 Core 130W 25MB 8 GT/s CPU Processor
$9.98
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$165.99
Supermicro 2U 6028R-E1CR24N 24x LFF- Wholesale Build Your Own Storage Server
$304.99