Dave Wysochanski c9e45581ad dm mpath: add retry pg init
This patch allows a failed path group initialisation command to be retried.

It adds a generic MP_RETRY flag and a "pg_init_retries" feature to
device-mapper multipath which limits the number of retries.

1. A hw handler sends a path initialization command to the storage and
the command completes with an error code indicating the command
should be retried.

2. The hardware handler calls dm_pg_init_complete() with MP_RETRY
set in err_flags to ask the dm multipath core to retry.

3. If the retry limit has not been exceeded, pg_init() is retried.
Otherwise fail_path() is called.

If you are using the userspace multipath-tools or device-mapper-multipath
package, you can set pg_init_retries in the 'device' section of your
/etc/multipath.conf file. For example:

features                "2 pg_init_retries 7"

The number of PG retries attempted is reported in the 'dmsetup status' output.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Acked-by: Mike Christie <michaelc@cs.wisc.edu>
Acked-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2007-10-20 02:01:18 +01:00
..
2005-09-17 11:49:58 -07:00
2006-01-01 22:21:50 +01:00
2007-10-20 02:01:11 +01:00
2005-04-16 15:20:36 -07:00
2007-10-20 02:01:17 +01:00
2007-10-20 02:01:11 +01:00
2007-10-20 02:01:12 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:18 +01:00
2007-05-09 12:30:47 -07:00
2007-10-20 02:01:10 +01:00
2007-05-09 12:30:48 -07:00
2007-10-20 02:00:57 +01:00
2007-10-20 02:01:18 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:06 +01:00
2007-10-20 02:01:06 +01:00
2007-07-12 15:01:08 -07:00
2007-10-20 02:01:06 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:09 +01:00
2007-10-20 02:01:08 +01:00
2005-04-16 15:20:36 -07:00
2007-10-19 11:53:43 -07:00
2005-04-16 15:20:36 -07:00
2007-10-17 08:43:03 -07:00
2005-09-17 11:49:58 -07:00
2005-09-17 11:49:58 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00