Fehlerhafter LVM metadata header nach Kernel-Update

Welches Modul/Treiber für welche Hardware, Kernel compilieren...
Antworten
pas
Beiträge: 16
Registriert: 12.07.2008 12:06:00

Fehlerhafter LVM metadata header nach Kernel-Update

Beitrag von pas » 26.02.2015 14:05:49

Hallo zusammen,
ich betreibe auf 2 identischen Servern Debian Wheezy (Linux wheezy3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u1 x86_64 GNU/Linux) als verschlüsseltes LVM mit einem Hardware-Raid-Controller (Adaptec 6405E) auf Raid 1.

Bei eines der beiden Servern bekam ich folgende Fehlermeldungen nach dem letzten Kernelupdate:

Code: Alles auswählen

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-4-amd64 /boot/vmlinuz-3.2.0-4-amd64
update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-4-amd64 /boot/vmlinuz-3.2.0-4-amd64
error: unknown LVM metadata header.
error: unknown LVM metadata header.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
error: unknown LVM metadata header.
error: unknown LVM metadata header.
error: unknown LVM metadata header.
error: unknown LVM metadata header.
  Incorrect metadata area header checksum on /dev/sda1 at offset 4096
done
Hier ist die Ausgabe für die Befehle pvdisplay, vgdisplay, lvdisplay, df, pvs, lvs, vgs:

Code: Alles auswählen

root@wheezy:~# pvdisplay -v
    Scanning for physical volume names
  Incorrect metadata area header checksum on /dev/sda1 at offset 4096
  --- Physical volume ---
  PV Name               /dev/dm-0
  VG Name               wheezy
  PV Size               111.37 GiB / not usable 2.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              28510
  Free PE               0
  Allocated PE          28510
  PV UUID               8DEe3m-NaQC-mRia-cMfv-OO2O-Foog-XXTLeU

  "/dev/sda1" is a new physical volume of "243.00 MiB"
  --- NEW Physical volume ---
  PV Name               /dev/sda1
  VG Name
  PV Size               243.00 MiB
  Allocatable           NO
  PE Size               0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               fnKsgr-KC2h-inYi-jhli-YFil-edTh-RsRTzK

root@wheezy:~# vgdisplay -v
    Finding all volume groups
  Incorrect metadata area header checksum on /dev/sda1 at offset 4096
    Finding volume group "wheezy"
  --- Volume group ---
  VG Name               wheezy
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  10
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               111.37 GiB
  PE Size               4.00 MiB
  Total PE              28510
  Alloc PE / Size       28510 / 111.37 GiB
  Free  PE / Size       0 / 0
  VG UUID               nq8fye-SpVe-cHrd-AM99-YWdA-7SPp-L3S2Hm

  --- Logical volume ---
  LV Path                /dev/wheezy/SWAP
  LV Name                SWAP
  VG Name                wheezy
  LV UUID                VbC1TX-2Ppz-1003-VFqU-0o0X-otwu-qy5Xam
  LV Write Access        read/write
  LV Creation host, time wheezy, 2014-11-24 16:36:55 +0000
  LV Status              available
  # open                 2
  LV Size                7.45 GiB
  Current LE             1907
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1

  --- Logical volume ---
  LV Path                /dev/wheezy/TMP
  LV Name                TMP
  VG Name                wheezy
  LV UUID                btQknc-WeBv-q2xA-dhz0-GsqR-G2hn-gKwCh0
  LV Write Access        read/write
  LV Creation host, time wheezy, 2014-11-24 16:37:05 +0000
  LV Status              available
  # open                 1
  LV Size                10.79 GiB
  Current LE             2761
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2

  --- Logical volume ---
  LV Path                /dev/wheezy/base
  LV Name                base
  VG Name                wheezy
  LV UUID                dWD7ro-ACQ6-04O2-rKd2-iMCe-HddW-kX1mt6
  LV Write Access        read/write
  LV Creation host, time wheezy, 2014-11-24 16:37:13 +0000
  LV Status              available
  # open                 1
  LV Size                93.13 GiB
  Current LE             23842
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:3

  --- Physical volumes ---
  PV Name               /dev/dm-0
  PV UUID               8DEe3m-NaQC-mRia-cMfv-OO2O-Foog-XXTLeU
  PV Status             allocatable
  Total PE / Free PE    28510 / 0

