Manpages

NAME

enbd-cstatd − ENBD client state daemon

SYNOPSIS

enbd-cstatd

DESCRIPTION

The enbd-cstatd is a daemon that runs under inetd(8) and helps maintain the local enbd-client(8) daemons in the proper state. It understands a limited repertoire of commands on stdin and is used by a remote enbd-server(8) when it needs to notify a local enbd-client of a server reboot.

The details of the permament client-server connections maintained by the daemon need to be configured in /etc/enbd.conf (see enbd.conf(5)).

PROTOCOL

The client understands the following commands, each terminated by a newline. The number of spaces is not important.

quit terminates the command sequence.

help [subject] lists the commands available.

notice server-start <port> <ipaddr> [ipaddr ...] is the message sent by the remote server when it comes up again after a reboot. The addresses given are those of the servers interfaces. The server tries to suppress those addresses which cannot be routed to the client (such as 127.*.*.*, when the client is not also the server), but there is a possibility of address collision.

NOTES

Add the following line to /etc/services (see services(5)):

enbd-cstatd 5051/tcp # ENBD statd (client side)

and the following line to /etc/inetd.conf (see inetd.conf(5)) enbd-cstatd stream tcp nowait root /usr/sbin/enbd-cstatd enbd-cstatd

adjusting both to match local requirements.

BUGS

As indicated above, if the client machine runs two clients, one to an intranet server and the other to an extranet server, and the extranet server has a similar address on a separate intranet, then the enbd-cstatd may confuse the commands from the two servers and direct them inappropriately.

FILES

The daemon looks in /etc/enbd.conf for the identifier ID of the enbd-client that should be connected to the IP address and port that the enbd-server informs it of. It looks in /var/run/nbd-client-ID.pid for the process number of the corresponding client.

SEE ALSO

enbd-client(8), enbd-server(8), enbd.conf(5), enbd-sstatd(8).

AUTHORS

Peter Breuer wrote the enbd-cstatd for enbd-2.4.25.