Missing RDAC patch
A message that is not in the archive (sent off-list or not yet received): CABr-GncgE=O+XAFENX8fkg9ofa2crk27UuKVTTHKhfwku4k_ow@mail.gmail.com
cover Missing RDAC patch
Hi Cristophe,
I'm sending this on Hannes' behalf now. Sorry we didn't make it for 0.7.0.
Regards,
Martin
Hannes Reinecke (1):
libmultipath/propsel: Do not select sysfs prioritizer for RDAC arrays
libmultipath/discovery.c | 2 +- libmultipath/discovery.h | 1 + libmultipath/propsel.c | 24 ++++++++++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-)
Signature · 1 line
2.12.2
PATCH 1/1 libmultipath/propsel: Do not select sysfs prioritizer for RDAC arrays
From: Hannes Reinecke <[email protected]>
Recent RDAC (NetApp E-Series) firmware implemented an internal load balancer and switched to implicit ALUA.
Unfortunately the load balancer relies on periodic REPORT TARGET PORT GROUPS from the host, so we cannot use the sysfs prioritizer here.
References: bsc#1004858
--- libmultipath/discovery.c | 2 +- libmultipath/discovery.h | 1 + libmultipath/propsel.c | 24 ++++++++++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-)
libmultipath/discovery.c +1 -1
@@ -1092,7 +1092,7 @@ get_vpd_sysfs (struct udev_device *parent, int pg, char * str, int maxlen)return len; } -static int +int get_vpd_sgio (int fd,int pg,char * str,int maxlen) {int len, buff_len;
libmultipath/discovery.h +1 -0
@@ -35,6 +35,7 @@ int path_discovery (vector pathvec, int flag);int do_tur (char *);int path_offline (struct path *);int get_state (struct path * pp,struct config * conf,int daemon); +int get_vpd_sgio (int fd,int pg,char * str,int maxlen);int pathinfo (struct path * pp,struct config * conf,int mask);int alloc_path_with_pathinfo (struct config *conf,struct udev_device *udevice,char *wwid,int flag,struct path **pp_ptr);
libmultipath/propsel.c +22 -2
@@ -370,6 +370,24 @@ out:return 0 ; } +/* +* Current RDAC (NetApp E-Series) firmware relies +* on periodic REPORT TARGET PORT GROUPS for +* internal load balancing. +* Using the sysfs priority checker defeats this purpose. +*/ +static int +check_rdac (struct path * pp) +{ +int len; +char buff[44 ]; + + len =get_vpd_sgio (pp->fd,0xC9 , buff,44 ); +if (len <=0 ) +return 0 ; +return !(memcmp (buff +4 ,"vac1" ,4 )); +} +void detect_prio (struct config *conf,struct path * pp) {
@@ -379,8 +397,10 @@ detect_prio(struct config *conf, struct path * pp)if (pp->tpgs <=0 )return ; -if (sysfs_get_asymmetric_access_state (pp, buff,512 ) >=0 ) - default_prio =PRIO_SYSFS ; +if (pp->tpgs ==2 && !check_rdac (pp)) { +if (sysfs_get_asymmetric_access_state (pp, buff,512 ) >=0 ) + default_prio =PRIO_SYSFS ; + }prio_get (conf->multipath_dir, p, default_prio,DEFAULT_PRIO_ARGS ); }
Signature · 1 line
2.12.2
Re: [PATCH 1/1] libmultipath/propsel: Do not select sysfs prioritizer for RDAC arrays
I know it just got merged, but
Quoted 97 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Wilck
Sent: Thursday, April 13, 2017 10:40 AM
To: Christophe Varoqui <[email protected]>
Cc: Martin Wilck <[email protected]>; [email protected]; Xose Vazquez Perez <[email protected]>
Subject: [dm-devel] [PATCH 1/1] libmultipath/propsel: Do not select sysfs prioritizer for RDAC arraysFrom: Hannes Reinecke <[email protected]>
Recent RDAC (NetApp E-Series) firmware implemented an internal load balancer and switched to implicit ALUA.
Unfortunately the load balancer relies on periodic REPORT TARGET PORT GROUPS from the host, so we cannot use the sysfs prioritizer here.References: bsc#1004858
Signed-off-by Hannes Reinecke <[email protected]>--- libmultipath/discovery.c | 2 +- libmultipath/discovery.h | 1 + libmultipath/propsel.c | 24 ++++++++++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-)libmultipath/discovery.c +1
-1@@ -1092,7 +1092,7 @@ get_vpd_sysfs (struct udev_device *parent, int pg, char * str, int maxlen)return len; } -static int +int get_vpd_sgio (int fd,int pg,char * str,int maxlen) {int len, buff_len;libmultipath/discovery.h +1
-0@@ -35,6 +35,7 @@ int path_discovery (vector pathvec, int flag);int do_tur (char *);int path_offline (struct path *);int get_state (struct path * pp,struct config * conf,int daemon); +int get_vpd_sgio (int fd,int pg,char * str,int maxlen);int pathinfo (struct path * pp,struct config * conf,int mask);int alloc_path_with_pathinfo (struct config *conf,struct udev_device *udevice,char *wwid,int flag,struct path **pp_ptr);libmultipath/propsel.c +22
-3@@ -370,6 +370,24 @@ out:return 0 ; } +/* +* Current RDAC (NetApp E-Series) firmware relies +* on periodic REPORT TARGET PORT GROUPS for +* internal load balancing. +* Using the sysfs priority checker defeats this purpose. +*/ +static int +check_rdac (struct path * pp) +{ +int len; +char buff[44 ]; + + len =get_vpd_sgio (pp->fd,0xC9 , buff,44 ); +if (len <=0 ) +return 0 ; +return !(memcmp (buff +4 ,"vac1" ,4 )); +} +void detect_prio (struct config *conf,struct path * pp) {@@ -379,8 +397,10 @@ detect_prio(struct config *conf, struct path * pp)if (pp->tpgs <=0 )return ; -if (sysfs_get_asymmetric_access_state (pp, buff,512 ) >=0 ) - default_prio =PRIO_SYSFS ; +if (pp->tpgs ==2 && !check_rdac (pp)) { +if (sysfs_get_asymmetric_access_state (pp, buff,512 ) >=0 ) + default_prio =PRIO_SYSFS ; + }prio_get (conf->multipath_dir, p, default_prio,DEFAULT_PRIO_ARGS ); } --2.12.2
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Quoted 1 line · Martin Wilck
I'm sending this on Hannes' behalf now. Sorry we didn't make it for 0.7.0.
You're lucky, 0.7.0 release wasn't tagged yet.
Quoted 7 lines
Hannes Reinecke (1):
libmultipath/propsel: Do not select sysfs prioritizer for RDAC arrayslibmultipath/discovery.c | 2 +- libmultipath/discovery.h | 1 + libmultipath/propsel.c | 24 ++++++++++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-)
Merged,
and version bumped to 0.7.1
The tags are now pushed too.
Quoted 15 lines · Xose Vazquez Perez
Quoted 1 line · Martin Wilck
I'm sending this on Hannes' behalf now. Sorry we didn't make it for
0.7.0.
You're lucky, 0.7.0 release wasn't tagged yet.
Quoted 7 lines
Hannes Reinecke (1):
libmultipath/propsel: Do not select sysfs prioritizer for RDAC arrayslibmultipath/discovery.c | 2 +- libmultipath/discovery.h | 1 + libmultipath/propsel.c | 24 ++++++++++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-)