David Brownlee | 1 Mar 2009 11:54
Gravatar

Re: Booting Sun3/50 Diskless from Serving PC

From: David Johnson <electronsciences <at> bellsouth.net>

> I very much appreciate the help you have provided.  I'm beating the 
> horse some more.  It now boots the kernel but is unable to nfs_mount the 
> file systems.  My server, g21, is running netbsd3.1.  I'm working with 
> Sun3 v 1.6.  This pre-built kernel seems to fit my meager 4MB RAM 
> space.  I can no longer find this revision on the ftp sites.  The

Look under NetBSD-archive on ftp.netbsd.org

> document "finishing up your installation, diskless NetBSD HOWTO suggests 
> that NetBSD bootloader can load a netbsd.gz (zipped kernel) among a long 
> list of possible file names.  This doesn't seem to work but the unzipped 
> kernel with name netbsd works reliably.
> 
> I think my remaining problems are in my /etc/exports file and with 
> mountd on the server and inability of the client to remote nfs mount the 
> necessary file systems.
> 
> My /etc/exports file looks like this in accordance with the diskless 
> HOWTO for netBSD and generates some errors:
> //export/sun350/root   -maproot=root:wheel   sun350.grid.net
> /export/sun350/swap -maproot=root:wheel    sun350.grid.net/
>  -- Sun3/50 reports g21:/export/sun350/swap on /swap   no such file or 
> directory then of course swapctl can turn swapping on
> 
> //export/sun350/usr  -maproot=nobody:nobody    sun350.grid.net/
> -- server / mountd complains "line 4 can't change attributes for 
> /export/sun350/usr to sun350"  operation not permitted
> -- Sun/350 reports mount_nfs: can't access 'export/sun350/usr 
(Continue reading)

David Brownlee | 2 Mar 2009 01:09
Picon

Re: Booting Sun3/50 Diskless from Serving PC

On Sun, 1 Mar 2009, David Johnson wrote:

> I think the problems may be related to permissions.  I am able export root
> but that is the only one which behaves properly.  I can boot to single user
> mode on the 3/50 and can list my / directory (attached -lF listing
> sun350~1.txt).  When I try to mount /usr from the Sun350 it says permission
> denied.  Neither can I access the swap file remotely.

 	As an aside, unless you want to share a single exported '/usr'
 	across multiple client boxes, then it probably makes more
 	sense to put export/.../usr as export/.../root/usr and
 	avoid that extra export and mount.

 	I good few years back I had a single /root mountpoint shared
 	across multiple machines with a little logic in /etc to
 	conditionalise config setup based on dhcp hostname, but
 	that is getting further off topic.

> Similarly, mountd complains about my /export/sun350/usr and home
> directorys.  I have attached a -lF listing of my /export tree for
> inspection.
> 
> I've tried -alldirs option on all of the various levels of the /export
> directory.
> /export -alldirs sun350.grid.net
> /export/sun350 -alldirs sun350.grid.net
> /export/sun350/root sun350.grid.net
> /export -alldirs -maproot:0 sun350.grid.net
> mountd complains every time with that option (server is running netbsd3.1)

(Continue reading)

David Johnson | 6 Mar 2009 04:59

Re: Booting Sun3/50 Diskless from Serving PC

I moved all of my various individual exports directories as they were 
shown in the NFS Diskless Boot Howto  to /export/root as you suggested 
in your email:
      *WAS                                                           IS*
/export/sun350/root                                     /export/sun350/root
/export/sun350/swap  (is an 8Mbyte file)  -->  /export/sun350/root/swap
/export/sun350/usr                                       
/export/sun350/root/usr
/export/sun350/home                                   
/export/sun350/root/home

My etc/exports now looks like this:
#/etc/export
/   -maproot:root:wheel -alldirs   sun350.grid.net         <---- this 
works without complaint from mountd

I can boot diskless to single user mode but I'm still having trouble 
getting swap to work.  Your comment about /export being a separate file 
system on my server raises questions.  I simply did a mkdir /export to 
create this tree on my server.  But what I'm ending up with is 
completely different from what the NFS diskless Howto shows for setup.  
I'm wondering what happened in my case and why am I ending up so 
different from the HOWTO description?

Is anyone else running a similar configuration (netBSD/v3.1 serving 
Sun3-50 /4Mbytes running NetBSD v1.6.1)

