Skip to contentSkip to conversation

root over nfs, error -93

DISCUSSION Julius 4 participants 7 messages May 28, 2008 – Jun 1, 2008

Subsystems (2)
lore
Share & tools
lore

Julius

author
#0 lore raw

Hi,

im trying to get a client boot from my server via nfs. but it fails with:

Root-NFS: Server returned error -93 while
mounting /nfs-exports/pxeclient

the client uses a vanilla 2.6.24.7 kernel with these settings:
<*> NFS file system support
[*] Provide NFSv3 client support
[*] Provide client support for the NFSv3 ACL protocol extension
[*] Root file system on NFS
[*] Support for rpcbind versions 3 & 4 (EXPERIMENTAL)

full config:
http://metalfan2.me.funpic.de/.config

kernel append line:
append root=/dev/nfs nfsroot=192.168.11.3:/nfs-exports/pxeclient ip=dhcp

the system successfully boots the kernel via syslinux and requests its ip via dhcp

server:
rpcinfo -p localhost
program vers proto port

    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  54039  status
    100024    1   tcp  57693  status
    100005    3   udp  48497  mountd
    100005    3   tcp  34406  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  47061  nlockmgr
    100021    3   udp  47061  nlockmgr
    100021    4   udp  47061  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   tcp  54896  nlockmgr
    100021    3   tcp  54896  nlockmgr
    100021    4   tcp  54896  nlockmgr

nfs-utils-1.1.0

Any ideas whats wrong?

#1 lore raw
Quoted 8 lines · Julius

Hi,

im trying to get a client boot from my server via nfs. but it fails with:

Root-NFS: Server returned error -93 while
mounting /nfs-exports/pxeclient

well, some grepping in /usr/include/ came up with:

./asm-generic/errno.h:#define EPROTONOSUPPORT 93 /* Protocol not supported */

what's the server setup in this picture? and is that negative
error value getting propagated into userland, or is that just from a kernel log?

	d
	.
Quoted 55 lines

the client uses a vanilla 2.6.24.7 kernel with these settings:
<*> NFS file system support
[*] Provide NFSv3 client support
[*] Provide client support for the NFSv3 ACL protocol extension
[*] Root file system on NFS
[*] Support for rpcbind versions 3 & 4 (EXPERIMENTAL)

full config:
http://metalfan2.me.funpic.de/.config

kernel append line:
append root=/dev/nfs nfsroot=192.168.11.3:/nfs-exports/pxeclient ip=dhcp

the system successfully boots the kernel via syslinux and requests its ip via dhcp

server:
rpcinfo -p localhost
program vers proto port

    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  54039  status
    100024    1   tcp  57693  status
    100005    3   udp  48497  mountd
    100005    3   tcp  34406  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  47061  nlockmgr
    100021    3   udp  47061  nlockmgr
    100021    4   udp  47061  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   tcp  54896  nlockmgr
    100021    3   tcp  54896  nlockmgr
    100021    4   tcp  54896  nlockmgr

nfs-utils-1.1.0

Any ideas whats wrong?

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw
Quoted 64 lines · Julius
Quoted 62 lines

Hi,

im trying to get a client boot from my server via nfs. but it fails with:

Root-NFS: Server returned error -93 while
mounting /nfs-exports/pxeclient

the client uses a vanilla 2.6.24.7 kernel with these settings:
<*> NFS file system support
[*] Provide NFSv3 client support
[*] Provide client support for the NFSv3 ACL protocol extension
[*] Root file system on NFS
[*] Support for rpcbind versions 3 & 4 (EXPERIMENTAL)

full config:
http://metalfan2.me.funpic.de/.config

kernel append line:
append root=/dev/nfs nfsroot=192.168.11.3:/nfs-exports/pxeclient ip=dhcp

the system successfully boots the kernel via syslinux and requests its ip via dhcp

server:
rpcinfo -p localhost
program vers proto port

    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  54039  status
    100024    1   tcp  57693  status
    100005    3   udp  48497  mountd
    100005    3   tcp  34406  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  47061  nlockmgr
    100021    3   udp  47061  nlockmgr
    100021    4   udp  47061  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   tcp  54896  nlockmgr
    100021    3   tcp  54896  nlockmgr
    100021    4   tcp  54896  nlockmgr

