Re: [RFC & PATCH 2.6.9-rc1] Add Blacklist for RAID configuration luns

Jeremy Higdon
2004-09-14T18:22:19Z

On Tue, Sep 14, 2004 at 07:40:23AM -0700, Patrick Mansfield wrote:
> On Mon, Sep 13, 2004 at 11:32:37PM -0700, Jeremy Higdon wrote:
> > Engenio RAIDs have special luns that are used for configuring the RAID.
> > These luns have a device type of 0 (disk), but do not adhere to
> > standard disk semantics. To avoid having to parse potentially dozens
> > of error messages during initialization, it's good to avoid attaching
> > these devices to sd. This can be done by changing the device type
> > to RAID (0xC).
>
> What error messages are output without your patch?
>
> -- Patrick Mansfield

If you try to read block 1 of the device, for example, you get these
errors (cut & pasted from /var/log/messages):

Sep 13 16:12:51 perflinux29 kernel: Buffer I/O error on device sdo, logical block 0
Sep 13 16:12:51 perflinux29 kernel: Buffer I/O error on device sdo, logical block 1
Sep 13 16:12:51 perflinux29 kernel: Buffer I/O error on device sdo, logical block 2
Sep 13 16:12:51 perflinux29 kernel: Buffer I/O error on device sdo, logical block 3
Sep 13 16:12:51 perflinux29 kernel: end_request: I/O error, dev sdt, sector 0

On SLES9, for example, you get these messages when hwscan or blkid
is run (they're opening disk devices and presumably scanning for
partition tables). There are several system utilities that might
do this sort scanning (lvm, for example).

The error occurs, because the lun in question returns errors for
any request beyond block 64, and the new readahead algorithm
generally issues requests for 128 blocks even when only one block
is requested.

If we convince sd not to attach to this device, the problem goes
away. Thus, the new blacklist type and new entry.

jeremy