DragonFly kernel List (threaded) for 2007-05
DragonFly BSD
DragonFly kernel List (threaded) for 2007-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: FIXING VN AND CCD DEVICES ON HEAD! Re: HEADS up on HEAD


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Sun, 20 May 2007 10:16:15 +0900

On Sat, May 19, 2007 at 05:53:14PM -0700, Matthew Dillon wrote:
> :I followed the instruction, and now I get no error messages when I access
> :/dev/ccd0, but zero bytes can be read from/written to it.  The `dd' command
> :gave me the following output:
> :  # dd if=/dev/zero count=1 bs=512 of=/dev/ccd0
> :  dd: /dev/ccd0: end of device
> :  1+0 records in
> :  0+0 records in
> :  0 bytes transferred in 0.000056 secs (0 bytes/sec)
> :is this expected?
> :
> :I changed my /etc/ccd.conf to look like this:
> :  ccd0s0 1152 none /dev/ad0s1e /dev/ad1s1e
> :  ccd1s0 16 CCDF_MIRROR,CCDF_UNIFORM /dev/ad0s1g /dev/ad1s1g
> :
> :However, I still can't access neither of the filesystems on ccd devices.
> :I hope I haven't missed anything.
> :
> :Thanks.
> 
>     Well, ccd.conf still must specify 'ccd0' and 'ccd1', not 'ccds0' and
>     'ccds1'.  ccdconfig needs to access the base device to actually do
>     all the attaches.
> 
>     ccd0 1152 none /dev/ad0s1e /dev/ad1s1e
>     ccd1 16 CCDF_MIRROR,CCDF_UNIFORM /dev/ad0s1g /dev/ad1s1g
> 
>     You should be able to 'dd' from /dev/ccd0 and /dev/ccd1 with the above,
>     and if there is no MBR the disklabel should be accessible via
>     /dev/ccd0s0 and /dev/ccd1s0.
> 
>     dd if=/dev/ccd0 bs=512 count=2 | hexdump -C
> 
>     disklabel ccd0s0
> 
>     --
> 
>     If you are depending on a reboot to setup the CCD, trying doing:
> 
>     ccdconfig -U
>     ccdconfig -C
> 
>     after booting to see what errors you get.

OK, I fixed ccd.conf and issued ccdconfig commands above, and I got
  # ccdconfig -U
  ccdconfig: ioctl (CCDIOCCLR): /dev/ccd0: Device not configured
  ccdconfig: ioctl (CCDIOCCLR): /dev/ccd1: Device not configured
  # ccdconfig -C
  ad1s1: type 0xa5, start 63, end = 117226304, size 117226242 : OK
  ccd0: /dev/ad0s1e: filesystem type must be 'ccd'
  ccdconfig: ioctl (CCDIOCSET): /dev/ccd0: Inappropriate file type or format
  ad1s1: type 0xa5, start 63, end = 117226304, size 117226242 : OK
  ccd1: /dev/ad0s1g: filesystem type must be 'ccd'
  ccdconfig: ioctl (CCDIOCSET): /dev/ccd1: Inappropriate file type or format
  # echo $?
  1

  # dd if=/dev/ccd0 bs=512 count=2 | hexdump -C
  0+0 records in
  0+0 records out
  0 bytes transferred in 0.000040 secs (0 bytes/sec)



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]