Re: lvm2 deadlock

Stuart D Gathman <[email protected]> Tue, 4 Jun 2024 09:46:47 -0400 (EDT)
Newsgroups gmane.linux.lvm.general
Message-ID <[email protected]>
On Tue, 4 Jun 2024, Roger Heflin wrote:

> My experience is that heavy disk io/batch disk io systems work better
> with these values being smallish.

> I don't see a use case for having large values.   It seems to have no
> real upside and several downsides.  Get the buffer size small enough
> and you will still get pauses to clear the writes the be pauses will
> be short enough to not be a problem.

Not a normal situation, but I should mention my recent experience.
One of the disks in an underlying RAID was going bad.  It still worked,
but the disk struggled manfully with multiple retries and recalibrates
to complete many reads/writes - i.e. it was extremely slow.  I was
running into all kinds of strange boundary conditions because of this.
E.g. VMs were getting timeouts on their virtio disk devices, leading
to file system corruption and other issues.

I was not modifying any LVM volumes, so did not run into any problems
with LVM - but that is a boundary condition to keep in mind.  You
don't necessarily need to fully work under such conditions, but need
to do something sane.