Hello Guillaume, or anyone else affected,

Accepted lvm2 into jammy-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/lvm2/2.03.11-2.1ubuntu5 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
jammy to verification-done-jammy. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-jammy. In either case, without details of your testing we will
not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lvm2 in Ubuntu.
https://bugs.launchpad.net/bugs/2084233

Title:
  Excluded libaio library from mlock may hang system while removing
  rootfs snapshot

Status in lvm2:
  Fix Released
Status in lvm2 package in Ubuntu:
  Fix Released
Status in lvm2 source package in Jammy:
  Fix Committed
Status in lvm2 source package in Noble:
  Fix Committed

Bug description:
  [ Impact ]
  Some LVM operations like taking or removing snapshots will cause system hangs.
  This can happen if parts of libaio get paged out during a snapshot operation,
  which will cause the underlying LVM operation to freeze completely.

  [ Test Plan ]
  This bug needs active snapshot operations to happen under memory pressure, so
  we've found that the following procedure consistently reproduces the issue:

  1. Start fio+stress-ng stressors for IO and memory pressure. The values below
     will need to be tuned according to the reproducer system; the idea is to
     induce heavy memory pressure without triggering OOM, and without 
overwhelming
     the storage backend completely.
     - fio --filename=/dev/sda --direct=1 --rw=randread --bs=1M 
--ioengine=libaio --iodepth=256 --runtime=7200 --numjobs=4 --time_based 
--group_reporting --name=iops-test-job --eta-newline=1 --readonly
     - stress-ng --vm 2 --vm-bytes 650m --timeout 7200s
  2. Repeatedly create/remove LVM snapshots
     - lvcreate -s -L400m -nsnap_rootfs /dev/sys1/rootfs
     - lvremove -f /dev/sys1/snap_rootfs

  Although this needs some time, we've been able to reproduce the hangs within 
an
  hour or two with the above.

  [ Where problems could occur ]
  Realistically speaking, the increased footprint of keeping libaio mlocked in
  memory should be fairly small. We should expect an increase in memory
  consumption of LVM. Under heavy memory pressure, this could reduce the
  performance of the system, and increase swapping.

  
  [ Other Info ]
  This patch has been merged as of LVM v2_03_17, so it's needed for
  Jammy/Noble. These two should be fairly safe, but Focal has been deliberately
  excluded for now until we evaluate the impact on it (as well as a patch for
  focal-backports).

  --
  [ Original Description ]
  Hi,

  One of our production system hang while executing a custom backup
  script, using LVM snapshots and raw copies in order to build an
  alternative boot environment.

  We opened an issue on the LVM2 Github
  (https://github.com/lvmteam/lvm2/issues/159), and one of the
  contributor advises us to use at least the LVM2 2.03.17 version, built
  with the following patch :
  
https://github.com/lvmteam/lvm2/commit/a3eb6ba425773224076c41aabc3c490a6a016ee6

  The libaio library is, on previous versions, excluded of the mlock
  call and it can lead to a full system hang, specifically during a
  rootfs snapshot removal, as removing a shapshot freezes the underlying
  volume and the system won't be able to read on that volume during this
  operation. In rare condtions, this can be harmful if the system
  decides to page-out during this operation.

  As I understand that it may be complicated to upgrade the LVM2 version
  on stable releases of Ubuntu, is it possible to cherry-pick the
  relevant (and really simple/small) patch from the LVM2 2.03.17 version
  on the current LVM2 versions used by Ubuntu ?

  Regards,

To manage notifications about this bug go to:
https://bugs.launchpad.net/lvm2/+bug/2084233/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to