[ENBD] Re: Enhanced NBD daemon on 2.4.3 kernel

Peter T. Breuer ptb@it.uc3m.es
Wed, 18 Apr 2001 19:38:54 +0200 (MET DST)


Sorry .. forgot to answer the question.

"A month of sundays ago Jason A. Pattie wrote:"
> nbd-cstatd and nbd-sstatd are installed, 

What do they do? Maintain connections across reboots.

Cstatd sends a SIGPWR to the client when the server is restarted.

The server will ping the  nbd-cstatd port on the client with details
of who it is, and the cstatd will go look up whether or not it has a
client supposedly connected to that server, and will either send
it SIGPWR if it's alive, or restart it if it's not. SIGPWR is nearly
the same as a stop/start for the client: it goes through a fresh
negotiation with the server, but without relaxing its hold on the
kernel device.

Sstatd removes the client from the servers database when the client is
stopped. It works in the same kind of way. The client signals it
when it dies, if it can.

You need /var/state/nbd for the server to maintain its list of clients
that it should tælk to when it's restarted.

You also need /etc/nbd.conf, for both sever and client to know who they
should be talking to. /etc/init.d/nbd looks at this when it runs.

These files are inside nbd/etc/ in the distro. Make install will
currently install them using a fair amount of force.

Peter