Re: [PROBLEM] Device-mapper snapshot metadata userspace breakage

From: Alasdair G Kergon
Date: Thu Apr 20 2006 - 13:37:30 EST


On Thu, Apr 20, 2006 at 12:53:35PM +0300, Pekka J Enberg wrote:
> The problem is that lvremove program hangs in 'D' state forever with the
> above commit for snapshots. I have included little more detail below.

The program might hang, but the system shouldn't now: run 'dmsetup
info -c', look for devices with names ending in '-cow' that are in the
suspended state and run 'dmsetup resume' on them.

> lvm2 2.01.04-5
> device-mapper 1.01.00-4

Upgrade!

Without the set of patches that included the one you identified,
whenever you ran 'lvcreate -s' the kernel was unable to give you any
guarantee the operation would succeed. In the worst failure mode the
system would hang or oops, and the fix required this subtle interface
change.

Alasdair
--
agk@xxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/