On Thursday 01 September 2005 01:57 pm, you wrote:
> Erik Sabowski wrote:
> >I am trying to use ccdconfig on 2 identical disks to make one big
> > partition. for some reason, the resulting partition is equal in size to
> > one of the disks, instead of being the size of both disks put together.
> >
> >first i set up the disks:
> >
> ># disklabel sd1
> >...
> >(/dev/sd2 is exactly the same)
> >
> >next i run newfs on both disks:
>
> not needed
>
> >...
> >(output for /dev/sd2e is exactly the same)
> >
> >then i run ccdconfig and run newfs:
> >
> ># ccdconfig ccd0 32 0 /dev/sd1e /dev/sd2e
> ># newfs ccd0c
>
> you need to do a disklabel on ccd0 before you do a newfs (and please use
> the raw device when doing newfs)
>
> disclaimer: I have never used ccd myself, but I'm *pretty* sure I'm
> right :-)
>
> /Peter

i was able to get it work by running 'fdisk -i ccd0'., afterwards i ran 
'newfs /dev/ccd0' and i had a partition that was the size it should have 
been.

i then ran:
# ccdconfig -g > /etc/ccd.conf

and added the device to fstab:
/dev/ccd0c      /mnt  ffs     rw,noatime,nodev,nosuid 1 2

when i reboot, i get:
ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Device not configured.

for some reason, the disklabel for sd2 keep getting changed. is this normal 
when using ccd?

disklabel (after reboot):
# disklabel sd1
16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  c:      35843670             0  unused      0     0      # Cyl     0 - 
11488*
  e:      35843584            63  4.2BSD   2048 16384  408 # Cyl     0*- 
11488*

# disklabel sd2
16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  a:      35840952            63  unused      0     0      # Cyl     0*- 
11487*
  c:      35843670             0  unused      0     0      # Cyl     0 - 
11488*

sd1 stays the same, but sd2 (which had the same configuration as sd1) has 
changed, and i imagine this is what is is cause it to crap out on boot up, 
because when i change sd2's disklabel to what it should be, 'ccdconfig -C' 
runs just fine

erik

Reply via email to