Skip to contentSkip to conversation

RH 4 and HSG80

DISCUSSION Eric Ritchie 6 participants 10 messages Aug 1, 2007 – Aug 2, 2007 Device mapper

lore
Share & tools
lore
#0 lore raw

I trying to setup multipathing with HSG80s on a Redhat 4 update 5 host. I have it mostly working, the problem I'm having is that the 2 disks I've created on the HSGs only go through one controller. I set the preferred path for each disk to use a different controller but dm always sets them to go through just one. I also can't find a way to move a disk to the other controller, I thought multipathd -k switch would work but it doesn't. Does anyone have RedHat4 and HSG80s working properly with multipathing? Here is my multipath.conf file and multipath -ll output:

defaults {
user_friendly_names yes
}

defaults {

       udev_dir                /dev
       polling_interval        10
       selector                "round-robin 0"
       path_grouping_policy    multibus
       getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
       prio_callout            /bin/true
       path_checker            readsector0
       rr_min_io               100
       rr_weight               priorities
       failback                immediate
       no_path_retry           fail
       user_friendly_name      yes
       features                "1 queue_if_no_path"
}
devnode_blacklist {
       devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
       devnode "^hd[a-z]"
       devnode "^cciss!c[0-9]d[0-9]*"
}
multipaths {
       multipath {
               wwid                    360001fe1000d85f000039341397602d2
               alias                   disk1
               path_grouping_policy    multibus
               path_checker            readsector0
               path_selector           "round-robin 0"
               failback                manual
               rr_weight               priorities
               no_path_retry           5
       }
       multipath {
               wwid                    360001fe1000d85f0000393413976024b
               alias                   disk2
               path_grouping_policy    multibus
               path_checker            readsector0
               path_selector           "round-robin 0"
               failback                manual
               rr_weight               priorities
               no_path_retry           5
       }
}

devices {
device {
vendor DEC
product HSG80
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
path_checker hp_sw
features "1 queue_if_no_path"
}
device {
vendor DEC
product "HSG80 (C) DEC"
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
path_checker hp_sw
features "1 queue_if_no_path"
}
}

