From owner-freebsd-hackers Sun Sep 14 16:55:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA12066 for hackers-outgoing; Sun, 14 Sep 1997 16:55:09 -0700 (PDT) Received: from pobox.com (ott-on6-10.netcom.ca [207.181.91.137] (may be forged)) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA12060 for ; Sun, 14 Sep 1997 16:55:04 -0700 (PDT) Received: (from brianc@localhost) by pobox.com (8.8.5/8.8.5) id TAA06116; Sun, 14 Sep 1997 19:54:01 -0400 (EDT) Message-ID: <19970914195400.15375@pobox.com> Date: Sun, 14 Sep 1997 19:54:00 -0400 From: Brian Campbell To: freebsd-hackers@freebsd.org Subject: Re: ccd / newfs error References: <19970912232911.50519@pobox.com> <199709141011.DAA08111@blimp.mimi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81 In-Reply-To: <199709141011.DAA08111@blimp.mimi.com>; from Satoshi Asami on Sun, Sep 14, 1997 at 03:11:11AM -0700 Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.