Date: Wed, 28 Mar 2001 21:06:43 -0500 (EST) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: obrien@freebsd.org, freebsd-alpha@freebsd.org Subject: Re: Is `ccd' broken on Alpha? Message-ID: <15042.39091.263461.18565@grasshopper.cs.duke.edu> In-Reply-To: <15042.37922.136513.58056@grasshopper.cs.duke.edu> References: <20010328000954.C18676@dragon.nuxi.com> <15042.28453.158495.901316@grasshopper.cs.duke.edu> <20010328151704.A89023@dragon.nuxi.com> <15042.37922.136513.58056@grasshopper.cs.duke.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Andrew Gallatin writes:
>
> David O'Brien writes:
> > On Wed, Mar 28, 2001 at 06:09:25PM -0500, Andrew Gallatin wrote:
> > > Pilot error of some type? It works fine for me using 'c' paritions.
> >
> > By `c' partition, you mean for on the `da' devices making up the `ccd',
> > or the `ccd' device? The da disks have `a' and `b' partitions on them,
> > so I can't use `c' on those.
>
> Yes, to both. I'll try to make up a fake disklabel and use the 'e'
> partition to see if that works. I've never, ever used anything but
> 'c' though on any platform.
It works again on da1e/da2e for me. I'm running the top of the tree;
world built this afternoon. Here's what I did:
<8:54pm>thunder/root:~#cat /tmp/foo
# /dev/da1c:
type: SCSI
disk: SEAGATE
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 261
sectors/unit: 4194058
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 196608 0 unused 0 0 # (Cyl. 0 - 12*)
b: 1310720 196608 unused 0 0 # (Cyl. 12*- 93*)
c: 4194058 0 unused 0 0 # (Cyl. 0 - 261*)
e: 1310720 1507328 unused 0 0 # (Cyl. 93*- 175*)
f: 1376010 2818048 unused 0 0 # (Cyl. 175*- 261*)
<8:55pm>thunder/root:~#disklabel -Rr da1 /tmp/foo
<8:55pm>thunder/root:~#disklabel -Rr da2 /tmp/foo
<8:55pm>thunder/root:~#cat /etc/ccd.conf
ccd0 256 0 /dev/da1e /dev/da2e
<8:55pm>thunder/root:~##ccdconfig -Cv
ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format
<8:56pm>thunder/root:~#newfs /dev/da1e
/dev/da1e: 1310720 sectors in 320 cylinders of 1 tracks, 4096 sectors
640.0MB in 15 cyl groups (22 c/g, 44.00MB/g, 10624 i/g)
super-block backups (for fsck -b #) at:
32, 90144, 180256, 270368, 360480, 450592, 540704, 630816, 720928, 811040,
901152, 991264, 1081376, 1171488, 1261600
<8:56pm>thunder/root:~#newfs /dev/da2e
/dev/da2e: 1310720 sectors in 320 cylinders of 1 tracks, 4096 sectors
640.0MB in 15 cyl groups (22 c/g, 44.00MB/g, 10624 i/g)
super-block backups (for fsck -b #) at:
32, 90144, 180256, 270368, 360480, 450592, 540704, 630816, 720928, 811040,
901152, 991264, 1081376, 1171488, 1261600
<8:57pm>thunder/root:~#ccdconfig -Cv
ccd0: 2 components (da1e, da2e), 2620928 blocks interleaved at 256 blocks
<8:57pm>thunder/root:~#newfs /dev/ccd0c
Warning: 512 sector(s) in last cylinder unallocated
/dev/ccd0c: 2620928 sectors in 640 cylinders of 1 tracks, 4096 sectors
1279.8MB in 30 cyl groups (22 c/g, 44.00MB/g, 10624 i/g)
super-block backups (for fsck -b #) at:
32, 90144, 180256, 270368, 360480, 450592, 540704, 630816, 720928, 811040,
901152, 991264, 1081376, 1171488, 1261600, 1351712, 1441824, 1531936, 1622048,
1712160, 1802272, 1892384, 1982496, 2072608, 2162720, 2252832, 2342944,
2433056, 2523168, 2613280
newfs: ioctl (WDINFO): No such process
newfs: /dev/ccd0c: can't rewrite disk label
<8:57pm>thunder/root:~#fsck /dev/ccd0c
** /dev/ccd0c
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1 files, 1 used, 1270126 free (14 frags, 158764 blocks, 0.0% fragmentation)
<...>
Are you sure the device nodes you're passing to newfs actually exist?
Do you see a ccdX device show up in, say, systat when you do your
ccdconfig? I'm confused.
Drew
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15042.39091.263461.18565>
