* kernel 2.2.19, NFS v3, amd automounter @ 2001-04-18 10:03 Michal Szymanski 2001-04-18 17:54 ` michal 0 siblings, 1 reply; 6+ messages in thread From: Michal Szymanski @ 2001-04-18 10:03 UTC (permalink / raw) Hi, The 2.2.19 kernel recently announced by RedHat and available for all platforms supported brings long awaited NFS version 3 (at least to 2.2.x series, 2.4.x probably have had it for some time now). I installed the new kernel, mount, nfs-utils, losetup RPMs on my Alpha dual 21264 smp machine, works fine. A Solaris 8 client is now able to mount NFSv3 file systems from the Alpha. The same is true for Alpha client mounting NFSv3 file systems from the Solaris 8 Sparc machine, but ... *only* when I use "mount" command. Normally I have the AMD automounter running to automatically mount/umount file systems from all machines over the LAN. Unfortunately, "amd" apparently cannot mount NFSv3. Every time a file system is mounted by the Alpha's amd, I get nfs warning: mount version older than kernel message and the file system is mounted NFSv2 (e.g. it is unable to access files bigger than 4GB). Any hints? I could not find any "am-utils" package update (mine is am-utils-6.0.3-1). I've even tried to rebuild the package from source RPM (hoping this might help) but - to my great surprise - it failed with some strange message about not finding "struct mnttab" or similar. Any help will be appreciated. I guess it is platform independent problem and it would be same on i386 architecture as on alpha. regards, Michal. -- Michal Szymanski (msz@astrouw.edu.pl) Warsaw University Observatory, Warszawa, POLAND ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel 2.2.19, NFS v3, amd automounter 2001-04-18 10:03 kernel 2.2.19, NFS v3, amd automounter Michal Szymanski @ 2001-04-18 17:54 ` michal 2001-04-19 8:47 ` Michal Szymanski 2001-05-10 5:55 ` J. Nam 0 siblings, 2 replies; 6+ messages in thread From: michal @ 2001-04-18 17:54 UTC (permalink / raw) In comp.os.linux.alpha Michal Szymanski <msz@tucana.astrouw.edu.pl> wrote: > The 2.2.19 kernel recently announced by RedHat and available for all > platforms supported brings long awaited NFS version 3 (at least to 2.2.x > series, 2.4.x probably have had it for some time now). That is correct if you were waiting for an "official" release. In form of kernel patches and self-updates to tools NFS version 3 existed on Alpha for a very long time (although you could be hit by bugs from on occasions :-). Don't remember now for how long but probably something around a year. This, of course, required also 'mount' which will support NFS3, and which Red Hat supplied in the latest updates, but nothing was stopping you from recompiling it from a newer version of util-linux by yourself. > but ... *only* when I use "mount" command. Normally I have the AMD > automounter running to automatically mount/umount file systems from > all machines over the LAN. Unfortunately, "amd" apparently cannot > mount NFSv3. Hm, lets see ("thebox" is a box on my "home" network): $ ls /net/thebox/ .... $ mount .... thebox:/ on /.automount/thebox/root type nfs (soft,nosuid,nodev,nfsvers=3,rsize=8192,wsize=8192,dev=00000007) .... It at least _claims_ to be a version 3. :-) You have a file /etc/amd.net where you can set various default options. You can also have options specific for particular hosts. Granted, amd documentation (rpm -qd am-utils), and 'info am-utils' in particular, is not the clearest thing I ever seen but descriptions are there. Manpage for mount clearly states that a default NFS version used is 2 so if you desire something else you have to be explicit. It may be also possible to do that with 'autofs' instead of 'amd' but I did not look at this closer yet. Michal ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel 2.2.19, NFS v3, amd automounter 2001-04-18 17:54 ` michal @ 2001-04-19 8:47 ` Michal Szymanski 2001-04-19 23:33 ` michal 2001-04-26 16:20 ` michal 2001-05-10 5:55 ` J. Nam 1 sibling, 2 replies; 6+ messages in thread From: Michal Szymanski @ 2001-04-19 8:47 UTC (permalink / raw) On 18 Apr 2001 17:54:26 GMT, michal@gortel.phys.ualberta.ca wrote: >> but ... *only* when I use "mount" command. Normally I have the AMD >> automounter running to automatically mount/umount file systems from >> all machines over the LAN. Unfortunately, "amd" apparently cannot >> mount NFSv3. > >Hm, lets see ("thebox" is a box on my "home" network): > >$ ls /net/thebox/ >.... >$ mount >.... >thebox:/ on /.automount/thebox/root type nfs >(soft,nosuid,nodev,nfsvers=3,rsize=8192,wsize=8192,dev=00000007) >.... > >It at least _claims_ to be a version 3. :-) That's the point, it *claims* only. I added nfsvers=3 to amd options and I get similar (as seen from an Alpha machine running 2.2.19, tucana is a Solaris 8 Sparc): >mount ... tucana:/export/data3 on /amd/tucana/export/data3 type nfs (rw,intr,grpid,nosuid,rsize=8192,wsize=8192,timeo=11,retrans=8, actimeo=3,nfsvers=3,dev=00000003) ... but then (on the above file system): >ls -l ogle2_zebrun.tar ls: ogle2_zebrun.tar: File too large Still, when I mount the same file system manually, even w/o giving explicit nfsvers=3 option (!): >mount tucana:/export/data3 /mnt >mount ... tucana:/export/data3 on /mnt type nfs (rw,addr=193.0.88.36) ... >cd /mnt/save >ls -l ogle2_zebrun.tar -rw-r--r-- 1 root bin 4370513920 Nov 4 23:27 ogle2_zebrun.tar And, as I said, every amd mount results in "mount version older than kernel" warning in 'dmesg'. What I suspect is that amd has its own mount compiled which does not know (or recognize) version 3 NFS. any other hints? regards, Michal. -- Michal Szymanski (msz@astrouw.edu.pl) Warsaw University Observatory, Warszawa, POLAND ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel 2.2.19, NFS v3, amd automounter 2001-04-19 8:47 ` Michal Szymanski @ 2001-04-19 23:33 ` michal 2001-04-26 16:20 ` michal 1 sibling, 0 replies; 6+ messages in thread From: michal @ 2001-04-19 23:33 UTC (permalink / raw) In comp.os.linux.alpha Michal Szymanski <msz@tucana.astrouw.edu.pl> wrote: ... > And, as I said, every amd mount results in "mount version older than kernel" > warning in 'dmesg'. What I suspect is that amd has its own mount > compiled which does not know (or recognize) version 3 NFS. I _think_ that it should just call 'mount' to do the job. I did not look closer so far. Maybe it is simply passing options badly but why then 'mount', on a querry, would report incorrect parameters? After all you have sources and you may check that yourself. I may, or may not, dig into that a bit but no promisses. I am afraid that I do not have around files big enough, nor a disk space for them, to do any kind of testing. "mountvers" also can be specified as one of 'mount' parameters. Maybe amd is defaulting to a wrong one although I do not know which one will be "right". Michal ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel 2.2.19, NFS v3, amd automounter 2001-04-19 8:47 ` Michal Szymanski 2001-04-19 23:33 ` michal @ 2001-04-26 16:20 ` michal 1 sibling, 0 replies; 6+ messages in thread From: michal @ 2001-04-26 16:20 UTC (permalink / raw) In comp.os.linux.alpha Michal Szymanski <msz@tucana.astrouw.edu.pl> wrote: > On 18 Apr 2001 17:54:26 GMT, michal@gortel.phys.ualberta.ca wrote: >>> "amd" apparently cannot >>> mount NFSv3. ..... >> >>It at least _claims_ to be a version 3. :-) > That's the point, it *claims* only. I did look a bit closer at amd and indeed it has a habit of doing things internally without paying a closer attention to what was asked. More precisely, a version 6.0.3 which you will find included in RH 6.2 distribution, boasts in its documentation that it supports NFSv3 but it seems that to make it to actually _notice_ that this is available would be not that simple. I did try, but not very hard, because a later version 6.0.5 from the current 'rawhide' already has an extra patch for NFSv3 on Linux and readily recompiles for glibc-2.1 as well after minor tweaks (and, undoubtely, equally easy for other distributions with slightly different startup files and/or shared libraries). It first tries NFSv3 mount and if that fails it drops down a version and tries again so you do not have to have all automounted NFS servers at the same version level. You will see with it in your log files something of that sort: amd[21631]: recompute_portmap: NFS version 3 amd[21631]: Using MOUNT version: 3 amd[21631]: Using NFS version 3, protocol udp on .... amd[10515]: amfs_host_fmount: NFS version 3 ...... amd[21631]: get_nfs_version trying a lower version .... amd[21631]: Using NFS version 2, protocol tcp on <other host> amd[21639]: amfs_host_fmount: NFS version 2 .... The above assumes, of course, that you do have a kernel with NFSv3 support turned on and other infrastucture (like proper startup scripts). If you cannot be bothered with a compiler then you can find all pieces, including assorted Alpha binaries, via anonymous ftp from ftp://ftp.harddata.com/pub/NFS-v3-Alpha/ but truly there is not much to it and all of this, with an exception of few binaries :-), is not even tied to Alpha in some particular way. At the URL above there are no binaries for other platforms. Ladies and gentelmen, please find out what 'rpm --rebuild ...' does. :-) Michal (mj) ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel 2.2.19, NFS v3, amd automounter 2001-04-18 17:54 ` michal 2001-04-19 8:47 ` Michal Szymanski @ 2001-05-10 5:55 ` J. Nam 1 sibling, 0 replies; 6+ messages in thread From: J. Nam @ 2001-05-10 5:55 UTC (permalink / raw) This is nothing to do with amd or nfsv3 but I began experiencing cdrom not mounted correctly with kernel-2.2.19 and mount-2.10r. My hardware info. FYI are: - RH 6.2 and all the updates of rpms from updates.redhat.com - API Networks UP1100 Mobo - 256MB Mem - Creative 52x IDE CDROM - LSI53c895 SCSI controller - Matrox G400 16MB As of upgrade of kernel-2.2.19, mount-2.10r, losetup-2.10r, and nfs-utils-0.3.1 available from updates.redhat.com, I could not mount my cdrom: # mount -t iso9660 -o ro /dev/cdrom /mnt/cdrom ISO 9660 Extensions: Microsoft Joliet Level 1 hda: tray open end_request: I/O error, dev 03:00 (hda), sector 140 ISOFS: unable to read i-node block ISOFS: changing to secondary root hda: tray open end_request: I/O error, dev 03:00 (hda), sector 2280 ISOFS: unable to read i-node block isofs_read_super: root inode not initialized The same cdrom being suspicous of broken media reads just fine from other RH6.2 x86 linux machines which also had all the recent updates from updates.redhat.com - they are running the same kernel-2.2.19 and mount-2.10r except that they x86 not alpha. Does anyone have the same problem with mount-2.10r and kernel-2.2.19 ? TIA, Joonwoo On 18 Apr 2001 17:54:26 GMT, michal@gortel.phys.ualberta.ca <michal@gortel.phys.ualberta.ca> wrote: >In comp.os.linux.alpha Michal Szymanski <msz@tucana.astrouw.edu.pl> wrote: > >> The 2.2.19 kernel recently announced by RedHat and available for all >> platforms supported brings long awaited NFS version 3 (at least to 2.2.x >> series, 2.4.x probably have had it for some time now). > >That is correct if you were waiting for an "official" release. In >form of kernel patches and self-updates to tools NFS version 3 existed >on Alpha for a very long time (although you could be hit by bugs >from on occasions :-). Don't remember now for how long but probably >something around a year. This, of course, required also 'mount' >which will support NFS3, and which Red Hat supplied in the latest >updates, but nothing was stopping you from recompiling it from >a newer version of util-linux by yourself. > >> but ... *only* when I use "mount" command. Normally I have the AMD >> automounter running to automatically mount/umount file systems from >> all machines over the LAN. Unfortunately, "amd" apparently cannot >> mount NFSv3. > >Hm, lets see ("thebox" is a box on my "home" network): > >$ ls /net/thebox/ >.... >$ mount >.... >thebox:/ on /.automount/thebox/root type nfs >(soft,nosuid,nodev,nfsvers=3,rsize=8192,wsize=8192,dev=00000007) >.... > >It at least _claims_ to be a version 3. :-) > >You have a file /etc/amd.net where you can set various default options. >You can also have options specific for particular hosts. Granted, >amd documentation (rpm -qd am-utils), and 'info am-utils' in particular, >is not the clearest thing I ever seen but descriptions are there. >Manpage for mount clearly states that a default NFS version used >is 2 so if you desire something else you have to be explicit. > >It may be also possible to do that with 'autofs' instead of 'amd' >but I did not look at this closer yet. > > Michal -- ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-05-10 5:55 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2001-04-18 10:03 kernel 2.2.19, NFS v3, amd automounter Michal Szymanski 2001-04-18 17:54 ` michal 2001-04-19 8:47 ` Michal Szymanski 2001-04-19 23:33 ` michal 2001-04-26 16:20 ` michal 2001-05-10 5:55 ` J. Nam
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox