All of lore.kernel.org
 help / color / mirror / Atom feed
* PATCH 0/4] multipath-tools: Ceph rbd support v2
@ 2016-08-08 12:01 Mike Christie
  2016-08-08 12:01 ` [PATCH 1/4] libmultipath: add rbd discovery Mike Christie
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Mike Christie @ 2016-08-08 12:01 UTC (permalink / raw)
  To: dm-devel, christophe.varoqui

The following patches made over Christophe's tree today,
add Ceph rbd support for handling blacklisted devices.


This is not general support for rbd and multipath. There is
no boot/root support and it does not support features like
multibus. My use is for HA configurations, specifically for exporting
rbd images through multiple LIO instances. In this case, we have one
rbd instance that has the ceph rbd exclusive lock and it can send
WRITE requests. If that host becomes unreachable, then another host
will grab the lock, and blacklist the original host to prevent it from
sending stale IO (when blacklisted IO will be failed by the OSD).

To recover from that type of scenario, this patchset adds a repair()
callout to the checker. If the path is in the PATH_DOWN state this
callout can be used to fix it up. For my case, I am remapping
the device to flush stale IO and cleanup the old lock,
and then unblacklisting the path, so it can be used again.

Changes since v1:
- Drop ID_UID use and implemented sysfs getuid support.
- Drop settings that were defaults and follow template.
- Fix ceph auth/user.

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [PATCH 4/4] multipath-tools: Add rbd to the hwtable
@ 2016-07-19 12:28 Xose Vazquez Perez
  0 siblings, 0 replies; 18+ messages in thread
From: Xose Vazquez Perez @ 2016-07-19 12:28 UTC (permalink / raw)
  To: Mike Christie, device-mapper development, Christophe Varoqui

Mike Christie wrote:

> Add rbd to hwtable. These defaults are for the HA type of setup
> supported by the checker. We do no support features like multibus
> at the dm-multipath level yet.

Please use this patch as guide:
https://patchwork.kernel.org/patch/9225521/

> Signed-off-by: Mike Christie <mchristi@redhat.com>
> ---
>  libmultipath/hwtable.c | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
> index 6116124..27a6ff1 100644
> --- a/libmultipath/hwtable.c
> +++ b/libmultipath/hwtable.c
> @@ -1206,6 +1206,21 @@ static struct hwentry default_hw[] = {
>  		.pgfailback    = 30,
>  		.minio         = 128,
>  	},
> +	{
> +		.vendor        = "Ceph",
> +		.product       = "RBD",
> +		.features      = DEFAULT_FEATURES,
> +		.hwhandler     = DEFAULT_HWHANDLER,
> +		.pgpolicy      = FAILOVER,
> +		.pgfailback    = -FAILBACK_IMMEDIATE,
> +		.no_path_retry = NO_PATH_RETRY_FAIL,
> +		.checker_name  = RBD,
> +		.user_friendly_names = USER_FRIENDLY_NAMES_ON,

USER_FRIENDLY_NAMES_ON is highly inadvisable.

> +		.uid_attribute = "ID_UID",
> +		.prio_name     = PRIO_CONST,
> +		.deferred_remove = DEFERRED_REMOVE_ON,

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [PATCH 0/4] multipath-tools: Ceph rbd support
@ 2016-07-05  8:12 Mike Christie
  2016-07-05  8:12 ` [PATCH 4/4] multipath-tools: Add rbd to the hwtable Mike Christie
  0 siblings, 1 reply; 18+ messages in thread
From: Mike Christie @ 2016-07-05  8:12 UTC (permalink / raw)
  To: dm-devel, christophe.varoqui

The following patches add Ceph rbd support for handling
blacklisted devices. This does not support features like
multibus.

My specific use is for exporting rbd images through multiple
LIO instances. In this case, we have one rbd instance that
has the exclusive lock and send WRITE requests. If that host
becomes unreachable, then another host will grab the lock,
and blacklist the original host to prevent it from sending stale
IO (when blacklisted IO will be failed by the OSD).

To recover from this, this patchset adds a repair() callout
to the checker. If the path is in the PATH_DOWN state this
callout can be used to fix it up. For my case, I am remapping
the device to flush stale IO and cleanup the old lock,
and then unblacklisting myself.

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-08-15 16:24 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-08 12:01 PATCH 0/4] multipath-tools: Ceph rbd support v2 Mike Christie
2016-08-08 12:01 ` [PATCH 1/4] libmultipath: add rbd discovery Mike Christie
2016-08-08 12:01 ` [PATCH 2/4] multipath-tools: add checker callout to repair path Mike Christie
2016-08-11 15:50   ` Bart Van Assche
2016-08-11 20:33     ` Mike Christie
2016-08-11 21:41       ` Bart Van Assche
2016-08-12 16:54         ` Mike Christie
2016-08-12 17:10           ` Bart Van Assche
2016-08-14  8:41         ` Mike Christie
2016-08-15 16:24           ` Bart Van Assche
2016-08-08 12:01 ` [PATCH 3/4] multipath-tools: Add rbd checker Mike Christie
2016-08-08 12:01 ` [PATCH 4/4] multipath-tools: Add rbd to the hwtable Mike Christie
2016-08-09 15:36 ` PATCH 0/4] multipath-tools: Ceph rbd support v2 Christophe Varoqui
2016-08-09 18:26   ` Mike Christie
2016-08-10  7:55     ` Christophe Varoqui
2016-08-10 15:42       ` Bart Van Assche
  -- strict thread matches above, loose matches on Subject: below --
2016-07-19 12:28 [PATCH 4/4] multipath-tools: Add rbd to the hwtable Xose Vazquez Perez
2016-07-05  8:12 [PATCH 0/4] multipath-tools: Ceph rbd support Mike Christie
2016-07-05  8:12 ` [PATCH 4/4] multipath-tools: Add rbd to the hwtable Mike Christie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.