LV's no longer accessible after update from 11.3 to 11.4

Hi all,
after upgrading 11.3 to 11.4 with zypper dup my logical volumes are no longer accessible :’(
The YAST Partitioner recognize them as Linux Raid but I could not mount them.
linux-dv06:~ # blkid
/dev/sdb1: UUID=“3ed0f7a9-8986-254c-a14d-c8941769f33a” UUID_SUB=“b558e84e-6369-8803-f65f-455bd0e5f0f7” LABEL=“linux-2zun:0” TYPE=“linux_raid_member”
/dev/sda1: UUID=“482595d1-cbf0-43fb-8026-1ed4d1229fbc” TYPE=“ext4”
/dev/sda5: UUID=“f30bb3a9-2690-403f-9f45-45c3379a512b” TYPE=“ext4”
/dev/sda6: UUID=“c11c3194-e575-4f2e-879e-2faeff58da1c” TYPE=“swap”
/dev/sdc1: UUID=“3ed0f7a9-8986-254c-a14d-c8941769f33a” UUID_SUB=“1cca9fa1-469e-3d31-3575-e7ec0bc0e4a6” LABEL=“linux-2zun:0” TYPE=“linux_raid_member”
/dev/sdd1: UUID=“1cc4c975-3528-5ece-ce7b-19ba2e9376ba” UUID_SUB=“a96b6998-8b47-25ee-9766-82f7a667b947” LABEL=“linux.site:1” TYPE=“linux_raid_member”
/dev/sde1: UUID=“1cc4c975-3528-5ece-ce7b-19ba2e9376ba” UUID_SUB=“89006aba-7b5d-d36b-6534-d9755dd00110” LABEL=“linux.site:1” TYPE=“linux_raid_member”
/dev/sdf1: UUID=“e56bab03-6997-d8ad-c1a8-1e7324ad9736” UUID_SUB=“54ba58e5-997d-8cdc-302d-2343ab9a9167” LABEL=“linux.site:2” TYPE=“linux_raid_member”
/dev/sdg1: UUID=“e56bab03-6997-d8ad-c1a8-1e7324ad9736” UUID_SUB=“76c25f4f-f840-6917-d1da-500efd1d4fc0” LABEL=“linux.site:2” TYPE=“linux_raid_member”
/dev/md0: UUID=“5oAAFR-jWpa-x4GY-zXwD-cacR-uBlV-5iQiY8” TYPE=“LVM2_member”

sdb1 & sdc1 was a raid1 with VG MD0, sdd1 & sde1 also raid1 with VG MD1 and sdf1 & sdg1 raid1 with VG MD2
I do a rebuild of MD0 with YAST and try to mount it.

linux-dv06:~ # mount -r -t autofs /dev/md0 /mnt/temp1
mount: wrong fs type, bad option, bad superblock on /dev/md0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

linux-dv06:/mnt/temp # mount -r -t ext4 /dev/md0 /mnt/temp
mount: /dev/md0 already mounted or /mnt/temp busy
linux-dv06:/mnt/temp # vgchange -a y
1 logical volume(s) in volume group “volgrp0” now active
linux-dv06:/mnt/temp # mount -r -t ext4 /dev/md0 /mnt/temp
mount: /dev/md0 already mounted or /mnt/temp busy
linux-dv06:/mnt/temp1 # e2fsck -n /dev/md0
e2fsck 1.41.14 (22-Dec-2010)
e2fsck: Device or resource busy while trying to open /dev/md0
Filesystem mounted or opened exclusively by another program?
linux-dv06:/mnt/temp1 # vgchange -a n
0 logical volume(s) in volume group “volgrp0” now active
linux-dv06:/mnt/temp1 # e2fsck -n /dev/md0
e2fsck 1.41.14 (22-Dec-2010)
e2fsck: Superblock invalid, trying backup blocks…
e2fsck: Bad magic number in super-block while trying to open /dev/md0

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

linux-dv06:/mnt/temp1 # e2fsck -n -b 8193 /dev/md0
e2fsck 1.41.14 (22-Dec-2010)
e2fsck: Bad magic number in super-block while trying to open /dev/md0

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

linux-dv06:/mnt/temp1 # vgscan
Reading all physical volumes. This may take a while…
Found volume group “volgrp0” using metadata type lvm2
linux-dv06:/mnt/temp1 # lvscan
inactive ‘/dev/volgrp0/sharegrp0’ [1.36 TiB] inherit
linux-dv06:/mnt/temp1 # fsck -N -b 8193 /dev/md0
fsck from util-linux 2.19
fsck: fsck.LVM2_member: not found
fsck: Error 2 while executing fsck.LVM2_member for /dev/md0

google for fsck.LVM2_member = no results

try to restore from archive
linux-dv06:/mnt/temp1 # vgcfgrestore --list /dev/volgrp0

File: /etc/lvm/archive/volgrp0_00000.vg
Couldn’t find device with uuid e1hGf5-Rlla-BnOW-Ovve-qCpE-4WBc-OBJ4eJ.
VG name: volgrp0
Description: Created before executing ‘/sbin/vgscan --mknodes’
Backup Time: Sun Sep 12 13:14:33 2010

File: /etc/lvm/archive/volgrp0_00001.vg
VG name: volgrp0
Description: Created before executing ‘/sbin/vgscan --mknodes’
Backup Time: Fri Dec 31 19:07:55 2010

File: /etc/lvm/archive/volgrp0_00002.vg
Couldn’t find device with uuid jynwG3-TrPu-UuIr-D1o5-tDvV-LFk7-JviALI.
VG name: volgrp0
Description: Created before executing ‘/sbin/vgscan --mknodes’
Backup Time: Fri Dec 31 19:07:55 2010

File: /etc/lvm/archive/volgrp0_00003.vg
VG name: volgrp0
Description: Created before executing ‘/sbin/vgscan --mknodes’
Backup Time: Wed Aug 24 01:24:13 2011

File: /etc/lvm/archive/volgrp0_00004.vg
Couldn’t find device with uuid MvnxvS-EwjJ-Q4jB-jafK-gEZc-AFKJ-lHvld1.
VG name: volgrp0
Description: Created before executing ‘/sbin/vgscan --mknodes’
Backup Time: Wed Aug 24 01:24:13 2011

File: /etc/lvm/archive/volgrp0_00005.vg
Couldn’t find device with uuid 8LuyVo-34Ag-nro0-KqPc-I8sf-eET7-BfZoWH.
VG name: volgrp0
Description: Created before executing ‘/sbin/vgcreate -M2 -s 4096k volgrp0 /dev/md0’
Backup Time: Wed Aug 24 20:46:39 2011

File: /etc/lvm/archive/volgrp0_00006.vg
VG name: volgrp0
Description: Created before executing ‘/sbin/lvcreate -l 356516 --name sharegrp0 volgrp0’
Backup Time: Wed Aug 24 20:46:39 2011

File: /etc/lvm/archive/volgrp0_00007.vg
VG name: volgrp0
Description: Created before executing ‘pvchange --uuid /dev/md0’
Backup Time: Fri Aug 26 22:32:22 2011

File: /etc/lvm/archive/volgrp0_00008.vg
Couldn’t find device with uuid 38XeXR-kSxf-ovkC-KDG4-jWmQ-0Siv-dIYcfW.
VG name: volgrp0
Description: Created before executing ‘pvchange --uuid /dev/md0’
Backup Time: Fri Aug 26 22:33:57 2011

File: /etc/lvm/archive/volgrp0_00009.vg
VG name: volgrp0
Description: Created before executing ‘vgchange -u /dev/volgrp0’
Backup Time: Fri Aug 26 22:36:22 2011

File: /etc/lvm/backup/volgrp0
VG name: volgrp0
Description: Created after executing ‘vgchange -u /dev/volgrp0’
Backup Time: Fri Aug 26 22:36:23 2011

linux-dv06:/mnt/temp1 # vgcfgrestore --file /etc/lvm/archive/volgrp0_00002.vg
Please specify a single volume group to restore.
linux-dv06:/mnt/temp1 # vgcfgrestore --file /etc/lvm/archive/volgrp0_00002.vg /dev/volgrp0
Couldn’t find device with uuid jynwG3-TrPu-UuIr-D1o5-tDvV-LFk7-JviALI.
Cannot restore Volume Group volgrp0 with 1 PVs marked as missing.
Restore failed.

try to change uuid to original value
linux-dv06:/mnt/temp1 # tune2fs -U jynwG3-TrPu-UuIr-D1o5-tDvV-LFk7-JviALI /dev/volgrp0
tune2fs 1.41.14 (22-Dec-2010)
tune2fs: Is a directory while trying to open /dev/volgrp0
Couldn’t find valid filesystem superblock.
linux-dv06:/mnt/temp1 # tune2fs -U jynwG3-TrPu-UuIr-D1o5-tDvV-LFk7-JviALI /dev/md0
tune2fs 1.41.14 (22-Dec-2010)
tune2fs: Bad magic number in super-block while trying to open /dev/md0
Couldn’t find valid filesystem superblock.

anyone an idea?

greetings
arthur

Hi there,

I thought this was interesting:

linux-dv06:/mnt/temp # vgchange -a y
1 logical volume(s) in volume group "volgrp0" now active
linux-dv06:/mnt/temp # mount -r -t ext4 /dev/md0 /mnt/temp
mount: /dev/md0 already mounted or /mnt/temp busy

So the VG was inactive, but somehow it thought md0 was already mounted? Had it already mounted something else as /md0?

How about just starting again, from a liveCD, and ensure no automounting of anything is attempted. Then just running a new vgscan to see that status of the VG (inactive?), reactivating and trying to remount again?

I think if you work in a “clean” live environment, with nothing mounted to start with, you will get it fixed.

Cheers,

Hi and thanks for your reply.
As you can see in the output from blkid the volumes have different labels. I try to rebuild the LV’s from a live CD but, after reeboot from HD the LV’s are gone, only the raids where present :frowning: Rebuild the LV’s and try to mount them, same results as above… Nothing is mounted from fstab, only sda1, sda5 and swap. Now I try to repair with PartedMagic CD. GParted did not recognize any partition, TestDisk recognize that there where a Linux LVM partition, but I’m not sure that I can rescue any data :’( Maybe I have to do a mkefs -S
I’m out of any ideas >:(

Greetings
Arthur

P.S. sorry for bad english :wink: