Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2009 13:42:12 +0900 (JST)
From:      SAITOU Toshihide <toshi@ruby.ocn.ne.jp>
To:        freebsd-questions@freebsd.org
Subject:   How can I use BD-RE with UFS on geli?
Message-ID:  <20090412.134212.260812222.toshi@ruby.ocn.ne.jp>

next in thread | raw e-mail | index | archive | help
I tried BD-RE with UFS on geli but didn't success.
What was wrong the below?


* BDR-S03J, Pioneer SATAT BD/DVD/CD Writer
* FreeBSD 7-STABLE (Apr. 5)

1. when insert BD-RE:

   [/var/log/messages]
   acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=3D0x24 ascq=3D0x00 =

   (cd0:ata6:0:0:0): READ TOC/PMA/ATIP. CDB: 43 0 0 0 0 0 0 0 4 0 =

   (cd0:ata6:0:0:0): CAM Status: SCSI Status Error
   (cd0:ata6:0:0:0): SCSI Status: Check Condition
   (cd0:ata6:0:0:0): ILLEGAL REQUEST asc:24,0
   (cd0:ata6:0:0:0): Invalid field in CDB
   (cd0:ata6:0:0:0): Unretryable error


2. maybe the diskinfo is wrong. (READ_TOC ILLEGAL REQUEST is related?)

   # diskinfo -v /dev/acd0
   /dev/acd0
           2048            # sectorsize
           8796093020160   # mediasize in bytes (8.0T)
           4294967295      # mediasize in sectors


3. trying disk format with dvd+rw-format was failed.

   # dvd+rw-format /dev/cd0
   * BD/DVD=B1RW/-RAM format utility by <appro@fy.chalmers.se>, version=
 7.1.
   * 25.0GB BD media detected.
   * formatting 63.9%
   #

   [/var/log/messages]
   acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=3D0x24 ascq=3D0x00 =

   acd0: FAILURE - READ_TOC ILLEGAL REQUEST asc=3D0x24 ascq=3D0x00 =

   (cd0:ata6:0:0:0): READ TOC/PMA/ATIP. CDB: 43 2 0 0 0 0 aa 0 c 0 =

   (cd0:ata6:0:0:0): CAM Status: SCSI Status Error
   (cd0:ata6:0:0:0): SCSI Status: Check Condition
   (cd0:ata6:0:0:0): ILLEGAL REQUEST asc:24,0
   (cd0:ata6:0:0:0): Invalid field in CDB
   (cd0:ata6:0:0:0): Unretryable error


4. but after the above, the diskinfo is something sane:

   # diskinfo -v /dev/acd0
   /dev/acd0
           2048            # sectorsize
           24220008448     # mediasize in bytes (23G)
           11826176        # mediasize in sectors


5. so I tried geli init

   # geli init /dev/acd0
   # geli attach /dev/acd0

   GEOM_ELI: Device acd0.eli created.
   GEOM_ELI: Encryption: AES-CBC 128
   GEOM_ELI:     Crypto: software


6. then newfs:

   # newfs /dev/acd0.eli =

   /dev/acd0.eli: 23098.0MB (47304700 sectors) block size 16384, fragme=
nt size 2048
   	using 126 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
   super-block backups (for fsck -b #) at:
    160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3=
010976,
    3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021=
792,
    6398144, 6774496, 7150848, 7527200, 7903552, 8279904, 8656256, 9032=
608,
    9408960, 9785312, 10161664, 10538016, 10914368, 11290720, 11667072,=
 12043424,
    12419776, 12796128, 13172480, 13548832, 13925184, 14301536, 1467788=
8,
    15054240, 15430592, 15806944, 16183296, 16559648, 16936000, 1731235=
2,
    17688704, 18065056, 18441408, 18817760, 19194112, 19570464, 1994681=
6,
    20323168, 20699520, 21075872, 21452224, 21828576, 22204928, 2258128=
0,
    22957632, 23333984, 23710336, 24086688, 24463040, 24839392, 2521574=
4,
    25592096, 25968448, 26344800, 26721152, 27097504, 27473856, 2785020=
8,
    28226560, 28602912, 28979264, 29355616, 29731968, 30108320, 3048467=
2,
    30861024, 31237376, 31613728, 31990080, 32366432, 32742784, 3311913=
6,
    33495488, 33871840, 34248192, 34624544, 35000896, 35377248, 3575360=
0,
    36129952, 36506304, 36882656, 37259008, 37635360, 38011712, 3838806=
4,
    38764416, 39140768, 39517120, 39893472, 40269824, 40646176, 4102252=
8,
    41398880, 41775232, 42151584, 42527936, 42904288, 43280640, 4365699=
2,
    44033344, 44409696, 44786048, 45162400, 45538752, 45915104, 4629145=
6,
    46667808, 47044160


   [/var/log/messages]
   acd0: FAILURE - READ_BIG MEDIUM ERROR asc=3D0x11 ascq=3D0x05 =

   GEOM_ELI: g_eli_read_done() failed acd0.eli[READ(offset=3D65536, len=
gth=3D2048)]

   * this was not always seen and the offset or the lenth is
     random during my trial.


After this I can mount /dev/acd0.eli but the programs which
access to this disk frequently abort with these log messages:


   acd0: FAILURE - READ_BIG MEDIUM ERROR asc=3D0x11 ascq=3D0x05 =

   GEOM_ELI: g_eli_read_done() failed acd0.eli[READ(offset=3D1194693427=
2, length=3D2048)]
   g_vfs_done():label/DailyBackup[READ(offset=3D11946934272, length=3D2=
048)]error =3D 5

   acd0: FAILURE - READ_BIG MEDIUM ERROR asc=3D0x11 ascq=3D0x05 =

   GEOM_ELI: g_eli_read_done() failed acd0.eli[READ(offset=3D2697789440=
, length=3D16384)]
   g_vfs_done():label/DailyBackup[READ(offset=3D2697789440, length=3D16=
384)]error =3D 5

   acd0: FAILURE - READ_BIG MEDIUM ERROR asc=3D0x11 ascq=3D0x05 =

   GEOM_ELI: g_eli_read_done() failed acd0.eli[READ(offset=3D1194693427=
2, length=3D2048)]
   g_vfs_done():label/DailyBackup[READ(offset=3D11946934272, length=3D2=
048)]error =3D 5

I feel the disk access sometimes goes over the disk area
because of the incorrect disk parameters.

Thank you.

---
SAITOU Toshihide



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