problem with 'make installkernel' over NFS on FreeBSD 5.4
Stuart Chalmers
s_chalmers70 at yahoo.com
Mon Sep 12 12:19:39 PDT 2005
Oops,
Forgot to mention that after mounting /usr/src and
/usr/obj on the client machine, that I had issued the
'shutdown' command, as per the Handbook
Thanks!
--- Stuart Chalmers <s_chalmers70 at yahoo.com> wrote:
> Hi,
>
> I am in the process of trying to do an update of
> kernel and world on an old machine (machine A),
> using
> a newer, faster, machine (machine B). Machine B is
> set up as an NFS server for machine A.
>
> The /etc/exports file on machine B inculdes:
>
> /usr -maproot=root:0 -alldirs -network 192.168.0.0
> -mask 255.255.255.0.
>
> Mahine A currently has address 192.168.0.197.
> Machine
> B has /usr mounted on a device, not, say, /usr/src.
>
> I have followed the following process.
>
> While logged onto machine B:
> cvsup /usr/src
> cd /usr/src
> make buildworld
> make buildkernel KERNCONF=<config. for machine A>
>
> Once this is complete, I then log onto machine A and
> mount /usr/src and /usr/obj via NFS. The /etc/fstab
> contains:
>
> 192.168.0.2:/usr/src /usr/src nfs ro,-i,noauto
> 192.168.0.2:/usr/obj /usr/obj nfs rw,-i,noauto
>
> (Machine B has 192.168.0.2 assigned to it's internal
> interface). The KERNCONF file is visible on machine
> A, and the /etc/make.conf files are pretty similar,
> speifically:
>
> CPUTYPE?=pentium
> CFLAGS= -O2 -fno-strict-aliasing -pipe
> COPTFLAGS= -O2 -fno-strict-aliasing -pipe
> NOPROFILE=true
> COMPAT4X=true
> KERNCONF=<config. for machine A>
>
> However, when I cd to (the NFS mounted) /usr/src on
> machine A and enter ...
>
>
---------->
shutdown
---------->
>
> make installkernel KERNCONF=<config. for machine A>
>
> ... the install fails.
>
> From what I can see, the program /usr/bin/install
> core
> dumps with exit status 4. Looking at the man page
> for
> install(1) it seems that there is an issue with
> fchflags(2) over NFS.
>
> The questions are then, is my guess correct, and is
> there a work around?
>
> Also, for info, I'm trying to install 5.4-RELEASE-P7
> onto A, while B has 5.4-RELEASE-p6 as it's kernel,
> but
> DOES have the FreeBSD-SA-05:20.cvsbug update.
>
> Any help gratefully received ...
>
> Thanks.
>
> PS. I did use machine B as the client and machine A
> as the server, mounted and installed using DESTDIR,
> but there were a whole lot of warnings about (I
> think)
> chflags which certainly didn't look right!
>
>
>
>
>
>
___________________________________________________________
>
> Yahoo! Messenger - NEW crystal clear PC to PC
> calling worldwide with voicemail
> http://uk.messenger.yahoo.com
>
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
More information about the freebsd-questions
mailing list