Current-Users archive

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

Re: cgd on dk on 4k block size disk



On Sun, May 26, 2013 at 03:46:07PM +0000, Michael van Elst wrote:
> tk%giga.or.at@localhost (Thomas Klausner) writes:
> 
> >I then wanted to add a cgd file system on the first partition.
> >Note that this says 512 bytes/sector.
> 
> That's the "virtual" disk geometry presented by cgd. 512 is also
> the block sized used for encryption.
> 
> >I didn't manage to get a usable disklabel on this cgd device yet. Is
> >this currently possible?
> 
> No. The underlying disk only accepts 4k aligned I/O (i.e. its physical
> blocks). cgd needs to adopt the underlying disks block size, it should
> already handle splitting the crypto operations to 512 byte units.

Ok, I filed PR 47857 about this; please correct it if I misunderstood.

I put a plain ffs on it. During the night, the machine rebooted (no
savecore, so no idea) and I've just tried to fsck the file system.
sd0 at scsibus0 target 0 lun 0: <PLATINUM, HousingMyDriveHP, 0006> disk fixed
sd0: fabricating a geometry
sd0: 2794 GB, 357698 cyl, 64 head, 32 sec, 4096 bytes/sect x 732566646 sectors
sd0: fabricating a geometry
sd0: GPT GUID: 693f36ad-b949-11e2-aea7-002590a7ac30
dk10 at sd0: Backup-201305
dk10: 732566272 blocks at 128, type: ffs
# gpt show sd0  
      start       size  index  contents
          0          1         PMBR
          1          1         Pri GPT header
          2          4         Pri GPT table
          6        122         
        128  732566272      1  GPT part - NetBSD FFSv1/FFSv2
  732566400        241         
  732566641          4         Sec GPT table
  732566645          1         Sec GPT header
# fsck /dev/dk10
** /dev/rdk10
** File system is journaled; replaying journal

CANNOT WRITE: BLK 5398972736
CONTINUE? [yn] y

THE FOLLOWING SECTORS COULD NOT BE WRITTEN: 5398972736,

CANNOT WRITE: BLK 5398972744
CONTINUE? [yn] y

THE FOLLOWING SECTORS COULD NOT BE WRITTEN: 5398972744,

CANNOT WRITE: BLK 5398972752
CONTINUE? [yn] y

THE FOLLOWING SECTORS COULD NOT BE WRITTEN: 5398972752,

CANNOT WRITE: BLK 5398972760
CONTINUE? [yn] y

I get this message for every 8th BLK now. Looks like a bug?
 Thomas



Home | Main Index | Thread Index | Old Index