Skip to contentSkip to conversation

device mapper configurations

DISCUSSION Jimmy Stewpot 3 participants 3 messages Jan 2, 2008 Device mapper

lore
Share & tools
lore
#0 lore raw

Hello,

I am currently working on writing a document on how to deploy the standard multipath tools in Linux for our systems. We are currently using all the storage vendor supplied tools and drivers, which leads to problems in maintaining the servers patch level etc. Currently my multipath configuration looks like this

defaults {

        udev_dir                /dev
        polling_interval        10
        selector                "round-robin 0"
        path_grouping_policy    multibus
        getuid_callout          "/lib/udev/scsi_id -g -u -s /block/%n"
        prio_callout            /bin/true
        path_checker            tur
        rr_min_io               100
        rr_weight               priorities
        failback                immediate
        no_path_retry           fail
        user_friendly_names     yes

}

devnode_blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z][[0-9]*]"
        devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
}
multipaths {
        multipath {
                wwid                    3600a0b800036fddd00000286477549b6
                alias                   eux0000411-eul0001138-R1-1
                path_grouping_policy    failover
                path_checker            tur
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
                rr_min_io               100
        }
        multipath {
                wwid                    3600a0b800036fddd0000027c47754568
                alias                   eux0000411-eul0001138-R10-1
                path_grouping_policy    failover
                path_checker            tur
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
                rr_min_io               100
        }
        multipath {
                wwid                    3600a0b800036fd910000025847754621
                alias                   eux0000411-eul0001138-R10-2
                path_grouping_policy    failover
                path_checker            tur
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
                rr_min_io               100
        }
}

devices {
device {
vendor "IBM"
product "1726-4xx FAStT"
path_grouping_policy failover
getuid_callout "/lib/udev/scsi_id -g -u -s
/block/%n"

                path_checker            tur
                path_selector           "round-robin 0"
                hardware_handler        "0"
                failback                15
                rr_weight               priorities
                no_path_retry           queue
                rr_min_io               100

}
}

When the system boots I get loads of errors that look like this

[  217.140126] end_request: I/O error, dev sdb, sector 0
[  217.140179] end_request: I/O error, dev sda, sector 0
[  217.607381] end_request: I/O error, dev sdf, sector 0
[  217.672613] end_request: I/O error, dev sdb, sector 0
[  217.672666] end_request: I/O error, dev sda, sector 0
[  218.139914] end_request: I/O error, dev sdf, sector 0
[  218.205140] end_request: I/O error, dev sdb, sector 0
[  218.205194] end_request: I/O error, dev sda, sector 0
[  218.672405] end_request: I/O error, dev sdf, sector 0
[  218.737635] end_request: I/O error, dev sda, sector 0
[  218.737693] end_request: I/O error, dev sdb, sector 0
[  219.171944] end_request: I/O error, dev sdf, sector 0
[  219.270187] end_request: I/O error, dev sda, sector 0
[  219.270242] end_request: I/O error, dev sdb, sector 0
[  219.704164] end_request: I/O error, dev sdf, sector 0
[  219.802719] end_request: I/O error, dev sda, sector 0
[  219.802770] end_request: I/O error, dev sdb, sector 0
[  220.236673] end_request: I/O error, dev sdf, sector 0
[  220.335191] end_request: I/O error, dev sda, sector 0
[  220.335247] end_request: I/O error, dev sdb, sector 0
[  220.769173] end_request: I/O error, dev sdf, sector 0
[  220.867724] end_request: I/O error, dev sda, sector 0
[  220.867778] end_request: I/O error, dev sdb, sector 0
[  221.285060] end_request: I/O error, dev sdf, sector 0
[  221.383578] end_request: I/O error, dev sdb, sector 0
[  221.383645] end_request: I/O error, dev sda, sector 0
[  221.799848] end_request: I/O error, dev sdf, sector 0
[  221.799851] printk: 26 messages suppressed.
[  221.799854] Buffer I/O error on device sdf, logical block 0
[  221.899449] end_request: I/O error, dev sdb, sector 0
[  221.899503] end_request: I/O error, dev sda, sector 0
[  222.300151] end_request: I/O error, dev sdf, sector 0
[  222.431946] end_request: I/O error, dev sdb, sector 0
[  222.432005] end_request: I/O error, dev sda, sector 0
[  222.799573] end_request: I/O error, dev sdf, sector 0
[  222.947834] end_request: I/O error, dev sdb, sector 0
[  222.947881] end_request: I/O error, dev sda, sector 0

When the servers boot up. The items being reported are the underlying scsi devices which we have setup above. Is it normal to get these messages or do I need to explicitly place the underlying devices into the blacklist?

I am also after any advice regarding my configuration if you can see any glaring mistakes or ways I could improve.

Regards,

Jimmy.

#1 lore raw
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jimmy Stewpot
Sent: Wednesday, January 02, 2008 3:21 PM
...
When the system boots I get loads of errors that look like this

Quoted 7 lines
[  217.140126] end_request: I/O error, dev sdb, sector 0 [  

...

When the servers boot up. The items being reported are the underlying scsi devices which we have setup above. Is it normal to get these messages or do I need to explicitly place the underlying devices into the blacklist?

You have an active-passive array (like my EMC Clariion) and these messages are normal even if annoying. It's not much "professional". With Clariion, as far as I know, the only solution is upgrading Flare to ver. 26 that simulates active-active behaviour.

--
Domenico Viggiani

#2 lore raw
Quoted 15 lines · Domenico Viggiani
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jimmy Stewpot
Sent: Wednesday, January 02, 2008 3:21 PM
...
When the system boots I get loads of errors that look like this

Quoted 7 lines
[  217.140126] end_request: I/O error, dev sdb, sector 0 [  

...

When the servers boot up. The items being reported are the underlying scsi devices which we have setup above. Is it normal to get these messages or do I need to explicitly place the underlying devices into the blacklist?

Quoted 4 lines

You have an active-passive array (like my EMC Clariion) and these messages are normal even if annoying. It's not much "professional". With Clariion, as far as I know, the only solution is upgrading Flare to ver. 26 that simulates active-active behaviour.

They should be expected, since you can't read the passive link, but it's only failing on sector 0 which sounds like udev is trying to read the partition table. I think I remember fixing this behavior on a test box (that's long gone, now, so I can't look it up) by fiddling with the udev rules to not bother scanning the multipathed (i.e. fiber channel) devices.

Sorry for the lack of specifics, but it's been a while, and I wasn't very specific in my own notes about what I did. They should be preventable, though, if I remember right.