root@wheezy:~# lvdisplay -v
    Finding all logical volumes
  Incorrect metadata area header checksum on /dev/sda1 at offset 4096
  --- Logical volume ---
  LV Path                /dev/wheezy/SWAP
  LV Name                SWAP
  VG Name                wheezy
  LV UUID                VbC1TX-2Ppz-1003-VFqU-0o0X-otwu-qy5Xam
  LV Write Access        read/write
  LV Creation host, time wheezy, 2014-11-24 16:36:55 +0000
  LV Status              available
  # open                 2
  LV Size                7.45 GiB
  Current LE             1907
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1

  --- Logical volume ---
  LV Path                /dev/wheezy/TMP
  LV Name                TMP
  VG Name                wheezy
  LV UUID                btQknc-WeBv-q2xA-dhz0-GsqR-G2hn-gKwCh0
  LV Write Access        read/write
  LV Creation host, time wheezy, 2014-11-24 16:37:05 +0000
  LV Status              available
  # open                 1
  LV Size                10.79 GiB
  Current LE             2761
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2

  --- Logical volume ---
  LV Path                /dev/wheezy/base
  LV Name                base
  VG Name                wheezy
  LV UUID                dWD7ro-ACQ6-04O2-rKd2-iMCe-HddW-kX1mt6
  LV Write Access        read/write
  LV Creation host, time wheezy, 2014-11-24 16:37:13 +0000
  LV Status              available
  # open                 1
  LV Size                93.13 GiB
  Current LE             23842
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:3


root@wheezy:~# df -h
Filesystem                   Size  Used Avail Use% Mounted on
rootfs                        92G   25G   63G  28% /
udev                          10M     0   10M   0% /dev
tmpfs                        3.2G  1.3M  3.2G   1% /run
/dev/mapper/wheezy-base   92G   25G   63G  28% /
tmpfs                        5.0M  4.0K  5.0M   1% /run/lock
tmpfs                        6.3G     0  6.3G   0% /run/shm
/dev/sda1                    228M   30M  187M  14% /boot
/dev/mapper/wheezy-TMP    11G  172M   10G   2% /tmp

root@wheezy:~# pvs
  Incorrect metadata area header checksum on /dev/sda1 at offset 4096
  PV         VG         Fmt  Attr PSize   PFree
  /dev/dm-0  wheezy lvm2 a--  111.37g      0
  /dev/sda1             lvm2 a--  243.00m 243.00m

root@wheezy:~# vgs
  Incorrect metadata area header checksum on /dev/sda1 at offset 4096
  VG         #PV #LV #SN Attr   VSize   VFree
  wheezy   1   3   0 wz--n- 111.37g    0

root@wheezy:~# lvs
  Incorrect metadata area header checksum on /dev/sda1 at offset 4096
  LV   VG         Attr     LSize  Pool Origin Data%  Move Log Copy%  Convert
  SWAP wheezy -wi-ao--  7.45g
  TMP  wheezy -wi-ao-- 10.79g
  base wheezy -wi-ao-- 93.13g
Hat jemand eine Idee, wie man am einfachsten den fehlerhaften LVM metadata header reparieren könnte? Das zweite identische System (gleiche Hardware, gleiche Partitionen, gleiche APT-Quellen) läuft ohne Probleme durch.

Ggü. der fehlerhaften Maschine, gibt der fehlerfreie Server folgende pvdisplay-Ausgabe NICHT aus:

Code: Alles auswählen

  "/dev/sda1" is a new physical volume of "243.00 MiB"
  --- NEW Physical volume ---
  PV Name               /dev/sda1
  VG Name
  PV Size               243.00 MiB
  Allocatable           NO
  PE Size               0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               fnKsgr-KC2h-inYi-jhli-YFil-edTh-RsRTzK
Vielen Dank!

rendegast
Beiträge: 15041
Registriert: 27.02.2006 16:50:33
Lizenz eigener Beiträge: MIT Lizenz

Re: Fehlerhafter LVM metadata header nach Kernel-Update

Beitrag von rendegast » 26.02.2015 18:53:38

"/dev/sda1" is a new physical volume of "243.00 MiB"
--- NEW Physical volume ---
PV Name /dev/sda1
VG Name
PV Size 243.00 MiB
root@wheezy:~# df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sda1 228M 30M 187M 14% /boot
Du hast wohl im PV direkt /boot angelegt, statt in einem dafür vorgesehenem LV,
oder andersherum.
Das Formatieren von /boot hat aber nicht den lvm-Header überschrieben,
oder andersherum.
Daher die Erkennung resp. das Mounten.

Was die beabsichtigte und valide Lösung ist, mußt Du wohl selbst herausfinden.
Klassisch wird /boot bei raid/lvm/cryp-System separat und direkt auf einer Partition realisiert,
neuere grub können diese aber wohl auch vom stage1 ansprechen, siehe /boot/grub/*/*.mod.

Code: Alles auswählen

# ll /boot/grub/i386-pc/ | grep cr
-rw-r--r-- 1 root root   1688 Feb 11 20:02 crc64.mod
-rw-r--r-- 1 root root    936 Feb 11 20:02 crypto.lst
-rw-r--r-- 1 root root   4960 Feb 11 20:02 crypto.mod
-rw-r--r-- 1 root root  10012 Feb 11 20:02 cryptodisk.mod
-rw-r--r-- 1 root root   1720 Feb 11 20:02 gcry_arcfour.mod
-rw-r--r-- 1 root root   8156 Feb 11 20:02 gcry_blowfish.mod
-rw-r--r-- 1 root root  33992 Feb 11 20:02 gcry_camellia.mod
-rw-r--r-- 1 root root  16672 Feb 11 20:02 gcry_cast5.mod
-rw-r--r-- 1 root root   2984 Feb 11 20:02 gcry_crc.mod
-rw-r--r-- 1 root root  19432 Feb 11 20:02 gcry_des.mod
-rw-r--r-- 1 root root   2356 Feb 11 20:02 gcry_dsa.mod
-rw-r--r-- 1 root root   3016 Feb 11 20:02 gcry_idea.mod
-rw-r--r-- 1 root root   3200 Feb 11 20:02 gcry_md4.mod
-rw-r--r-- 1 root root   3796 Feb 11 20:02 gcry_md5.mod
-rw-r--r-- 1 root root   2532 Feb 11 20:02 gcry_rfc2268.mod
-rw-r--r-- 1 root root  19016 Feb 11 20:02 gcry_rijndael.mod
-rw-r--r-- 1 root root   8136 Feb 11 20:02 gcry_rmd160.mod
-rw-r--r-- 1 root root   2148 Feb 11 20:02 gcry_rsa.mod
-rw-r--r-- 1 root root  15424 Feb 11 20:02 gcry_seed.mod
-rw-r--r-- 1 root root  16256 Feb 11 20:02 gcry_serpent.mod
-rw-r--r-- 1 root root   7576 Feb 11 20:02 gcry_sha1.mod
-rw-r--r-- 1 root root   4352 Feb 11 20:02 gcry_sha256.mod
-rw-r--r-- 1 root root   9348 Feb 11 20:02 gcry_sha512.mod
-rw-r--r-- 1 root root  12672 Feb 11 20:02 gcry_tiger.mod
-rw-r--r-- 1 root root  37556 Feb 11 20:02 gcry_twofish.mod
-rw-r--r-- 1 root root  24928 Feb 11 20:02 gcry_whirlpool.mod
-rw-r--r-- 1 root root   3612 Feb 11 20:02 truecrypt.mod
-rw-r--r-- 1 root root   5528 Feb 11 20:02 zfscrypt.mod

# ll /boot/grub/i386-pc/ | grep raid
-rw-r--r-- 1 root root   2020 Feb 11 20:02 mdraid09.mod
-rw-r--r-- 1 root root   2088 Feb 11 20:02 mdraid09_be.mod
-rw-r--r-- 1 root root   2036 Feb 11 20:02 mdraid1x.mod
-rw-r--r-- 1 root root   1468 Feb 11 20:02 raid5rec.mod
-rw-r--r-- 1 root root   2240 Feb 11 20:02 raid6rec.mod
 
# ll /boot/grub/i386-pc/ | grep lvm
-rw-r--r-- 1 root root   6776 Feb 11 20:02 lvm.mod
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")

pas
Beiträge: 16
Registriert: 12.07.2008 12:06:00

Re: Fehlerhafter LVM metadata header nach Kernel-Update

Beitrag von pas » 02.03.2015 16:22:58

Hallo Rendegast,
vielen Dank für Deine Antwort.

Was Du schreibst leuchtet mir ein, ich werde versuchen das ungenutze PV von der Volume-Group zu entfernen.

Antworten