Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Feb 1998 07:58:11 -0800 (PST)
From:      asami@cs.berkeley.edu (Satoshi Asami)
To:        cdillon@inter-linc.net
Cc:        freebsd-fs@FreeBSD.ORG
Subject:   Re: May have pounced on something weird with ccd and newfs  (rat
Message-ID:  <199802041558.HAA04258@silvia.HIP.Berkeley.EDU>
In-Reply-To: <XFMail.980204093810.cdillon@inter-linc.net> (message from Chris Dillon on Wed, 04 Feb 1998 09:17:45 -0600 (CST))

next in thread | previous in thread | raw e-mail | index | archive | help

 * > * I=128     newfs -b 8192 -f 1024 fails with "write error: 2047871
 * > *                                             wtfs: invalid argument".

 * I'm not quite sure what you mean by "old" disklabel, but I started out fresh
 * with these drives, and labeled them symmetrically with using ccd's in mind..

What I meant is if you edit the disklabel on a ccd at a certain
interleave, the label will "stick" when you later reconfigure the ccd
with a different interleave (since the disklabel exists in the first
sector of the first partition).

Since the interleaves are increasing in your test order, it's possible
that the last few blocks that the disklabel says exist may not exist.

 * Here's the labels for sd0, sd1, and ccd0, and the output of ccdconfig -g.

You are missing the output of ccdconfig -g.  I can't diagnose the
problem without it.

 * root@cheetah [/root] # disklabel ccd0

 * sectors/unit: 2047872

See the number above (the error from wtfs).  It is second from the
last block, which could be invalid at a 128 interleave.

 * 3 partitions:
 * #        size   offset    fstype   [fsize bsize bps/cpg]
 *   a:  1023936        0    4.2BSD     1024  8192     0   # (Cyl.    0 - 499*)
 *   b:  1023936  1023936    4.2BSD     1024  8192     0   # (Cyl.  499*- 999*)
 *   c:  2047872        0    unused        0     0         # (Cyl.    0 - 999*)

So you do have a disklabel.  (The ccd driver will return a "default"
label with only partition "c" and type "4.2BSD" if you don't write one
yourself...that is often good enough, there usually is no point in
sub-partitioning the ccd if you're combining disks is the first
place. :)

Satoshi



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