[dm-devel] StorageWorks multipath support
christophe varoqui
christophe.varoqui at free.fr
Sat Jun 18 17:35:12 UTC 2005
On mer, 2005-06-15 at 15:20 +0100, Alasdair G Kergon wrote:
> On Wed, Jun 15, 2005 at 04:07:40PM +0200, christophe varoqui wrote:
> > Can you elaborate on what you have in mind ?
>
> Listen on a socket in the filesystem? [cf. what screen does]
> And have a separate helper program that sends messages down it
> similar to the uevent messages.
>
Would the following do what you want ?
The client is wrapped in the daemon.
You can call it through :
- multipathd -k"$cmd" : one shot
- multipathd -k : interactive
The synthax is somewhat rude :/
- lp : list paths
- lm : list maps
- ap $path : add path checker, $path is in the "sdb" form
- rp $path : remove path checker
- am $map : add map event thread, $map is in the "dm-0" form
- rm $map : remove map event thread
For your pleasure, here is a sample session ...
xa-s05:~/scm/test/multipathd# ./multipathd -k
lp
sdc: state 2, 2/ 28 XX..........................
sde: state 2, 2/ 28 XX..........................
sdb: state 2, 9/ 28 XXXXXXXXX...................
sdd: state 2, 27/ 28 XXXXXXXXXXXXXXXXXXXXXXXXXXX.
rp sdd
ok
lp
sdc: state 2, 18/ 28 XXXXXXXXXXXXXXXXXX..........
sde: state 2, 18/ 28 XXXXXXXXXXXXXXXXXX..........
sdb: state 2, 25/ 28 XXXXXXXXXXXXXXXXXXXXXXXXX...
ap sdd
ok
lp
sdc: state 2, 12/ 28 XXXXXXXXXXXX................
sde: state 2, 12/ 28 XXXXXXXXXXXX................
sdb: state 2, 19/ 28 XXXXXXXXXXXXXXXXXXX.........
sdd: state 2, 7/ 7 XXXXXXX
Let me know if I should commit this as a foundation.
Regards,
--
christophe varoqui <christophe.varoqui at free.fr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uxsock.patch
Type: text/x-patch
Size: 12363 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20050618/90f80308/attachment.bin>
More information about the dm-devel
mailing list