Re: [DRBD-user] [PATCH] xen-blkback: Switch to closed state after releasing the backing device
From: Roger Pau MonnÃ
Date: Thu Sep 13 2018 - 11:09:23 EST
On Mon, Sep 10, 2018 at 06:18:31PM +0200, Valentin Vidic wrote:
> On Mon, Sep 10, 2018 at 05:00:58PM +0200, Roger Pau Monné wrote:
> > I can try to take a look at this and attempt to make sure the state is
> > only changed to closed in blkback _after_ the device has been
> > released, but it might take me a couple of days to get you a patch.
>
> Thanks, I have two test nodes now where I can try different approaches.
>
> > I'm afraid that other hotplug scripts will also have issues with such
> > behavior, and we shouldn't force all users of hotplug scripts to add
> > such workarounds.
>
> True, iSCSI and other "network" disks might have similar problems.
So I have the following patch which I think might solve your issues
while keeping the reset logic working. Would you mind giving it a try
with your use case and pvgrub?
Thanks, Roger.
---8<---