Bug#900442: linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16
Control: forwarded -1 https://www.spinics.net/lists/linux-block/msg29103.html Control: tags -1 + upstream fixed-upstream confirmed Control: clone -1 -2 Control: reassign -2 src:lvm2 2.02.176-4.1 Control: retitle -2 lvm2: Ensure COW device is writable even for read-only thick snapshots Hi, On Fri, Aug 03, 2018 at 12:44:23AM +0300, WGH wrote: > This problem is being discussed in kernel mailing list right now: > https://www.spinics.net/lists/linux-block/msg29103.html (its cause is > more or less known now) The upstream fix reverts partially "block: fail op_is_write() requests to read-only partitions". https://git.kernel.org/linus/a32e236eb93e62a0f692e79b7c3c9636689559b9 On the lvm2 side, the following commit can be applied: https://sourceware.org/git/?p=lvm2.git;a=commit;h=a6fdb9d9d70f51c49ad11a87ab4243344e6701a3 (thus cloning the bug as well to src:lvm2 to include this commit or update to 2.02.178 once released). Regards, Salvatore
Processed: Re: Bug#900442: linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16
Processing control commands: > forwarded -1 https://www.spinics.net/lists/linux-block/msg29103.html Bug #900442 [src:linux] linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16 Ignoring request to change the forwarded-to-address of bug#900442 to the same value > tags -1 + upstream fixed-upstream confirmed Bug #900442 [src:linux] linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16 Added tag(s) upstream, fixed-upstream, and confirmed. > clone -1 -2 Bug #900442 [src:linux] linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16 Bug 900442 cloned as bug 905520 > reassign -2 src:lvm2 2.02.176-4.1 Bug #905520 [src:linux] linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16 Bug reassigned from package 'src:linux' to 'src:lvm2'. No longer marked as found in versions linux/4.16.12-1. Ignoring request to alter fixed versions of bug #905520 to the same values previously set Bug #905520 [src:lvm2] linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16 Marked as found in versions lvm2/2.02.176-4.1. > retitle -2 lvm2: Ensure COW device is writable even for read-only thick > snapshots Bug #905520 [src:lvm2] linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16 Changed Bug title to 'lvm2: Ensure COW device is writable even for read-only thick snapshots' from 'linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16'. -- 900442: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900442 905520: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905520 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#900442: linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16
This problem is being discussed in kernel mailing list right now: https://www.spinics.net/lists/linux-block/msg29103.html (its cause is more or less known now)
Bug#900442: linux-image-4.16.0-2-amd64: LVM2 COW snapshots fail as of 4.16
Package: src:linux Version: 4.16.12-1 Severity: normal [Copying Debian LVM team, but tentatively assigning this bug to the kernel.] I've found that as of Linux 4.16, making traditional COW LVM2 snapshots fails. (AFAICT, I can't substitute thin snapshots because my origin volumes aren't thin and need to remain mounted read-write.) I've worked around this problem for now by sticking with 4.15, but that's obviously not a good long-term solution. Specifically, the relevant "lvm create" command initially fails with errors of the form Using default stripesize 64.00 KiB. device-mapper: reload ioctl on (253:N+1) failed: Input/output error Failed to lock logical volume MyGroup/MyVolume. Aborting. Manual intervention required. with the kernel meanwhile logging messages of the form generic_make_request: Trying to write to read-only block-device dm-N (partno 0) device-mapper: persistent snapshot: write_header failed device-mapper: table: 253:N+1: snapshot: Failed to read snapshot metadata device-mapper: ioctl: error adding target to table Subsequent attempts fail with errors of the form Using default stripesize 64.00 KiB. Setting chunksize to 4.00 KiB. Archiving volume group "MyGroup" metadata (seqno 9540). Creating logical volume MyVolume.snap Creating volume group backup "/etc/lvm/backup/MyGroup" (seqno 9541). activation/volume_list configuration setting not defined: Checking only host tags for MyGroup/MyVolume.snap. Creating MyGroup-MyVolume.snap Loading MyGroup-MyVolume.snap table (253:M) Resuming MyGroup-MyVolume.snap (253:M) Initializing 4.00 KiB of logical volume "MyGroup/MyVolume.snap" with value 0. Removing MyGroup-MyVolume.snap (253:M) Creating logical volume snapshot0 Creating MyGroup-MyVolume.snap-cow device-mapper: create ioctl on MyGroup-MyVolume.snap-cow LVM-GfNest[...]-cow failed: Device or resource busy Failed to lock logical volume MyGroup/MyVolume. Aborting. Manual intervention required. Could you please take a look? Thanks! -- Package-specific info: ** Kernel log: boot messages should be attached ** Model information sys_vendor: Gateway product_name: DX4860 product_version: chassis_vendor: Gateway chassis_version: bios_vendor: American Megatrends Inc. bios_version: P02-A1 board_vendor: Gateway board_name: IPISB-VR board_version: 1.01 ** PCI devices: 00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0100] (rev 09) Subsystem: Acer Incorporated [ALI] 2nd Generation Core Processor Family DRAM Controller [1025:0589] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: snb_uncore 00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0102] (rev 09) (prog-if 00 [VGA controller]) Subsystem: Acer Incorporated [ALI] 2nd Generation Core Processor Family Integrated Graphics Controller [1025:0589] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: i915 Kernel modules: i915 00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04) Subsystem: Acer Incorporated [ALI] 6 Series/C200 Series Chipset Family MEI Controller [1025:0589] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: mei_me Kernel modules: mei_me 00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 05) (prog-if 20 [EHCI]) Subsystem: Acer Incorporated [ALI] 6 Series/C200 Series Chipset Family USB Enhanced Host Controller [1025:0589] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Kernel driver in use: ehci-pci Kernel modules: ehci_pci 00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05) Subsystem: Acer Incorporated [ALI] 6 Series/C200 Series Chipset Family High Definition Audio Controller [1025:0589] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel