Skip to contentSkip to conversation

SUSE multipath-tools resync

PATCH In review Hannes Reinecke 3 participants 3 messages May 21, 2007 – May 22, 2007 Device mapper

lore
Share & tools
lore
#0 lore raw

cover SUSE multipath-tools resync

Hi Christophe,

there have been quite some fixes accumulating here; and as I finally found some time I thought it a nice idea to have them sent upstream. There are fixes for various bits and pieces; mostly no big deal. Most important of these are the following:

- Added an option '-t' to dump the internal hardware table to multipath. This is quite helpful when generating your own multipath-tools.conf and you'd like to start with some sensible defaults.
- We now got a manpage multipath.conf.5 !
- New priority checker 'hp_sw' which will allow us to group these machines by priority, too.

Some patches might be a bit controversial; they make sense to me, but others might think otherwise:

- I've removed libsysfs and implemented the sysfs handling internally. With the current changes in sysfs the older libsysfs doesn't work anymore and in either case it was just a big annoyance.
- I've hacked up kpartx to handle extended partitions as well. Currently it's quite peculiar with kpartx; we'd be generating tables for all partitions _unless_ it's an extended one. So we won't be getting any symlinks to the extended partition when we're using kpartx, although the device itself is present.

Feel free to omit them if you don't agree.
And of course, feedback etc is welcome.

Christophe, please pull from

git://git.kernel.org/pub/scm/linux/kernel/hare/multipath-tools/.git
#upstream-fixes.

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)
#1 lore raw
Quoted 7 lines · Hannes Reinecke

Hi Christophe,

there have been quite some fixes accumulating here; and as I finally found some time I thought it a nice idea to have them sent upstream. There are fixes for various bits and pieces; mostly no big deal. Most important of these are the following:

Thanks, I started reading and merging this work.

Quoted 3 lines

- Added an option '-t' to dump the internal hardware table to multipath. This is quite helpful when generating your own multipath-tools.conf and you'd like to start with some sensible defaults.

Doesn't the daemon CLI "show config" command fill this need ? If so, I'd rather drop this patch (and the associated manpage patch).

Quoted 1 line

- We now got a manpage multipath.conf.5 !

Nice

Quoted 2 lines

- New priority checker 'hp_sw' which will allow us to group these machines by priority, too.

Have you pushed the kernel hardware handler upstream too ? (the START_STOP one ?)

Quoted 1 line

- directio checker async mode
Interesting stuff.
1) Do we need the libaio.h copy ?
2) Have you put some thought to SG_IO async mode feasability ?
3) Shouldn't we also timeout the execv() for path prios and ids to avoid blocking the daemon.

Quoted 6 lines

Some patches might be a bit controversial; they make sense to me, but others might think otherwise:

- I've removed libsysfs and implemented the sysfs handling internally. With the current changes in sysfs the older libsysfs doesn't work anymore and in either case it was just a big annoyance.

I mostly agree, but this one will be long to review :)

You seem to have a genuine fix in there, in cli_add_map(). It might deserve a separate patch.

Quoted 6 lines

- I've hacked up kpartx to handle extended partitions as well. Currently it's quite peculiar with kpartx; we'd be generating tables for all partitions _unless_ it's an extended one. So we won't be getting any symlinks to the extended partition when we're using kpartx, although the device itself is present.

I'll read those later.

Quoted 3 lines

Feel free to omit them if you don't agree.
And of course, feedback etc is welcome.

I add this one, that might interest you :

commit 9ff5a680b7803d8932059b2e0d6d295c60c95370

Author: Christophe Varoqui <[email protected]>
Date:   Tue May 22 00:24:22 2007 +0200

[libmultipath] new devmapper log handler needs stdarg.h

As it uses the va_list type.

Quoted 8 lines

Christophe, please pull from

git://git.kernel.org/pub/scm/linux/kernel/hare/multipath-tools/.git
#upstream-fixes.

Cheers,

Hannes

#2 lore raw

Hi Christophe,

Quoted 4 lines

- directio checker async mode
Interesting stuff.
1) Do we need the libaio.h copy ?

Not really. Just need some interface definitions.

Quoted 2 lines

2) Have you put some thought to SG_IO async mode feasability ?

That is not really an option if you have non-SCSI devices. ;-)

Quoted 3 lines

3) Shouldn't we also timeout the execv() for path prios and ids to avoid blocking the daemon.

Could be worth a thought. But maybe these are not that critical. At least as long as you don't require these calls to re-activate any failed paths...

Regards,
Stefan