patch to add path priority callout for netapp targets, update hwtable.c
Patch against latest multipath-tools-0.4.6
libmultipath/hwtable.c +3 -1
@@ -28,7 +28,6 @@ setup_default_hwtable (vector hw) r +=store_hwe (hw,"HP" ,"A6189A" ,MULTIBUS ,DEFAULT_GETUID ); r +=store_hwe (hw,"HP" ,"OPEN-" ,MULTIBUS ,DEFAULT_GETUID ); r +=store_hwe (hw,"IBM" ,"ProFibre 4000R" ,MULTIBUS ,DEFAULT_GETUID ); - r +=store_hwe (hw,"NETAPP" ,"LUN" ,MULTIBUS ,DEFAULT_GETUID ); r +=store_hwe (hw,"SGI" ,"TP9100" ,MULTIBUS ,DEFAULT_GETUID ); r +=store_hwe (hw,"SGI" ,"TP9300" ,MULTIBUS ,DEFAULT_GETUID ); r +=store_hwe (hw,"STK" ,"OPENstorage D280" ,GROUP_BY_SERIAL ,DEFAULT_GETUID );
@@ -40,6 +39,9 @@ setup_default_hwtable (vector hw) "1 queue_if_no_path", "emc_clariion", FAILBACK_IMMEDIATE); r +=store_hwe_ext (hw,"IBM" ,"3542" ,GROUP_BY_SERIAL ,DEFAULT_GETUID ,NULL ,"0" ,"0" ,"tur" ,FAILBACK_UNDEF ); + r +=store_hwe_ext (hw,"NETAPP" ,"LUN" ,GROUP_BY_PRIO ,DEFAULT_GETUID , +"/sbin/mpath_prio_netapp /dev/%n" ,NULL , +"1 queue_if_no_path" ,"readsector0" ); r +=store_hwe_ext (hw,"SGI" ,"TP9400" ,MULTIBUS ,DEFAULT_GETUID ,NULL ,"0" ,"0" ,"tur" ,FAILBACK_UNDEF ); r += store_hwe_ext(hw, "SGI", "TP9500", FAILOVER, DEFAULT_GETUID,
path_priority/pp_netapp/Makefile +27 -0
@@ -0,0 +1,27 @@ +EXEC = mpath_prio_netapp +BUILD = glibc +OBJS = pp_netapp.o + +TOPDIR = ../.. +include $(TOPDIR)/Makefile.inc + +CFLAGS = -pipe -g -O2 -Wall -Wunused -Wstrict-prototypes + +all: $(BUILD) + +glibc: $(OBJS) + $(CC) -o $(EXEC) $(OBJS) $(LDFLAGS) + +klibc: $(OBJS) + $(CC) -static -o $(EXEC) $(OBJS) + +install: $(EXEC) + install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC) + +uninstall: + rm $(DESTDIR)$(bindir)/$(EXEC) +clean: + rm -f *.o $(EXEC) + +%.o: %.c + $(CC) $(CFLAGS) -c -o $@ $<
path_priority/pp_netapp/pp_netapp.c +268 -0
268 lines not on this page · raw message
Christophe Varoqui
AppliedQuoted 2 lines · Dave Wysochanski
Patch against latest multipath-tools-0.4.6
Applied, thanks.
Can you update the TestedEnv page on the wiki too ?
Regards,
cvaroqui