On Mon, Sep 03, 2012 at 04:24:35AM -0000, Alkis Georgopoulos wrote:
> Another idea would be for the nbd-client initscript to notify the server that 
> it's about to shutdown.
> So the server would do a "delayed disconnect" after e.g. 20 seconds, long 
> enough for the client to get a chance to shutdown properly without unmounting 
> its NBD root file system.
> 
> Wouter, would you accept a patch in this direction?

No. That's ugly; if your client then unexpectedly hangs on something,
it'll get its root filesystem yanked from under it while it's waiting,
and will then never power off.

Instead, I suggest you look into having the kernel send out NBD_CMD_DISC
on its own at poweroff. I'm sure Paul will accept such a patch.

-- 
The volume of a pizza of thickness a and radius z can be described by
the following formula:

pi zz a

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/696454

Title:
  NBD booted clients don't close the connection on shutdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nbd/+bug/696454/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to