FS#38710 - [lvm2] can no longer mount my snapshot with lvm2 2.02.105-1
Attached to Project:
Arch Linux
Opened by Robin (robin67) - Wednesday, 29 January 2014, 12:08 GMT
Last edited by Thomas Bächler (brain0) - Tuesday, 04 March 2014, 10:33 GMT
Opened by Robin (robin67) - Wednesday, 29 January 2014, 12:08 GMT
Last edited by Thomas Bächler (brain0) - Tuesday, 04 March 2014, 10:33 GMT
|
Details
Description:
After upgrading lvm2 I am no longer able to mount some of the snapshots of my partitions. Downgrading to 2.0.2.104-1 solved my problems..... Additional info: - lvm2 version 2.02.105-1 (lvm2-2.02.105-1-x86_64) - in /etc/fstab the partition is mounted as: /dev/mapper/lvm-home /home ext4 defaults,relatime,errors=continue 0 1 Steps to reproduce: [root@vps ~]# lvcreate --size 4G --snapshot --name snapup /dev/lvm/home -p r Logical volume "snapup" created [root@vps ~]# mount -r -t ext4 /dev/lvm/snapup /mnt/tmp mount: wrong fs type, bad option, bad superblock on /dev/mapper/lvm-snapup, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. dmesg shows: [ 3012.436519] EXT4-fs (dm-4): bad geometry: block count 3670016 exceeds size of device (262144 blocks) |
This task depends upon
Reporded it here, but did not find a real solution yet:
https://www.redhat.com/archives/linux-lvm/2014-January/msg00038.html
Robin, can you give output of 'lsblk --ascii'?
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOIN
sr0 11:0 1 391.8M 0 rom
vda 254:0 0 50G 0 disk
|-vda1 254:1 0 152.6M 0 part /boot
|-vda2 254:2 0 24.9G 0 part
| |-lvm-root 253:0 0 5G 0 lvm /
| |-lvm-home 253:1 0 1G 0 lvm /home
| |-lvm-swap 253:2 0 512M 0 lvm [SWAP]
| `-lvm-var 253:3 0 14G 0 lvm /var
`-vda3 254:3 0 25G 0 part
Tried bisecting the problem but it suddenly disappeared... I hate bugs that are not perfectly reproducable. :-/
Anybody wants to test binary packages?
http://mirror.mylinuxtime.de/arch/eworm/x86_64/device-mapper-2.02.105-1.2-x86_64.pkg.tar.xz
http://mirror.mylinuxtime.de/arch/eworm/x86_64/lvm2-2.02.105-1.2-x86_64.pkg.tar.xz
http://mirror.mylinuxtime.de/arch/eworm/i686/device-mapper-2.02.105-1.2-i686.pkg.tar.xz
http://mirror.mylinuxtime.de/arch/eworm/i686/lvm2-2.02.105-1.2-i686.pkg.tar.xz
EDIT: Erm, oops, there's a URL in the PKGBUILD. Still, where is this from?
https://www.redhat.com/archives/linux-lvm/2014-February/msg00018.html
WARNING: DM_snapshot_cow signature detected on /dev/cvg/snap-home at offset 0. Wipe it? [y/n]
Disabling the new blkid_wiping code fixes this for now and uses the code known from version 2.02.104. Not sure what a correct fix would look like.
Are you sure you grepped the correct source? For me it matches in a number of files.
I am entirely at a loss what they tried to do here. We're likely better off doing what you did in your PKGBUILD for the moment.
https://www.redhat.com/archives/linux-lvm/2014-February/msg00021.html
https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=ed166a3b1d3290ad887d8f83c24a8d8877713d3c
I updated the patch to apply to version 2.02.105, see the patch attached.
https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=2b044452e30accf9ee026fc62ccea219bb4c7be4
It seems to work again !! So I am happy .... Thanks for this