Subject: Re: problems with newfs on sparc during instal:x
To: David Laight <david@l8s.co.uk>
From: Volker A. Brandt <vab@bb-c.de>
List: port-sparc
Date: 12/02/2005 22:27:42
> > >> # newfs -O 2 -b  8192 -f 1024 /dev/rsd0f
> > >> newfs: maximum file system size on `/dev/rsd0f' is 1048572 sectors
> > >
> > > Hum... that can't easily fail.
> > > The kernel must be returning incorrect values somewhere!
> >
> > This only fails when executed from sysinst.  Typed into the
> > shell, it works fine.
>
> I thought you'd managed to get it to fail whne typed in at the shell.
> In any case sysinst execs disklabel to write the label and then newfs,
> so it is unlikely that sysinst itself it at fault.

Ooops, yes, you're right!  To reiterate, here's what I had done:

#        size    offset     fstype [fsize bsize cpg/sgs]
 e:   1048572   1317897     4.2BSD   2048 16384     0  # (Cyl.    367 -    658)
 f:   1048572   2366469     4.2BSD   1024  8192     0  # (Cyl.    659 -    950)
 g:  14267043   3415041     4.2BSD   1024  8192 46608  # (Cyl.    951 -   4923


1. newfs -O 2 -b 16384 -f 2048 /dev/rsd0e

   - does not work within sysinst
   - works on the command line

2. newfs -O 2 -b 8192 -f 1024 /dev/rsd0f

   - does not work within sysinst
   - does not work on the command line
   - works if I leave out -b 8192 -f 1024 which is default anyway

3. newfs -O 2 -b 8192 -f 1024 -c 46608 /dev/rsd0g

   - never got as far within sysinst
   - works on the command line


I also wonder why sysinst created a disk label with block size 1k and
fragment size for sd0f, but doubled those values for sd0e, which is
of identical size.  And why is the cpg column zero?  Hmm....

> I've changed the error message (on head) so that it includes both sizes.
> So at least there will be some extra info!

I have a pile of SS20s, all with 2x 9GB disks.  What is the easiest
way to try and reproduce the problem with your change included?


Thanks -- Volker
--
------------------------------------------------------------------------
Volker A. Brandt                  Consulting and Support for Sun Solaris
Brandt & Brandt Computer GmbH              WWW: http://www.bb-c.de/~vab/
Meckenheim, Germany                                   Email: vab@bb-c.de