nfs-utils-1.1.0

Any ideas whats wrong?

Quoted 4 lines · david m. richter

well, some grepping in /usr/include/ came up with:

./asm-generic/errno.h:#define EPROTONOSUPPORT 93 /* Protocol

not supported */

Quoted 5 lines

what's the server setup in this picture? and is that negative
error value getting propagated into userland, or is that just from a kernel log?

The system doesnt start at all, it stops just before the root fs gets mounted. before init runs.

what do you mean by server setup?

Julius

#3 lore raw
In reply to Julius
Quoted 8 lines · Julius

Hi,

im trying to get a client boot from my server via nfs. but it fails with:

Root-NFS: Server returned error -93 while
mounting /nfs-exports/pxeclient

Error 93 is EPROTONOSUPPORT. Is there a firewall between client and server? tcpwrappers on either end? Are you using a motherboard NIC that silently hijacks a reserved UDP port?

Try capturing a network trace with "tcpdump -s0 -w /tmp/dump" on your server while your client boots. Take a look at it with wireshark or tethereal.

Quoted 46 lines

the client uses a vanilla 2.6.24.7 kernel with these settings:
<*> NFS file system support
[*] Provide NFSv3 client support
[*] Provide client support for the NFSv3 ACL protocol extension
[*] Root file system on NFS
[*] Support for rpcbind versions 3 & 4 (EXPERIMENTAL)

full config:
http://metalfan2.me.funpic.de/.config

kernel append line:
append root=/dev/nfs nfsroot=192.168.11.3:/nfs-exports/pxeclient ip=dhcp

the system successfully boots the kernel via syslinux and requests its ip via dhcp

server:
rpcinfo -p localhost
program vers proto port

    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  54039  status
    100024    1   tcp  57693  status
    100005    3   udp  48497  mountd
    100005    3   tcp  34406  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  47061  nlockmgr
    100021    3   udp  47061  nlockmgr
    100021    4   udp  47061  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   tcp  54896  nlockmgr
    100021    3   tcp  54896  nlockmgr
    100021    4   tcp  54896  nlockmgr

nfs-utils-1.1.0

Quoted 8 lines

Any ideas whats wrong?

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

begin:vcard
fn:Chuck Lever
n:Lever;Chuck
org:Oracle Corporation;Corporate Architecture: Linux Projects Group adr:;;1015 Granger Avenue;Ann Arbor;MI;48104;USA title:Principal Member of Staff
tel;work:+1 248 614 5091
x-mozilla-html:FALSE
version:2.1
end:vcard

#4 lore raw
In reply to Julius
Quoted 51 lines · Julius

Hi,

im trying to get a client boot from my server via nfs. but it fails with:

Root-NFS: Server returned error -93 while
mounting /nfs-exports/pxeclient

the client uses a vanilla 2.6.24.7 kernel with these settings:
<*> NFS file system support
[*] Provide NFSv3 client support
[*] Provide client support for the NFSv3 ACL protocol extension
[*] Root file system on NFS
[*] Support for rpcbind versions 3 & 4 (EXPERIMENTAL)

full config:
http://metalfan2.me.funpic.de/.config

kernel append line:
append root=/dev/nfs nfsroot=192.168.11.3:/nfs-exports/pxeclient ip=dhcp

the system successfully boots the kernel via syslinux and requests its ip via dhcp

server:
rpcinfo -p localhost
program vers proto port

    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  54039  status
    100024    1   tcp  57693  status
    100005    3   udp  48497  mountd
    100005    3   tcp  34406  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  47061  nlockmgr
    100021    3   udp  47061  nlockmgr
    100021    4   udp  47061  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   tcp  54896  nlockmgr
    100021    3   tcp  54896  nlockmgr
    100021    4   tcp  54896  nlockmgr
Quoted 5 lines

nfs-utils-1.1.0

Any ideas whats wrong?

