Device Mapper MultiPath
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but I really want to help, with anything.
I'd appreciate if someone help me how to begin here. :)
Rgds,
Signature · 1 line
Rodrigo Nascimento
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but I
I think you are the first :-)
Quoted 1 line
really want to help, with anything.
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.
Quoted 12 lines
I'd appreciate if someone help me how to begin here. :)
Rgds,
Signature · 6 lines
Rodrigo Nascimento -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
Konrad,
Thanks for your tips.
I'll run this tests and post the results here!
Now, I'm a Professional Services Engineer at NetApp Latin America (Brazil) and I have some problems with FAS3140 and Citrix Xen 5.0.0 with Multipathing enabled. Do you think that I could have some help here?
See you,
:-)
Quoted 38 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, butI
I think you are the first :-)
Quoted 1 line
really want to help, with anything.
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.Quoted 5 lines
I'd appreciate if someone help me how to begin here. :)
Rgds,
Quoted 7 lines
--
Rodrigo Nascimento--
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 · 1 line
Rodrigo Nascimento
Hi Rodrigo,
Quoted 7 lines · Rodrigo Nascimento
Konrad,
Thanks for your tips.
I'll run this tests and post the results here!Now, I'm a Professional Services Engineer at NetApp Latin America (Brazil) and I have some problems with FAS3140 and Citrix Xen 5.0.0 with Multipathing enabled. Do you think that I could have some help here?
Not sure. As Citrix Xen is somewhat proprietary the most obvious answer would be to try their support.
Or try to reproduce it with something more freely accessible like SLES or RHEL and see if you can reproduce it. Chances are you'd get a quicker answer then.
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)
Quoted 11 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Quoted 8 lines
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.
What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed, volume manager layer. I remember some of this being talk about a while ago, but I don't think anything ever happened.
Andy
Quoted 21 lines · Andy
Quoted 11 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Quoted 8 lines
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.
Quoted 3 lines
What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed,
Benjamin posted a CVS patch of this, that I've forward-ported to work with the latest git. It is attached.
Quoted 9 lines
volume manager layer. I remember some of this being talk about a while ago, but I don't think anything ever happened.
Andy
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
From 478bf8cc2c741f860d4a0a6d0cc22d5304e7f45c Mon Sep 17 00:00:00 2001
From: Konrad Rzeszutek <[email protected]>
Date: Mon, 23 Mar 2009 15:35:59 -0400
Subject: [PATCH] Support resizing of multipath maps.
This is patch that initially showed up on dm-devel mailing list:
http://www.linux-archive.org/device-mapper-development/162594-multipath-tools-libmultipath-configure-c-libmu.html
which was posted on dm-devel mailing list, but never ported over to work with the git version. This forward-port by me works.
--- libmultipath/configure.c | 10 +++- libmultipath/configure.h | 4 +- libmultipath/devmapper.c | 12 ++- libmultipath/devmapper.h | 2 +- libmultipath/sysfs.h | 1 + multipathd/cli.c | 2 + multipathd/cli.h | 2 + multipathd/cli_handlers.c | 166 +++++++++++++++++++++++++++++++------------- multipathd/cli_handlers.h | 1 + multipathd/main.c | 3 +- multipathd/main.h | 1 + 11 files changed, 147 insertions(+), 57 deletions(-)
libmultipath/configure.c +9 -1
@@ -353,7 +353,15 @@ domap (struct multipath * mpp)case ACT_RELOAD : r = (dm_addmap_reload (mpp->alias, mpp->params, mpp->size,NULL ) - &&dm_simplecmd (DM_DEVICE_RESUME , mpp->alias)); + &&dm_simplecmd (DM_DEVICE_RESUME , mpp->alias,1 )); +break ; + +case ACT_RESIZE : + r =dm_addmap_reload_ro (mpp->alias, mpp->params, mpp->size,NULL ); +if (!r) + r =dm_addmap_reload (mpp->alias, mpp->params, mpp->size,NULL ); +if (r) + r =dm_simplecmd (DM_DEVICE_RESUME , mpp->alias,0 );break ;case ACT_RENAME :
libmultipath/configure.h +3 -1
@@ -7,6 +7,7 @@#define ACT_SWITCHPG_STR "switchpg"#define ACT_RENAME_STR "rename"#define ACT_CREATE_STR "create" +#define ACT_RESIZE_STR "resize"enum actions {ACT_UNDEF ,
@@ -15,7 +16,8 @@ enum actions {ACT_RELOAD ,ACT_SWITCHPG ,ACT_RENAME , - ACT_CREATE +ACT_CREATE , + ACT_RESIZE, };#define FLUSH_ONE 1
libmultipath/devmapper.c +8 -4
@@ -150,7 +150,7 @@ dm_prereq (void) }extern int -dm_simplecmd (int task,const char *name) { +dm_simplecmd (int task,const char *name,int no_flush) {int r =0 ;struct dm_task *dmt;
@@ -163,7 +163,8 @@ dm_simplecmd (int task, const char *name) {dm_task_no_open_count (dmt);dm_task_skip_lockfs (dmt);/* for DM_DEVICE_RESUME */ #ifdef LIBDM_API_FLUSH -dm_task_no_flush (dmt);/* for DM_DEVICE_SUSPEND/RESUME */ +if (no_flush) +dm_task_no_flush (dmt);/* for DM_DEVICE_SUSPEND/RESUME */ #endif r =dm_task_run (dmt);
@@ -193,6 +194,9 @@ dm_addmap (int task, const char *name, const char *target,if (ro)dm_task_set_ro (dmt); +if (ro) +dm_task_set_ro (dmt); +if (uuid){ prefixed_uuid =MALLOC (UUID_PREFIX_LEN +strlen (uuid) +1 );if (!prefixed_uuid) {
@@ -536,7 +540,7 @@ dm_flush_map (const char * mapname)return 1 ; } - r =dm_simplecmd (DM_DEVICE_REMOVE , mapname); + r =dm_simplecmd (DM_DEVICE_REMOVE , mapname,0 );if (r) {condlog (4 ,"multipath map %s removed" , mapname);
@@ -935,7 +939,7 @@ dm_remove_partmaps (const char * mapname)*/ condlog (4 ,"partition map %s removed" , names->name); -dm_simplecmd (DM_DEVICE_REMOVE , names->name); +dm_simplecmd (DM_DEVICE_REMOVE , names->name,0 ); } next = names->next;
libmultipath/devmapper.h +1 -1
@@ -3,7 +3,7 @@void dm_init (void );int dm_prereq (void ); -int dm_simplecmd (int ,const char *); +int dm_simplecmd (int ,const char *,int );int dm_addmap_create (const char *,const char *,unsigned long long size,const char *uuid); int dm_addmap_create_ro (const char *, const char *,
libmultipath/sysfs.h +1 -0
@@ -21,5 +21,6 @@ struct sysfs_device *sysfs_device_get_parent_with_subsystem(struct sysfs_devicevoid sysfs_device_put (struct sysfs_device *dev);char *sysfs_attr_get_value (const char *devpath,const char *attr_name);int sysfs_resolve_link (char *path,size_t size); +int sysfs_get_size (struct sysfs_device * dev,unsigned long long * size);#endif
multipathd/cli.c +2 -0
@@ -155,6 +155,7 @@ load_keys (void) r +=add_key (keys,"resume" ,RESUME ,0 ); r +=add_key (keys,"reinstate" ,REINSTATE ,0 ); r +=add_key (keys,"fail" ,FAIL ,0 ); + r +=add_key (keys,"resize" ,RESIZE ,0 ); r +=add_key (keys,"paths" ,PATHS ,0 ); r +=add_key (keys,"maps" ,MAPS ,0 ); r +=add_key (keys,"multipaths" ,MAPS ,0 );
@@ -429,6 +430,7 @@ cli_init (void) {add_handler (RECONFIGURE ,NULL );add_handler (SUSPEND +MAP ,NULL );add_handler (RESUME +MAP ,NULL ); +add_handler (RESIZE +MAP ,NULL );add_handler (REINSTATE +PATH ,NULL );add_handler (FAIL +PATH ,NULL );add_handler (QUIT ,NULL );
multipathd/cli.h +2 -0
@@ -7,6 +7,7 @@ enum { __RESUME, __REINSTATE, __FAIL, + __RESIZE, __PATHS, __MAPS, __PATH,
@@ -32,6 +33,7 @@ enum {#define RESUME (1 << __RESUME)#define REINSTATE (1 << __REINSTATE)#define FAIL (1 << __FAIL) +#define RESIZE (1 << __RESIZE)#define PATHS (1 << __PATHS)#define MAPS (1 << __MAPS)#define PATH (1 << __PATH)
multipathd/cli_handlers.c +117 -49
268 lines not on this page · raw message
multipathd/cli_handlers.h +1 -0
@@ -17,6 +17,7 @@ int cli_add_map (void * v, char ** reply, int * len, void * data);int cli_del_map (void * v,char ** reply,int * len,void * data);int cli_switch_group (void * v,char ** reply,int * len,void * data);int cli_reconfigure (void * v,char ** reply,int * len,void * data); +int cli_resize (void * v,char ** reply,int * len,void * data);int cli_suspend (void * v,char ** reply,int * len,void * data);int cli_resume (void * v,char ** reply,int * len,void * data);int cli_reinstate (void * v,char ** reply,int * len,void * data);
multipathd/main.c +2 -1
@@ -147,7 +147,7 @@ coalesce_maps(struct vectors *vecs, vector nmpv)return 0 ; } -static void +void sync_map_state (struct multipath *mpp) {struct pathgroup *pgp;
@@ -722,6 +722,7 @@ uxlsnrloop (void * ap)set_handler_callback (RECONFIGURE , cli_reconfigure);set_handler_callback (SUSPEND +MAP , cli_suspend);set_handler_callback (RESUME +MAP , cli_resume); +set_handler_callback (RESIZE +MAP , cli_resize);set_handler_callback (REINSTATE +PATH , cli_reinstate);set_handler_callback (FAIL +PATH , cli_fail);set_handler_callback (QUIT , cli_quit);
multipathd/main.h +1 -0
@@ -8,5 +8,6 @@ int ev_add_path (char *, struct vectors *);int ev_remove_path (char *,struct vectors *);int ev_add_map (struct sysfs_device *,struct vectors *);int ev_remove_map (char *,struct vectors *); +void sync_map_state (struct multipath *);#endif /* MAIN_H */
Signature · 1 line
1.5.4.1
Quoted 22 lines · Konrad Rzeszutek
Quoted 21 lines · Andy
Quoted 19 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.
Quoted 8 lines
Quoted 3 lines
What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed,
Benjamin posted a CVS patch of this, that I've forward-ported to work with the latest git. It is attached.
Thanks, I must have missed that post. Unfortantly, I am having problems with multipathd in the latest git. It fails all my paths and hangs. It I go into the interactive mode, it even hangs just asking for help. The multipath program itself shows the paths without a problem.
Andy
Quoted 27 lines · Andy
Quoted 26 lines · Konrad Rzeszutek
Quoted 24 lines · Andy
Quoted 11 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Quoted 8 lines
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed,
Quoted 7 lines
Quoted 4 lines
Benjamin posted a CVS patch of this, that I've forward-ported to work with the latest git. It is attached.
Thanks, I must have missed that post. Unfortantly, I am having problems with multipathd in the latest git. It fails all my paths and hangs. It I go
Ugh. That doesn't bode well. Try running it with 'strace' to see if it is hanging on the ioctl or what not.
Quoted 33 lines · Konrad Rzeszutek
Quoted 32 lines · Andy
Quoted 30 lines · Konrad Rzeszutek
Quoted 21 lines · Andy
Quoted 11 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Quoted 8 lines
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.Quoted 3 lines
What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed,
Benjamin posted a CVS patch of this, that I've forward-ported to work with the latest git. It is attached.
Quoted 6 lines
Quoted 2 lines
Thanks, I must have missed that post. Unfortantly, I am having problems with multipathd in the latest git. It fails all my paths and hangs. It I go
Ugh. That doesn't bode well. Try running it with 'strace' to see if it is hanging on the ioctl or what not.
The multipathd process is just sitting there polling, but I don't think it gets to a point where it can handle requests from an interactive version of itself.
I do see detecting or failing the paths in the log:
Apr 02 16:24:01 | sdc: ownership set to test1_vm1 Apr 02 16:24:01 | sdc: not found in pathvec Apr 02 16:24:01 | sdc: mask = 0xc Apr 02 16:24:01 | sdc: path checker = directio (controller setting) Apr 02 16:24:01 | sdc: state = running Apr 02 16:24:01 | directio: starting new request Apr 02 16:24:01 | directio: async io getevents returns -14 (errno=No such file or directory) Apr 02 16:24:01 | directio: abort check on timeout Apr 02 16:24:01 | sdc: state = 2 Apr 02 16:24:01 | sdc: checker msg is "directio checker reports path is down" Apr 02 16:24:01 | sde: ownership set to test1_vm1 Apr 02 16:24:01 | sde: not found in pathvec Apr 02 16:24:01 | sde: mask = 0xc Apr 02 16:24:01 | sde: path checker = directio (controller setting) Apr 02 16:24:01 | sde: state = running Apr 02 16:24:01 | directio: starting new request Apr 02 16:24:01 | directio: async io getevents returns -14 (errno=No such file or directory) Apr 02 16:24:01 | directio: abort check on timeout Apr 02 16:24:01 | sde: state = 2 Apr 02 16:24:01 | sde: checker msg is "directio checker reports path is down" Apr 02 16:24:01 | test1_vm1: pgfailover = -1 (internal default) Apr 02 16:24:01 | test1_vm1: pgpolicy = multibus (LUN setting) Apr 02 16:24:01 | test1_vm1: selector = round-robin 0 (LUN setting) Apr 02 16:24:01 | test1_vm1: features = 0 (controller setting) Apr 02 16:24:01 | test1_vm1: hwhandler = 0 (controller setting) Apr 02 16:24:01 | test1_vm1: rr_weight = 1 (controller setting) Apr 02 16:24:01 | test1_vm1: minio = 1 (LUN setting) Apr 02 16:24:01 | test1_vm1: no_path_retry = NONE (internal default) Apr 02 16:24:01 | pg_timeout = NONE (internal default) Apr 02 16:24:01 | test1_vm1: set ACT_NOTHING (no usable path) Apr 02 16:24:01 | sdb: ownership set to u01_vm1 Apr 02 16:24:01 | sdb: not found in pathvec Apr 02 16:24:01 | sdb: mask = 0xc Apr 02 16:24:01 | sdb: path checker = directio (controller setting) Apr 02 16:24:01 | sdb: state = running Apr 02 16:24:01 | directio: starting new request Apr 02 16:24:01 | directio: async io getevents returns -14 (errno=No such file or directory) Apr 02 16:24:01 | directio: abort check on timeout Apr 02 16:24:01 | sdb: state = 2 Apr 02 16:24:01 | sdb: checker
Other than that, I did not see anything significant in the strace or the debugging messages.
Andy
I can reproduce Andy's multipathd behaviour with scsi_debug (symmetrix arrays too)... only with the upstream directio checker. My guess is that the async code in there misbehaves. Needs review.
----- Mail Original -----
De: "Andy" <[email protected]>
À: "device-mapper development" <[email protected]>
Envoyé: Jeudi 2 Avril 2009 23h50:08 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [dm-devel] Device Mapper MultiPath
Quoted 33 lines · Konrad Rzeszutek
Quoted 32 lines · Andy
Quoted 30 lines · Konrad Rzeszutek
Quoted 21 lines · Andy
Quoted 11 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Quoted 8 lines
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.Quoted 3 lines
What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed,
Benjamin posted a CVS patch of this, that I've forward-ported to work with the latest git. It is attached.
Quoted 6 lines
Quoted 2 lines
Thanks, I must have missed that post. Unfortantly, I am having problems with multipathd in the latest git. It fails all my paths and hangs. It I go
Ugh. That doesn't bode well. Try running it with 'strace' to see if it is hanging on the ioctl or what not.
The multipathd process is just sitting there polling, but I don't think it gets to a point where it can handle requests from an interactive version of itself.
I do see detecting or failing the paths in the log:
Apr 02 16:24:01 | sdc: ownership set to test1_vm1 Apr 02 16:24:01 | sdc: not found in pathvec Apr 02 16:24:01 | sdc: mask = 0xc Apr 02 16:24:01 | sdc: path checker = directio (controller setting) Apr 02 16:24:01 | sdc: state = running Apr 02 16:24:01 | directio: starting new request Apr 02 16:24:01 | directio: async io getevents returns -14 (errno=No such file or directory) Apr 02 16:24:01 | directio: abort check on timeout Apr 02 16:24:01 | sdc: state = 2 Apr 02 16:24:01 | sdc: checker msg is "directio checker reports path is down" Apr 02 16:24:01 | sde: ownership set to test1_vm1 Apr 02 16:24:01 | sde: not found in pathvec Apr 02 16:24:01 | sde: mask = 0xc Apr 02 16:24:01 | sde: path checker = directio (controller setting) Apr 02 16:24:01 | sde: state = running Apr 02 16:24:01 | directio: starting new request Apr 02 16:24:01 | directio: async io getevents returns -14 (errno=No such file or directory) Apr 02 16:24:01 | directio: abort check on timeout Apr 02 16:24:01 | sde: state = 2 Apr 02 16:24:01 | sde: checker msg is "directio checker reports path is down" Apr 02 16:24:01 | test1_vm1: pgfailover = -1 (internal default) Apr 02 16:24:01 | test1_vm1: pgpolicy = multibus (LUN setting) Apr 02 16:24:01 | test1_vm1: selector = round-robin 0 (LUN setting) Apr 02 16:24:01 | test1_vm1: features = 0 (controller setting) Apr 02 16:24:01 | test1_vm1: hwhandler = 0 (controller setting) Apr 02 16:24:01 | test1_vm1: rr_weight = 1 (controller setting) Apr 02 16:24:01 | test1_vm1: minio = 1 (LUN setting) Apr 02 16:24:01 | test1_vm1: no_path_retry = NONE (internal default) Apr 02 16:24:01 | pg_timeout = NONE (internal default) Apr 02 16:24:01 | test1_vm1: set ACT_NOTHING (no usable path) Apr 02 16:24:01 | sdb: ownership set to u01_vm1 Apr 02 16:24:01 | sdb: not found in pathvec Apr 02 16:24:01 | sdb: mask = 0xc Apr 02 16:24:01 | sdb: path checker = directio (controller setting) Apr 02 16:24:01 | sdb: state = running Apr 02 16:24:01 | directio: starting new request Apr 02 16:24:01 | directio: async io getevents returns -14 (errno=No such file or directory) Apr 02 16:24:01 | directio: abort check on timeout Apr 02 16:24:01 | sdb: state = 2 Apr 02 16:24:01 | sdb: checker
Other than that, I did not see anything significant in the strace or the debugging messages.
Andy
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Quoted 1 line · On Thu, Apr 02, 2009 at 11:58:03PM +0200, [email protected] wrote:
I can reproduce Andy's multipathd behaviour with
scsi_debug(symmetrix arrays too)... only with the upstream directio checker. My guess is that the async code in there misbehaves. Needs review.
I saw this behavior as well on RHEL5U3 with the upstream multipath. My fix was to replace all of the libaio calls with syscalls, as I attributed the issue to libaio != kernel libaio, and left it at that.
Andy, are you using a recent version of libaio and kernel? Like Fedora Core 10?
Quoted 109 lines
----- Mail Original -----
De: "Andy" <[email protected]>
À: "device-mapper development" <[email protected]>
Envoyé: Jeudi 2 Avril 2009 23h50:08 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [dm-devel] Device Mapper MultiPathQuoted 33 lines · Konrad Rzeszutek
Quoted 32 lines · Andy
Quoted 30 lines · Konrad Rzeszutek
Quoted 21 lines · Andy
Quoted 11 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Quoted 8 lines
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.Quoted 3 lines
What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed,
Benjamin posted a CVS patch of this, that I've forward-ported to work with the latest git. It is attached.
Quoted 6 lines
Quoted 2 lines
Thanks, I must have missed that post. Unfortantly, I am having problems with multipathd in the latest git. It fails all my paths and hangs. It I go
Ugh. That doesn't bode well. Try running it with 'strace' to see if it is hanging on the ioctl or what not.
The multipathd process is just sitting there polling, but I don't think it gets to a point where it can handle requests from an interactive version of itself.
I do see detecting or failing the paths in the log:
Apr 02 16:24:01 | sdc: ownership set to test1_vm1 Apr 02 16:24:01 | sdc: not found in pathvec Apr 02 16:24:01 | sdc: mask = 0xc Apr 02 16:24:01 | sdc: path checker = directio (controller setting) Apr 02 16:24:01 | sdc: state = running Apr 02 16:24:01 | directio: starting new request Apr 02 16:24:01 | directio: async io getevents returns -14 (errno=No such file or directory) Apr 02 16:24:01 | directio: abort check on timeout Apr 02 16:24:01 | sdc: state = 2 Apr 02 16:24:01 | sdc: checker msg is "directio checker reports path is down" Apr 02 16:24:01 | sde: ownership set to test1_vm1 Apr 02 16:24:01 | sde: not found in pathvec Apr 02 16:24:01 | sde: mask = 0xc Apr 02 16:24:01 | sde: path checker = directio (controller setting) Apr 02 16:24:01 | sde: state = running Apr 02 16:24:01 | directio: starting new request Apr 02 16:24:01 | directio: async io getevents returns -14 (errno=No such file or directory) Apr 02 16:24:01 | directio: abort check on timeout Apr 02 16:24:01 | sde: state = 2 Apr 02 16:24:01 | sde: checker msg is "directio checker reports path is down" Apr 02 16:24:01 | test1_vm1: pgfailover = -1 (internal default) Apr 02 16:24:01 | test1_vm1: pgpolicy = multibus (LUN setting) Apr 02 16:24:01 | test1_vm1: selector = round-robin 0 (LUN setting) Apr 02 16:24:01 | test1_vm1: features = 0 (controller setting) Apr 02 16:24:01 | test1_vm1: hwhandler = 0 (controller setting) Apr 02 16:24:01 | test1_vm1: rr_weight = 1 (controller setting) Apr 02 16:24:01 | test1_vm1: minio = 1 (LUN setting) Apr 02 16:24:01 | test1_vm1: no_path_retry = NONE (internal default) Apr 02 16:24:01 | pg_timeout = NONE (internal default) Apr 02 16:24:01 | test1_vm1: set ACT_NOTHING (no usable path) Apr 02 16:24:01 | sdb: ownership set to u01_vm1 Apr 02 16:24:01 | sdb: not found in pathvec Apr 02 16:24:01 | sdb: mask = 0xc Apr 02 16:24:01 | sdb: path checker = directio (controller setting) Apr 02 16:24:01 | sdb: state = running Apr 02 16:24:01 | directio: starting new request Apr 02 16:24:01 | directio: async io getevents returns -14 (errno=No such file or directory) Apr 02 16:24:01 | directio: abort check on timeout Apr 02 16:24:01 | sdb: state = 2 Apr 02 16:24:01 | sdb: checkerOther than that, I did not see anything significant in the strace or the debugging messages.
Andy
--
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
Quoted 10 lines · Konrad Rzeszutek
Quoted 1 line · On Thu, Apr 02, 2009 at 11:58:03PM +0200, [email protected] wrote:
I can reproduce Andy's multipathd behaviour with
scsi_debug(symmetrix arrays too)... only with the upstream directio checker. My guess is that the async code in there misbehaves. Needs review.I saw this behavior as well on RHEL5U3 with the upstream multipath. My fix was to replace all of the libaio calls with syscalls, as I attributed the issue to libaio != kernel libaio, and left it at that.
Andy, are you using a recent version of libaio and kernel? Like Fedora Core 10?
Quoted 1 line
My test system is debian. It has libio 0.3.107-3 installed, and I am using Linus's .git kernel from a few days ago.
Andy
Benjamin Marzinski
maintainerQuoted 32 lines · Andy
Quoted 22 lines · Konrad Rzeszutek
Quoted 21 lines · Andy
Quoted 19 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.Quoted 8 lines
Quoted 3 lines
What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed,
Benjamin posted a CVS patch of this, that I've forward-ported to work with the latest git. It is attached.
Quoted 4 lines
Thanks, I must have missed that post. Unfortantly, I am having problems with multipathd in the latest git. It fails all my paths and hangs. It I go into the interactive mode, it even hangs just asking for help. The multipath program itself shows the paths without a problem.
Try the patch I just posted. [Fix a multipathd signal deadlock.] and see if that fixes it.
Quoted 7 lines
Andy
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Quoted 33 lines · Benjamin Marzinski
Quoted 32 lines · Andy
Quoted 30 lines · Konrad Rzeszutek
Quoted 21 lines · Andy
Quoted 11 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Quoted 8 lines
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.Quoted 3 lines
What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed,
Benjamin posted a CVS patch of this, that I've forward-ported to work with the latest git. It is attached.
Quoted 8 lines
Quoted 4 lines
Thanks, I must have missed that post. Unfortantly, I am having problems with multipathd in the latest git. It fails all my paths and hangs. It I go into the interactive mode, it even hangs just asking for help. The multipath program itself shows the paths without a problem.
Try the patch I just posted. [Fix a multipathd signal deadlock.] and see if that fixes it.
The patch did not fix the problem.
Andy
Benjamin Marzinski
maintainerQuoted 39 lines · Andy
Quoted 38 lines · Benjamin Marzinski
Quoted 36 lines · Andy
Quoted 22 lines · Konrad Rzeszutek
Quoted 21 lines · Andy
Quoted 19 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.Quoted 8 lines
Quoted 3 lines
What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed,
Benjamin posted a CVS patch of this, that I've forward-ported to work with the latest git. It is attached.
Thanks, I must have missed that post. Unfortantly, I am having problems with multipathd in the latest git. It fails all my paths and hangs. It I go into the interactive mode, it even hangs just asking for help. The multipath program itself shows the paths without a problem.
Quoted 5 lines
Quoted 3 lines
Try the patch I just posted. [Fix a multipathd signal deadlock.] and see if that fixes it.
The patch did not fix the problem.
Can you try the "Clean up multipath linking" patch? It actually fixes a problem with the directio checker and aio, so it's not so much a shot in the dark as the last patch I asked you to try.
-Ben
Quoted 7 lines
Andy
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
[email protected]
Appliedapplied
minor fix to a condlog() missing arg in a subsequent commit
Thanks for the port.
----- Mail Original -----
De: "Konrad Rzeszutek" <[email protected]>
À: "device-mapper development" <[email protected]>
Envoyé: Mercredi 1 Avril 2009 22h31:08 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne
Objet: Re: [dm-devel] Device Mapper MultiPath
Quoted 21 lines · Andy
Quoted 11 lines · Konrad Rzeszutek
Quoted 5 lines · Rodrigo Nascimento
Hi All,
I'm a student of computer sciences and I'd like to collaborate with the development of the DM-MP.
I know that maybe you received this kind of message during all time, but II think you are the first :-)
Quoted 1 line
really want to help, with anything.
Quoted 8 lines
Shakedown help would be nice. As in, trying to yank stuff underneath it, add new block disks, remove them, add them, remove them, edit the multipath.conf file and issue 'reconfigure', resize the maps, then add 1000+LUNs, and while they are being added, start removing the LUNs, then for extra fun call 'dmsetup
remove_all' while in another thread you run 'multipath'. Ooh, and see if there are any memory leaks while this all is being done.
Quoted 3 lines
What I would really like to see is online resizing of non-partitioned dm block devices. I would love to be able to resize an underlying dm-mp block device, and the just grow the filesystem without using a extra, un-needed,
Benjamin posted a CVS patch of this, that I've forward-ported to work with the latest git. It is attached.
Quoted 9 lines
volume manager layer. I remember some of this being talk about a while ago, but I don't think anything ever happened.
Andy
--
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