deadlock during lvm snapshot

Bug #1645636 reported by Tomaz Beltram
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm doing backup of a running mongodb using LVM snapshot. Sometimes I
run into a deadlock situation and kernel reports blocked tasks for jbd2,
mongod, dmeventd and my tar doing backup.

This happens very rarely (one in a thousand) but the effect is rather
severe as mongodb stops working. I also can't remove and unmount the
snapshot.

I have Ubuntu 16.04.1 (lvm2 2.02.133-1ubuntu10) with mongod 3.2.9 on a
64bit system.

According to the link below its a kernel race with considerably decreased chance in latest lvm2 package.

https://www.redhat.com/archives/linux-lvm/2016-November/msg00037.html

Revision history for this message
Tomaz Beltram (tomazb) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lvm2 (Ubuntu):
status: New → Confirmed
Tomaz Beltram (tomazb)
description: updated
Revision history for this message
Guillaume Penin (guillaume-penin) wrote :

Hi all,

I think we just hit the same bug on a Production server today, with a snapshot on the root filesystem. Here are the relevant logs :

kernel: [455151.056975] INFO: task jbd2/dm-0-8:214 blocked for more than 120 seconds.
kernel: [455151.149417] INFO: task dmeventd:27193 blocked for more than 120 seconds.
kernel: [455151.241272] INFO: task cat:27522 blocked for more than 120 seconds.
...

All I/Os on the filesystem were blocked, so we had to reboot the server.

Revision history for this message
Wolfgang Hennerbichler (wogri) wrote :

Same here. Snapshot of "a random VM" that ran on the machine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.