I believe that the default is to try mounting NFSv2, unless you explicitly add the 'v3' option. Try something like

append root=/dev/nfs nfsroot=192.168.11.3:/nfs-exports/pxeclient,v3 ip=dhcp

Cheers
Trond

author
#5 lore raw
Quoted 58 lines · Trond Myklebust
Quoted 51 lines · Julius

Hi,

im trying to get a client boot from my server via nfs. but it fails with:

Root-NFS: Server returned error -93 while
mounting /nfs-exports/pxeclient

the client uses a vanilla 2.6.24.7 kernel with these settings:
<*> NFS file system support
[*] Provide NFSv3 client support
[*] Provide client support for the NFSv3 ACL protocol extension
[*] Root file system on NFS
[*] Support for rpcbind versions 3 & 4 (EXPERIMENTAL)

full config:
http://metalfan2.me.funpic.de/.config

kernel append line:
append root=/dev/nfs nfsroot=192.168.11.3:/nfs-exports/pxeclient ip=dhcp

the system successfully boots the kernel via syslinux and requests its ip via dhcp

server:
rpcinfo -p localhost
program vers proto port

    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  54039  status
    100024    1   tcp  57693  status
    100005    3   udp  48497  mountd
    100005    3   tcp  34406  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  47061  nlockmgr
    100021    3   udp  47061  nlockmgr
    100021    4   udp  47061  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   tcp  54896  nlockmgr
    100021    3   tcp  54896  nlockmgr
    100021    4   tcp  54896  nlockmgr
Quoted 5 lines

nfs-utils-1.1.0

Any ideas whats wrong?

Quoted 8 lines

I believe that the default is to try mounting NFSv2, unless you explicitly add the 'v3' option. Try something like

append root=/dev/nfs nfsroot=192.168.11.3:/nfs-exports/pxeclient,v3 ip=dhcp

Cheers
Trond

Okay, ive used the append line above and now it mounts the root filesystem. But it takes ages, looks like the requests time out.

Theres no firewall between the server/client.

Heres a tshark capture(330Kbyte) from power on to mount root and some of the following timeouts:
http://metalfan2.me.funpic.de/nfsd.capture2
ive used the filter !tftp and saved it

Julius

author
#6 lore raw
In reply to Trond Myklebust
Quoted 58 lines · Trond Myklebust
Quoted 51 lines · Julius

Hi,

im trying to get a client boot from my server via nfs. but it fails with:

Root-NFS: Server returned error -93 while
mounting /nfs-exports/pxeclient

the client uses a vanilla 2.6.24.7 kernel with these settings:
<*> NFS file system support
[*] Provide NFSv3 client support
[*] Provide client support for the NFSv3 ACL protocol extension
[*] Root file system on NFS
[*] Support for rpcbind versions 3 & 4 (EXPERIMENTAL)

full config:
http://metalfan2.me.funpic.de/.config

kernel append line:
append root=/dev/nfs nfsroot=192.168.11.3:/nfs-exports/pxeclient ip=dhcp

the system successfully boots the kernel via syslinux and requests its ip via dhcp

server:
rpcinfo -p localhost
program vers proto port

    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp  54039  status
    100024    1   tcp  57693  status
    100005    3   udp  48497  mountd
    100005    3   tcp  34406  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  47061  nlockmgr
    100021    3   udp  47061  nlockmgr
    100021    4   udp  47061  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   tcp  54896  nlockmgr
    100021    3   tcp  54896  nlockmgr
    100021    4   tcp  54896  nlockmgr
Quoted 5 lines

nfs-utils-1.1.0

Any ideas whats wrong?

Quoted 8 lines

I believe that the default is to try mounting NFSv2, unless you explicitly add the 'v3' option. Try something like

append root=/dev/nfs nfsroot=192.168.11.3:/nfs-exports/pxeclient,v3 ip=dhcp

Cheers
Trond

Got it running, finally. Thx to all, saved me a lot of trouble. Ive changed the machine that serves the nfs-root and some other small adjustments.
Turotrial will be available here:
http://wiki.archlinux.org/index.php/Diskless_network_boot_NFS_root