Multipath Daemon API
Jan Dvorak <mordae@anilinux.org>
Library for communication with the multipathd process via it’s UNIX domain socket.
(require multipath-daemon) | package: multipath-daemon |
|
superclass: object% |
constructor
(new multipath-daemon% [[path path]])
→ (is-a?/c multipath-daemon%) path : unix-socket-path? = undefined Create proxy, optionally using a non-default socket path.Queries known device paths.Every path looks approximately like this:
'#hasheq((device . "sda") (major . 8) (minor . 0) (status . running) (uuid . "foobar-3cc708a235e4c035")) Queries known multipath maps (virtual devices diverting I/O to individual paths).Every such map looks approximately like this:
'#hasheq((device . "disk1") (name . "disk1") (uuid . "foobar-3cc708a235e4c035"))
method
(send a-multipath-daemon reconfigure) → boolean?
Ask multipathd to re-read it’s configuration file and reconfigure all multipath maps. Basically equivalent to restarting it.Add path by name or uuid.
method
(send a-multipath-daemon remove-path name) → void?
name : string? Remove path by name or uuid.Add multipath mapping by name or uuid.
method
(send a-multipath-daemon remove-map name) → void?
name : string? Remove multipath mapping by name or uuid.
method
(send a-multipath-daemon suspend-map name) → void?
name : string? Suspend multipath mapping by name or uuid. Suspended maps block on all access and can be safely redefined.
method
(send a-multipath-daemon resume-map name) → void?
name : string? Resume previously suspended multipath map.
method
(send a-multipath-daemon resize-map name) → void?
name : string? Ask the daemon to re-detect size of mapping paths and resize the mapping accordingly.Reset multipath mapping by name or uuid.
method
(send a-multipath-daemon reload-map name) → void?
name : string? Reload multipath mapping by name or uuid.Mark path as failed.
method
(send a-multipath-daemon reinstate-path name) → void?
name : string? Mark path as accessible again.
method
(send a-multipath-daemon disable-map-queuing name) → void?
name : string? Disable queuing on a single mapping.
method
(send a-multipath-daemon disable-queuing) → void?
Disable queuing globally.
method
(send a-multipath-daemon restore-map-queuing name) → void?
name : string? Restore queuing on a single mapping.
method
(send a-multipath-daemon restore-queuing) → void?
Restore queuing globally.