Networking Forums

Networking Forums > Computer Networking > Linux Networking > Root-on-NFS /dev has incorrect major/minor numbers

Reply
Thread Tools Display Modes

Root-on-NFS /dev has incorrect major/minor numbers

 
 
Oliver Hookins
Guest
Posts: n/a

 
      09-15-2003, 12:22 PM
Hi there,

I've been nutting out this problem that I've come across after upgrading
one of my linux machines that acts as an NFS server to another machine
on which I am trying to install Debian 3.0 in a completely diskless way.

The problem is essentially incorrect major/minor numbers in the /dev
directory on the remote client's root filesystem which happens to be
mounted over NFS from the server. After much searching and tidbits of
information from various places, it would appear to be something to do
with how NFS v2 and v3 handle device files.

Mounting the filesystem using NFSv2 gives the client properly formed
device files with correct major/minor numbers. Mounting using NFSv3
appears to copy the major number over the minor number and thus most
devices don't work.

Does anyone know if this seemingly incorrect behaviour is intentional?
I'm using 2.2.20 on the client and 2.4.20 on the server. Is it likely to
be fixed, or should I be going about it completely differently (e.g.
/dev on ramdisk or something similar)?

Cheers,
Oliver

 
Reply With Quote
 
 
 
 
Grant
Guest
Posts: n/a

 
      09-15-2003, 09:34 PM
Oliver Hookins wrote:
>
> Mounting the filesystem using NFSv2 gives the client properly formed
> device files with correct major/minor numbers. Mounting using NFSv3
> appears to copy the major number over the minor number and thus most
> devices don't work.


What versions does the server support? If the server is only v2 that
might explain it.

>
> Does anyone know if this seemingly incorrect behaviour is intentional?
> I'm using 2.2.20 on the client and 2.4.20 on the server. Is it likely to
> be fixed, or should I be going about it completely differently (e.g.
> /dev on ramdisk or something similar)?


I was unable to duplicate your problem. I was using v3 on server and
client. I suspect there is something wrong with your configuration.

 
Reply With Quote
 
Oliver Hookins
Guest
Posts: n/a

 
      09-15-2003, 09:50 PM
Grant wrote:
>
> What versions does the server support? If the server is only v2 that
> might explain it.


The server supports v2 and v3.

[root@hektor root]# nfsstat
Server rpc stats:
calls badcalls badauth badclnt xdrcall
13674 0 0 0 0
Server nfs v2:
null getattr setattr root lookup readlink
1 0% 2 0% 0 0% 0 0% 1148 98% 2 0%
read wrcache write create remove rename
0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
link symlink mkdir rmdir readdir fsstat
0 0% 0 0% 0 0% 0 0% 7 0% 1 0%

Server nfs v3:
null getattr setattr lookup access readlink
1 0% 3 0% 8 0% 3614 28% 8397 67% 8 0%
read write create mkdir symlink mknod
424 3% 8 0% 0 0% 0 0% 0 0% 0 0%
remove rmdir rename link readdir readdirplus
0 0% 0 0% 0 0% 0 0% 36 0% 0 0%
fsstat fsinfo pathconf commit
3 0% 3 0% 0 0% 8 0%

>> Does anyone know if this seemingly incorrect behaviour is intentional?
>> I'm using 2.2.20 on the client and 2.4.20 on the server. Is it likely
>> to be fixed, or should I be going about it completely differently
>> (e.g. /dev on ramdisk or something similar)?

>
> I was unable to duplicate your problem. I was using v3 on server and
> client. I suspect there is something wrong with your configuration.


The server is a pretty fresh load of Redhat 7.3 with updates. As far as
configuration goes, /etc/exports reads as follows:

/tftpboot/192.168.1.170 192.168.1.170(rw,no_root_squash)

I actually had it all working properly when I had Redhat 7.1 running on
the server, but I have been assuming there were changes made in the
kernel to the NFS server between those releases which is causing these
problems. I know that going back to 2.4.18 doesn't change it.

The client is mounting with vers=3,dev,rw. I'd be glad if it's just a
configuration issue but I can't think of what it might be - I've
literally set it up exactly the same way as it was running before.

Oliver

 
Reply With Quote
 
Oliver Hookins
Guest
Posts: n/a

 
      09-22-2003, 09:13 AM
Grant wrote:
>
> I was unable to duplicate your problem. I was using v3 on server and
> client. I suspect there is something wrong with your configuration.
>


Could I ask the version of kernel you are running on your server and
client, and if they are custom kernels or precompiled distro-specific?

Thanks,
Oliver


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Major and minor of /dev/hci0 Fabrice Delente Linux Networking 2 09-07-2008 06:15 AM
WG311T wireless card is showing c.root-server.net and other root-server.net in netstat. Robert Home Networking 1 05-06-2005 08:13 PM
Postfix config - cron messages for root going to root@ISP. Doug Laidlaw Linux Networking 5 02-27-2005 03:21 PM
Success at last with one minor problem. Jack Wireless Networks 1 02-22-2005 10:09 AM
Incorrect TCP sequence numbers. Aaron Graham Linux Networking 1 01-29-2004 10:02 PM



1 2 3 4 5 6 7 8 9 10 11