David Brownlee wrote:
> On Sun, 1 Mar 2009, David Johnson wrote:
>
(Continue reading)

David Brownlee | 6 Mar 2009 13:50
Picon

Re: Booting Sun3/50 Diskless from Serving PC

On Thu, 5 Mar 2009, David Johnson wrote:

> I moved all of my various individual exports directories as they were shown 
> in the NFS Diskless Boot Howto  to /export/root as you suggested in your 
> email:
>     *WAS                                                           IS*
> /export/sun350/root                                     /export/sun350/root
> /export/sun350/swap  (is an 8Mbyte file)  -->  /export/sun350/root/swap
> /export/sun350/usr 
> /export/sun350/root/usr
> /export/sun350/home 
> /export/sun350/root/home
>
> My etc/exports now looks like this:
> #/etc/export
> /   -maproot:root:wheel -alldirs   sun350.grid.net         <---- this works 
> without complaint from mountd

 	Now you have your exports like that you should also be able to
 	mount home and usr as separate filesystems if you want (though
 	personally I would leave them as they are)

> I can boot diskless to single user mode but I'm still having trouble getting 
> swap to work.  Your comment about /export being a separate file system on my 
> server raises questions.  I simply did a mkdir /export to create this tree on 
> my server.  But what I'm ending up with is completely different from what the 
> NFS diskless Howto shows for setup.  I'm wondering what happened in my case 
> and why am I ending up so different from the HOWTO description?

 	I suspect part of it could be related to additional checks
(Continue reading)

David Johnson | 9 Mar 2009 01:12

Re: Booting Sun3/50 Diskless from Serving PC

I'm not booting to multi-user mode but it's not quite time to ring the 
soup bell:

I get two warnings during boot to multi-user mode as follows:
Building databases:
KVM_mkdb: machdep.booted_kernel: the value is not available: no such 
file or dir

and the second more troublesome one:
mount_nfs: g21:/export/sun350/swap on /swap  not a directory
swapctl: g21:/export/sun350/swap mount failed

/export/sun350/root/etc/fstab has the following line in it for swap:
g21:/export/sun350/swap none swap sw,nfsmntpt=/swap
g21:/export/sun350/root  /       nfs    r,w

Yet, as recommended in the previous e-mail, the directory 
/export/sun350/root/swap  is really there as well as
/export/sun350/swap    this one is a file.  I enlarged it to 16 Mbytes

Sun350 appears to basically running though I'm not sure how it manages 
to get fully booted in mult-user mode without a swap file.  I only have 
4Mbytes of memory.

David Brownlee wrote:
> On Thu, 5 Mar 2009, David Johnson wrote:
>
>> I moved all of my various individual exports directories as they were 
>> shown in the NFS Diskless Boot Howto  to /export/root as you 
>> suggested in your email:
(Continue reading)

David Brownlee | 9 Mar 2009 15:48
Picon

Re: Booting Sun3/50 Diskless from Serving PC

On Sun, 8 Mar 2009, David Johnson wrote:

> I'm not booting to multi-user mode but it's not quite time to ring the soup 
> bell:
>
> I get two warnings during boot to multi-user mode as follows:
> Building databases:
> KVM_mkdb: machdep.booted_kernel: the value is not available: no such file or 
> dir

 	Hmm, what is the output of 'sysctl machdep', and can you confirm
 	that the booted kernel is available as /netbsd in the client's
 	mounted root filesystem? (I think it pretty much has to be
 	given your setup?)

> and the second more troublesome one:
> mount_nfs: g21:/export/sun350/swap on /swap  not a directory
> swapctl: g21:/export/sun350/swap mount failed
>
> /export/sun350/root/etc/fstab has the following line in it for swap:
> g21:/export/sun350/swap none swap sw,nfsmntpt=/swap
> g21:/export/sun350/root  /       nfs    r,w
>
> Yet, as recommended in the previous e-mail, the directory 
> /export/sun350/root/swap  is really there as well as
> /export/sun350/swap    this one is a file.  I enlarged it to 16 Mbytes
>
> Sun350 appears to basically running though I'm not sure how it manages to get 
> fully booted in mult-user mode without a swap file.  I only have 4Mbytes of 
> memory.
(Continue reading)


Gmane