Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Sep 1997 19:54:00 -0400
From:      Brian Campbell <brianc@pobox.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: ccd / newfs error
Message-ID:  <19970914195400.15375@pobox.com>
In-Reply-To: <199709141011.DAA08111@blimp.mimi.com>; from Satoshi Asami on Sun, Sep 14, 1997 at 03:11:11AM -0700
References:  <19970912232911.50519@pobox.com> <199709141011.DAA08111@blimp.mimi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Sep 14, 1997 at 03:11:11AM -0700, Satoshi Asami wrote:
>  * # ccdconfig -v ccd0 128 0 /dev/sd0h /dev/sd1h
>  * ccd0: 2 components (sd0h, sd1h), 8369408 blocks interleaved at 128 blocks
>                                     ^^^^^^^
>  * # newfs ccd0a
>  * write error: 8369535
>                 ^^^^^^^
>  * wtfs: Invalid argument
> 
> You are writing past the end of the partition. ;)
> 
> Note that disklabel on ccd returns a "default" label with only `c' if
> there is no disklabel on the array, but will use one if it exists in
> the first few blocks of the ccd (which means the first few blocks of
> sd0h in your case).
> 
> Your problem is most likely because ccd is using the disklabel you
> edited when you had a slightly larger array (because of different
> interleave).

Yes.  Thanks, this was the problem.

Unfortunately disklabel doesn't even complain if you edit the
(too large) label and write it back out.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970914195400.15375>