[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Nbd] Reconnect after server failure



On Mon, Feb 26, 2007 at 08:54:54AM +0100, Georg Wassen wrote:
> Hi all,
> 
> I'm wondering how to handle server disconnects, eg. when having a RAID
> on NBD connected devices. After one of the servers reboots, the module
> can't reconnect by itself, because it knows only the socket-handle,
> not the server's hostname and port. 
> A solution could be a kind of heartbeat that detects server failures
> and reconnects after they're up again.

That's one way. Another may be the "-persist" option in recent
nbd-clients, which automatically reconnects the device upon connection
loss. I've talked to the kernel maintainer for some possibility to have
the kernel block reads to the device when it's not connected but the
nbd-client that had connected is still running, but that still needs to
happen.

-- 
<Lo-lan-do> Home is where you have to wash the dishes.
  -- #debian-devel, Freenode, 2004-09-22



Reply to: