chiark / gitweb /
[PATCH] extras multipath update
authorchristophe.varoqui@free.fr <christophe.varoqui@free.fr>
Wed, 31 Dec 2003 06:36:17 +0000 (22:36 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:12 +0000 (21:13 -0700)
2003-12-29 multipath-012
        * refresh doc
        * add the uninstall target in Makefile
        * /sbin/multipath, not /root/multipath in hotplug agent

extras/multipath/ChangeLog
extras/multipath/Makefile
extras/multipath/README
extras/multipath/multipath.hotplug

index 730d6e34a6f74b1eb7a97421d615690213c48772..9296b4db6844111544b6266393cc3c444edbde62 100644 (file)
@@ -1,3 +1,6 @@
+2003-12-29 multipath-012
+       * refresh doc
+       * add the uninstall target in Makefile
 2003-12-22 multipath-010
        * tweak the install target in Makefile
        * stop passing fds as argument : this change enable a strict
index 99036a6a00c2620f39f1514e2be3ec69b344baa5..3f13532e163510270f5bc2e98efcfce6e7581389 100644 (file)
@@ -55,5 +55,9 @@ install:
        install -d /etc/hotplug.d/scsi/
        install -m 755 multipath.hotplug /etc/hotplug.d/scsi/
 
+uninstall:
+       rm /etc/hotplug.d/scsi/multipath.hotplug
+       rm $(bindir)/$(EXEC)
+
 # Code dependencies
 main.o: main.c main.h sg_include.h
index 6a5637de4bbf78501e7da06cfa4cb7cea3aea5a6..951c2788bc8f75aeb9fbcd439f338a58161793fc 100644 (file)
@@ -3,6 +3,7 @@ Dependancies :
 
 o libdevmapper : comes with device-mapper-XXXX.tar.gz
   See www.sistina.com
+  This lib has been dropped in the multipath tree
 o libsysfs : comes with sysutils
   See ftp.kernel.org/pub/linux/utils/kernel/hotplug/
 
@@ -34,8 +35,9 @@ In 2.5+, we rely on libsysfs (sysutils) to access to
 sysfs device enums.
 
 the wwid is retrieved by a switch fonction. Only White
-Listed HW can filled this field. For now only 
-StorageWorks HW is White Listed. (See notes)
+Listed HW can filled this field. For now every FC array 
+HW listed in kernel's devinfo.c is White Listed, assuming
+the WWID is stored is the SCSI-3 standard 0x83 EVPD page.
 
 When all_paths is filled, we coalesce the paths and store
 the result in mp array. Each mp is a struct like this :
@@ -47,25 +49,21 @@ struct multipath {
 };
 
 When mp is filled, the device maps are fed to the kernel
-through libdevmapper. Stale paths (failed TUR) are 
-discarded.
+through libdevmapper.
 
 Notes :
 =======
 
-o make sure you have enough /dev/sg* nodes
-  (/dev/MAKEDEV if necesary)
+o On 2.4, make sure you have enough /dev/sg* nodes
+  (/dev/MAKEDEV if necesary). Same goes for /dev/sd*
 
 o path coalescing relies on a path unique id being found.
   This unique id, lacking a standard method, is vendor
   specific. A switch function (get_unique_id) is present
   and an example function is provided for storageworks
-  arrays (get_storageworks_wwid). Feel free to enrich
+  arrays (get_evpd_wwid). Feel free to enrich
   with hardware you have at hand :)
 
-o Something goes wrong with sd.o, qla2200 & dm-mod
-  refcounting : I can't unload these modules after exec.
-
 o The kernel does NOT manage properly ghosts paths
   with StorageWorks HW. Seems nobody cares after a load
   of posts to linux-scsi.
index db7894cb99e7337ce53922060b4132b359a14976..8d60f4d2c6ebbd5e0b3ac4b973b05b0bc053487c 100644 (file)
@@ -1,3 +1,3 @@
 . /etc/hotplug/hotplug.functions
 sleep 1
-mesg `/root/multipath scsi $DEVPATH`
+mesg `/sbin/multipath scsi $DEVPATH`