[root@lin380g5-ib etc]# multipath -ll
disk2 (360001fe1000d85f0000393413976024b) [size=339 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

\_ 0:0:4:11 sdb 8:16  [active][ready]
\_ 0:0:5:11 sdd 8:48  [active][ghost]
\_ 1:0:4:11 sdf 8:80  [active][ready]

\_ 1:0:5:11 sdh 8:112 [active][ghost]

disk1 (360001fe1000d85f000039341397602d2) [size=67 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

\_ 0:0:4:20 sda 8:0   [active][ready]
\_ 0:0:5:20 sdc 8:32  [active][ghost]
\_ 1:0:4:20 sde 8:64  [active][ready]
\_ 1:0:5:20 sdg 8:96  [active][ghost]

Thanks

Signature · 2 lines
Eric Ritchie
Interactive Brokers LLC
#1 lore raw

I have no access to HSGs but maybe this generic statements (plus some wisdom from hwtable.c) helps:

First, you are actually forcing multipath-tools to use all paths by stating "multibus" in you multipath section.
Everything you put there will replace the defaults and the device sections. Just be minimalistic there. In the
latest multipath-tools code there actually is a configuration for "DEC"/"HSG80". From this, does the following multipath-conf help you?

defaults {
rr_min_io 64
user_friendly_names yes
}

multipaths {
        multipath {
                wwid    360001fe1000d85f000039341397602d2
                alias   disk1
        }
        multipath {
                wwid    360001fe1000d85f0000393413976024b
                alias   disk2
        }
}

devices {
device {
vendor "DEC"
product "HSG80"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_hp_sw /dev/%n"
hardware_handler "1 hp_sw"
path_checker hp_sw
no_path_retry 5
}
device {
vendor "DEC"
product "HSG80 (C) DEC"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_hp_sw /dev/%n"
hardware_handler "1 hp_sw"
path_checker hp_sw
no_path_retry 5
}
}

Mit freundlichem Gruß / Regards,
Stefan Bader

SW Linux on zSeries Development
[email protected]

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----------------------------------------------------------------------------------
When all other means of communication fail, try words.

[email protected] wrote on 01.08.2007 16:53:55:

Quoted 58 lines

I trying to setup multipathing with HSG80s on a Redhat 4 update 5 host. I have it mostly working, the problem I'm having is that the 2 disks I've created on the HSGs only go through one controller. I set the preferred path for each disk to use a different controller but dm always

sets them to go through just one. I also can't find a way to move a disk

to the other controller, I thought multipathd -k switch would work but it doesn't. Does anyone have RedHat4 and HSG80s working properly with multipathing? Here is my multipath.conf file and multipath -ll output:

defaults {
user_friendly_names yes
}

defaults {

        udev_dir                /dev
        polling_interval        10
        selector                "round-robin 0"
        path_grouping_policy    multibus
        getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
        prio_callout            /bin/true
        path_checker            readsector0
        rr_min_io               100
        rr_weight               priorities
        failback                immediate
        no_path_retry           fail
        user_friendly_name      yes
        features                "1 queue_if_no_path"
}
devnode_blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
        devnode "^cciss!c[0-9]d[0-9]*"
}
multipaths {
        multipath {
                wwid 360001fe1000d85f000039341397602d2
                alias                   disk1
                path_grouping_policy    multibus
                path_checker            readsector0
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
        }
        multipath {
                wwid 360001fe1000d85f0000393413976024b
                alias                   disk2
                path_grouping_policy    multibus
                path_checker            readsector0
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
        }
}
Quoted 6 lines

devices {
device {
vendor DEC
product HSG80
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s

/block/%n"

Quoted 8 lines

path_checker hp_sw
features "1 queue_if_no_path"
}
device {
vendor DEC
product "HSG80 (C) DEC"
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s

/block/%n"

Quoted 34 lines

path_checker hp_sw
features "1 queue_if_no_path"
}
}

[root@lin380g5-ib etc]# multipath -ll
disk2 (360001fe1000d85f0000393413976024b) [size=339 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

 \_ 0:0:4:11 sdb 8:16  [active][ready]
 \_ 0:0:5:11 sdd 8:48  [active][ghost]
 \_ 1:0:4:11 sdf 8:80  [active][ready]

\_ 1:0:5:11 sdh 8:112 [active][ghost]

disk1 (360001fe1000d85f000039341397602d2) [size=67 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

 \_ 0:0:4:20 sda 8:0   [active][ready]
 \_ 0:0:5:20 sdc 8:32  [active][ghost]
 \_ 1:0:4:20 sde 8:64  [active][ready]
 \_ 1:0:5:20 sdg 8:96  [active][ghost]

Thanks

Signature · 8 lines
Eric Ritchie
Interactive Brokers LLC


--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
#2 lore raw

Thanks for the help. Unfortunately, I don't have /sbin/mpath_prio_hp_sw. I have other mpath_prio files but not the hp one. I guess that means I need a newer version of multipath-tools. How can I upgrade to the latest version?

Eric

Quoted 182 lines · Stefan Bader

I have no access to HSGs but maybe this generic statements (plus some wisdom from hwtable.c) helps:

First, you are actually forcing multipath-tools to use all paths by stating "multibus" in you multipath section. Everything you put there will replace the defaults and the device sections. Just be minimalistic there. In the latest multipath-tools code there actually is a configuration for "DEC"/"HSG80". From this, does the following multipath-conf help you?

defaults {
rr_min_io 64
user_friendly_names yes
}

multipaths {
        multipath {
                wwid    360001fe1000d85f000039341397602d2
                alias   disk1
        }
        multipath {
                wwid    360001fe1000d85f0000393413976024b
                alias   disk2
        }
}

devices {
device {
vendor "DEC"
product "HSG80"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_hp_sw /dev/%n"
hardware_handler "1 hp_sw"
path_checker hp_sw
no_path_retry 5
}
device {
vendor "DEC"
product "HSG80 (C) DEC"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_hp_sw /dev/%n"
hardware_handler "1 hp_sw"
path_checker hp_sw
no_path_retry 5
}
}

Mit freundlichem Gruß / Regards,
Stefan Bader

SW Linux on zSeries Development
[email protected]

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----------------------------------------------------------------------------------
When all other means of communication fail, try words.

[email protected] wrote on 01.08.2007 16:53:55:

Quoted 57 lines

I trying to setup multipathing with HSG80s on a Redhat 4 update 5 host. I have it mostly working, the problem I'm having is that the 2 disks I've created on the HSGs only go through one controller. I set the preferred path for each disk to use a different controller but dm always

sets them to go through just one. I also can't find a way to move a disk

to the other controller, I thought multipathd -k switch would work but it doesn't. Does anyone have RedHat4 and HSG80s working properly with multipathing? Here is my multipath.conf file and multipath -ll output:

defaults {
user_friendly_names yes
}

defaults {

        udev_dir                /dev
        polling_interval        10
        selector                "round-robin 0"
        path_grouping_policy    multibus
        getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
        prio_callout            /bin/true
        path_checker            readsector0
        rr_min_io               100
        rr_weight               priorities
        failback                immediate
        no_path_retry           fail
        user_friendly_name      yes
        features                "1 queue_if_no_path"
}
devnode_blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
        devnode "^cciss!c[0-9]d[0-9]*"
}
multipaths {
        multipath {
                wwid 360001fe1000d85f000039341397602d2
                alias                   disk1
                path_grouping_policy    multibus
                path_checker            readsector0
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
        }
        multipath {
                wwid 360001fe1000d85f0000393413976024b
                alias                   disk2
                path_grouping_policy    multibus
                path_checker            readsector0
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
        }
}
Quoted 7 lines

devices {
device {
vendor DEC
product HSG80
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s

/block/%n"

Quoted 9 lines

path_checker hp_sw
features "1 queue_if_no_path"
}
device {
vendor DEC
product "HSG80 (C) DEC"
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s

/block/%n"

Quoted 17 lines

path_checker hp_sw
features "1 queue_if_no_path"
}
}

[root@lin380g5-ib etc]# multipath -ll
disk2 (360001fe1000d85f0000393413976024b) [size=339 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

 \_ 0:0:4:11 sdb 8:16  [active][ready]
 \_ 0:0:5:11 sdd 8:48  [active][ghost]
 \_ 1:0:4:11 sdf 8:80  [active][ready]

\_ 1:0:5:11 sdh 8:112 [active][ghost]

disk1 (360001fe1000d85f000039341397602d2) [size=67 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

Quoted 18 lines
 \_ 0:0:4:20 sda 8:0   [active][ready]
 \_ 0:0:5:20 sdc 8:32  [active][ghost]
 \_ 1:0:4:20 sde 8:64  [active][ready]
 \_ 1:0:5:20 sdg 8:96  [active][ghost]

Thanks

Signature · 8 lines
Eric Ritchie
Interactive Brokers LLC


--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Signature · 3 lines
Eric Ritchie
Interactive Brokers LLC
203-618-5868
#3 lore raw
Quoted 4 lines · Eric Ritchie

Thanks for the help. Unfortunately, I don't have /sbin/mpath_prio_hp_sw. I have other mpath_prio files but not the hp one. I guess that means I need a newer version of multipath-tools. How can I upgrade to the latest version?

Try out different mpath_prio's (especially the _tpc one). One of them _might_ work.

Quoted 197 lines

Eric

Quoted 191 lines · Stefan Bader

I have no access to HSGs but maybe this generic statements (plus some wisdom from hwtable.c) helps:

First, you are actually forcing multipath-tools to use all paths by stating "multibus" in you multipath section.
Everything you put there will replace the defaults and the device sections. Just be minimalistic there. In the
latest multipath-tools code there actually is a configuration for "DEC"/"HSG80". From this, does the following multipath-conf help you?

defaults {
rr_min_io 64
user_friendly_names yes
}

multipaths {
        multipath {
                wwid    360001fe1000d85f000039341397602d2
                alias   disk1
        }
        multipath {
                wwid    360001fe1000d85f0000393413976024b
                alias   disk2
        }
}

devices {
device {
vendor "DEC"
product "HSG80"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_hp_sw /dev/%n"
hardware_handler "1 hp_sw"
path_checker hp_sw
no_path_retry 5
}
device {
vendor "DEC"
product "HSG80 (C) DEC"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_hp_sw /dev/%n"
hardware_handler "1 hp_sw"
path_checker hp_sw
no_path_retry 5
}
}

Mit freundlichem Gruß / Regards,
Stefan Bader

SW Linux on zSeries Development
[email protected]

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----------------------------------------------------------------------------------
When all other means of communication fail, try words.

[email protected] wrote on 01.08.2007 16:53:55:

Quoted 62 lines

I trying to setup multipathing with HSG80s on a Redhat 4 update 5 host. I have it mostly working, the problem I'm having is that the 2 disks I've created on the HSGs only go through one controller. I set the preferred path for each disk to use a different controller but dm always

sets them to go through just one. I also can't find a way to move a disk

to the other controller, I thought multipathd -k switch would work but it doesn't. Does anyone have RedHat4 and HSG80s working properly with multipathing? Here is my multipath.conf file and multipath -ll output:

defaults {
user_friendly_names yes
}

defaults {

        udev_dir                /dev
        polling_interval        10
        selector                "round-robin 0"
        path_grouping_policy    multibus
        getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
        prio_callout            /bin/true
        path_checker            readsector0
        rr_min_io               100
        rr_weight               priorities
        failback                immediate
        no_path_retry           fail
        user_friendly_name      yes
        features                "1 queue_if_no_path"
}
devnode_blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
        devnode "^cciss!c[0-9]d[0-9]*"
}
multipaths {
        multipath {
                wwid 360001fe1000d85f000039341397602d2
                alias                   disk1
                path_grouping_policy    multibus
                path_checker            readsector0
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
        }
        multipath {
                wwid 360001fe1000d85f0000393413976024b
                alias                   disk2
                path_grouping_policy    multibus
                path_checker            readsector0
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
        }
}
Quoted 7 lines

devices {
device {
vendor DEC
product HSG80
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s

/block/%n"

Quoted 9 lines

path_checker hp_sw
features "1 queue_if_no_path"
}
device {
vendor DEC
product "HSG80 (C) DEC"
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s

/block/%n"

Quoted 17 lines

path_checker hp_sw
features "1 queue_if_no_path"
}
}

[root@lin380g5-ib etc]# multipath -ll
disk2 (360001fe1000d85f0000393413976024b) [size=339 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

 \_ 0:0:4:11 sdb 8:16  [active][ready]
 \_ 0:0:5:11 sdd 8:48  [active][ghost]
 \_ 1:0:4:11 sdf 8:80  [active][ready]

\_ 1:0:5:11 sdh 8:112 [active][ghost]

disk1 (360001fe1000d85f000039341397602d2) [size=67 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

Quoted 18 lines
 \_ 0:0:4:20 sda 8:0   [active][ready]
 \_ 0:0:5:20 sdc 8:32  [active][ghost]
 \_ 1:0:4:20 sde 8:64  [active][ready]
 \_ 1:0:5:20 sdg 8:96  [active][ghost]

Thanks

Signature · 8 lines
Eric Ritchie
Interactive Brokers LLC


--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Signature · 4 lines
----------------------------------------------------------------------
    Chandra Seetharaman               | Be careful what you choose....
              - [email protected]   |      .......you may get it.
----------------------------------------------------------------------
#4 lore raw
Quoted 8 lines · Chandra Seetharaman
Quoted 2 lines · Eric Ritchie

Thanks for the help. Unfortunately, I don't have /sbin/mpath_prio_hp_sw. I have other mpath_prio files but not the hp one. I guess that means I need a newer version of multipath-tools. How can I upgrade to the latest version?

Try out different mpath_prio's (especially the _tpc one). One of them _might_ work.

I only have _alua, _emc, _hds_modular and _netapp. None of these work.

Thanks
Eric

Quoted 195 lines
Quoted 195 lines

Eric

Quoted 189 lines · Stefan Bader

I have no access to HSGs but maybe this generic statements (plus some wisdom from hwtable.c) helps:

First, you are actually forcing multipath-tools to use all paths by stating "multibus" in you multipath section. Everything you put there will replace the defaults and the device sections. Just be minimalistic there. In the latest multipath-tools code there actually is a configuration for "DEC"/"HSG80". From this, does the following multipath-conf help you?

defaults {
rr_min_io 64
user_friendly_names yes
}

multipaths {
        multipath {
                wwid    360001fe1000d85f000039341397602d2
                alias   disk1
        }
        multipath {
                wwid    360001fe1000d85f0000393413976024b
                alias   disk2
        }
}

devices {
device {
vendor "DEC"
product "HSG80"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_hp_sw /dev/%n"
hardware_handler "1 hp_sw"
path_checker hp_sw
no_path_retry 5
}
device {
vendor "DEC"
product "HSG80 (C) DEC"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_hp_sw /dev/%n"
hardware_handler "1 hp_sw"
path_checker hp_sw
no_path_retry 5
}
}

Mit freundlichem Gruß / Regards,
Stefan Bader

SW Linux on zSeries Development
[email protected]

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----------------------------------------------------------------------------------
When all other means of communication fail, try words.

[email protected] wrote on 01.08.2007 16:53:55:

Quoted 59 lines

I trying to setup multipathing with HSG80s on a Redhat 4 update 5 host. I have it mostly working, the problem I'm having is that the 2 disks I've created on the HSGs only go through one controller. I set the preferred path for each disk to use a different controller but dm always

sets them to go through just one. I also can't find a way to move a disk

to the other controller, I thought multipathd -k switch would work but it doesn't. Does anyone have RedHat4 and HSG80s working properly with multipathing? Here is my multipath.conf file and multipath -ll output:

defaults {
user_friendly_names yes
}

defaults {

        udev_dir                /dev
        polling_interval        10
        selector                "round-robin 0"
        path_grouping_policy    multibus
        getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
        prio_callout            /bin/true
        path_checker            readsector0
        rr_min_io               100
        rr_weight               priorities
        failback                immediate
        no_path_retry           fail
        user_friendly_name      yes
        features                "1 queue_if_no_path"
}
devnode_blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
        devnode "^cciss!c[0-9]d[0-9]*"
}
multipaths {
        multipath {
                wwid 360001fe1000d85f000039341397602d2
                alias                   disk1
                path_grouping_policy    multibus
                path_checker            readsector0
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
        }
        multipath {
                wwid 360001fe1000d85f0000393413976024b
                alias                   disk2
                path_grouping_policy    multibus
                path_checker            readsector0
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
        }
}
Quoted 8 lines

devices {
device {
vendor DEC
product HSG80
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s

/block/%n"

Quoted 10 lines

path_checker hp_sw
features "1 queue_if_no_path"
}
device {
vendor DEC
product "HSG80 (C) DEC"
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s

/block/%n"

Quoted 17 lines

path_checker hp_sw
features "1 queue_if_no_path"
}
}

[root@lin380g5-ib etc]# multipath -ll
disk2 (360001fe1000d85f0000393413976024b) [size=339 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

 \_ 0:0:4:11 sdb 8:16  [active][ready]
 \_ 0:0:5:11 sdd 8:48  [active][ghost]
 \_ 1:0:4:11 sdf 8:80  [active][ready]

\_ 1:0:5:11 sdh 8:112 [active][ghost]

disk1 (360001fe1000d85f000039341397602d2) [size=67 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

Quoted 19 lines
 \_ 0:0:4:20 sda 8:0   [active][ready]
 \_ 0:0:5:20 sdc 8:32  [active][ghost]
 \_ 1:0:4:20 sde 8:64  [active][ready]
 \_ 1:0:5:20 sdg 8:96  [active][ghost]

Thanks

Signature · 8 lines
Eric Ritchie
Interactive Brokers LLC


--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Signature · 3 lines
Eric Ritchie
Interactive Brokers LLC
203-618-5868
#5 lore raw
Quoted 9 lines · Eric Ritchie
Quoted 8 lines · Chandra Seetharaman
Quoted 5 lines · Eric Ritchie

Thanks for the help. Unfortunately, I don't have /sbin/mpath_prio_hp_sw. I have other mpath_prio files but not the hp one. I guess that means I need a newer version of multipath-tools. How can I upgrade to the latest version?

Quoted 4 lines
Quoted 3 lines

Try out different mpath_prio's (especially the _tpc one). One of them _might_ work.

I only have _alua, _emc, _hds_modular and _netapp. None of these work.

sorry, I did not know what mpath_prio's were available in RHEL.

You can download the latest multipath tools tree from
http://git.kernel.org/?p=linux/storage/multipath-tools/.git;a=tree,
built the tools, copy only the _hp_sw or _tpc to /sbin and if it helps.

BTW, do note that doing this may invalidate your support contract with your vendor (linux distributor).

Quoted 209 lines

Thanks
Eric

Quoted 204 lines
Quoted 204 lines

Eric

Quoted 198 lines · Stefan Bader

I have no access to HSGs but maybe this generic statements (plus some wisdom from hwtable.c) helps:

First, you are actually forcing multipath-tools to use all paths by stating "multibus" in you multipath section.
Everything you put there will replace the defaults and the device sections. Just be minimalistic there. In the
latest multipath-tools code there actually is a configuration for "DEC"/"HSG80". From this, does the following multipath-conf help you?

defaults {
rr_min_io 64
user_friendly_names yes
}

multipaths {
        multipath {
                wwid    360001fe1000d85f000039341397602d2
                alias   disk1
        }
        multipath {
                wwid    360001fe1000d85f0000393413976024b
                alias   disk2
        }
}

devices {
device {
vendor "DEC"
product "HSG80"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_hp_sw /dev/%n"
hardware_handler "1 hp_sw"
path_checker hp_sw
no_path_retry 5
}
device {
vendor "DEC"
product "HSG80 (C) DEC"
path_grouping_policy group_by_prio
prio_callout "/sbin/mpath_prio_hp_sw /dev/%n"
hardware_handler "1 hp_sw"
path_checker hp_sw
no_path_retry 5
}
}

Mit freundlichem Gruß / Regards,
Stefan Bader

SW Linux on zSeries Development
[email protected]

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----------------------------------------------------------------------------------
When all other means of communication fail, try words.

[email protected] wrote on 01.08.2007 16:53:55:

Quoted 64 lines

I trying to setup multipathing with HSG80s on a Redhat 4 update 5 host. I have it mostly working, the problem I'm having is that the 2 disks I've created on the HSGs only go through one controller. I set the preferred path for each disk to use a different controller but dm always

sets them to go through just one. I also can't find a way to move a disk

to the other controller, I thought multipathd -k switch would work but it doesn't. Does anyone have RedHat4 and HSG80s working properly with multipathing? Here is my multipath.conf file and multipath -ll output:

defaults {
user_friendly_names yes
}

defaults {

        udev_dir                /dev
        polling_interval        10
        selector                "round-robin 0"
        path_grouping_policy    multibus
        getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
        prio_callout            /bin/true
        path_checker            readsector0
        rr_min_io               100
        rr_weight               priorities
        failback                immediate
        no_path_retry           fail
        user_friendly_name      yes
        features                "1 queue_if_no_path"
}
devnode_blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z]"
        devnode "^cciss!c[0-9]d[0-9]*"
}
multipaths {
        multipath {
                wwid 360001fe1000d85f000039341397602d2
                alias                   disk1
                path_grouping_policy    multibus
                path_checker            readsector0
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
        }
        multipath {
                wwid 360001fe1000d85f0000393413976024b
                alias                   disk2
                path_grouping_policy    multibus
                path_checker            readsector0
                path_selector           "round-robin 0"
                failback                manual
                rr_weight               priorities
                no_path_retry           5
        }
}
Quoted 8 lines

devices {
device {
vendor DEC
product HSG80
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s

/block/%n"

Quoted 10 lines

path_checker hp_sw
features "1 queue_if_no_path"
}
device {
vendor DEC
product "HSG80 (C) DEC"
path_grouping_policy group_by_serial
getuid_callout "/sbin/scsi_id -g -u -s

/block/%n"

Quoted 17 lines

path_checker hp_sw
features "1 queue_if_no_path"
}
}

[root@lin380g5-ib etc]# multipath -ll
disk2 (360001fe1000d85f0000393413976024b) [size=339 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

 \_ 0:0:4:11 sdb 8:16  [active][ready]
 \_ 0:0:5:11 sdd 8:48  [active][ghost]
 \_ 1:0:4:11 sdf 8:80  [active][ready]

\_ 1:0:5:11 sdh 8:112 [active][ghost]

disk1 (360001fe1000d85f000039341397602d2) [size=67 GB][features="1 queue_if_no_path"][hwhandler="0"] \_ round-robin 0 [active]

Quoted 19 lines
 \_ 0:0:4:20 sda 8:0   [active][ready]
 \_ 0:0:5:20 sdc 8:32  [active][ghost]
 \_ 1:0:4:20 sde 8:64  [active][ready]
 \_ 1:0:5:20 sdg 8:96  [active][ghost]

Thanks

Signature · 8 lines
Eric Ritchie
Interactive Brokers LLC


--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Signature · 4 lines
----------------------------------------------------------------------
    Chandra Seetharaman               | Be careful what you choose....
              - [email protected]   |      .......you may get it.
----------------------------------------------------------------------
#6 lore raw
In reply to Chandra Seetharaman
Quoted 9 lines · Chandra Seetharaman
Quoted 4 lines · Eric Ritchie

Thanks for the help. Unfortunately, I don't have /sbin/mpath_prio_hp_sw. I have other mpath_prio files but not the hp one. I guess that means I need a newer version of multipath-tools. How can I upgrade to the latest version?

Try out different mpath_prio's (especially the _tpc one). One of them _might_ work.

mpath_prio_tpc doesn't work. The HSG80 is basically the same firmware than the older HP MSA boxes have (active/passive), so you'd need the hp_sw related things.

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
#7 lore raw
In reply to Eric Ritchie
Quoted 4 lines · Eric Ritchie

Thanks for the help. Unfortunately, I don't have /sbin/mpath_prio_hp_sw. I have other mpath_prio files but not the hp one. I guess that means I need a newer version of multipath-tools. How can I upgrade to the latest version?

you'll have to build it from git.
Also you need to build the hp_sw module for your kernel, patches which at least build with 2.6.21 and .22 were posted on this list some days ago.

Cheers,

Bernd

Signature · 2 lines
Bernd Zeimetz
<[email protected]>                         <http://bzed.de/>
#8 lore raw
In reply to Stefan Bader
Quoted 7 lines · Stefan Bader [[email protected]] wrote:

I have no access to HSGs but maybe this generic statements (plus some wisdom from hwtable.c) helps:

First, you are actually forcing multipath-tools to use all paths by stating "multibus" in you multipath section.
Everything you put there will replace the defaults and the device sections. Just be minimalistic there. In the

One would expect that whatever is specified in the 'device' section would be taken for that device no matter what is in the 'defaults' section. If device section is missing, then it should use from the 'defaults' section. Why is it implemented to have the 'defaults' section override the 'device' section? Looks odd to me.

Thanks, Malahal.

#9 lore raw
Quoted 9 lines · On Wed, 2007-08-01 at 10:59 -0700, [email protected] wrote:
Quoted 7 lines · Stefan Bader [[email protected]] wrote:

I have no access to HSGs but maybe this generic statements (plus some wisdom from hwtable.c) helps:

First, you are actually forcing multipath-tools to use all paths by stating "multibus" in you multipath section.
Everything you put there will replace the defaults and the device sections. Just be minimalistic there. In the

Quoted 5 lines

One would expect that whatever is specified in the 'device' section would be taken for that device no matter what is in the 'defaults' section. If device section is missing, then it should use from the 'defaults' section. Why is it implemented to have the 'defaults' section override the 'device' section? Looks odd to me.

You are right, Malahal. Defaults section does not override the device section. It just overrides internal default (hwtable.c).

To my understanding the order of attribute override is as under:

internal default (hwtable.c)
defaults section (in /etc/multipath.conf)
device section (in /etc/multipath.conf)
multipaths section (in /etc/multipath.conf)

There were two things in Eric's multipath.conf which caused his problems
- setting multibus as the path grouping policy (in multipaths section) for a device that is active/passive (it should be ideally group_by_prio, but group_by_serial also works).
- using /bin/true as prio_callout. As Stefan pointed prio_callout should be an appropriate one for the device.

Quoted 6 lines

Thanks, Malahal.

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Signature · 4 lines
----------------------------------------------------------------------
    Chandra Seetharaman               | Be careful what you choose....
              - [email protected]   |      .......you may get it.
----------------------------------------------------------------------