[SOLVED] LVM kaputt nach neuer Raid Karte

TZockt

Member
Jul 20, 2021
30
1
8
22
Hallo zusammen,

ich musste mir eine neue Raid Karte besorgen da die alte defekt war. Nun hab ich das Problem dass das LVM nicht mehr funktioniert.
Code:
root@pve:~# pvs
  WARNING: Metadata location on /dev/sda at 486400 begins with invalid VG name.
  WARNING: bad metadata text on /dev/sda in mda1
  WARNING: scanning /dev/sda mda1 failed to read metadata summary.
  WARNING: repair VG metadata on /dev/sda with vgck --updatemetadata.
  WARNING: scan failed to get metadata summary from /dev/sda PVID cngIk3XyFbwgll8n0I4VmgJONI8i6ecX
  WARNING: PV /dev/sda is marked in use but no VG was found using it.
  WARNING: PV /dev/sda might need repairing.
  PV         VG        Fmt  Attr PSize    PFree
  /dev/sda   [unknown] lvm2 u--    <5.46t     0
  /dev/sdc3  pve       lvm2 a--  <111.29g 13.87g
Ich habe schon versuch das LVM wieder herzustellen mit dem folgenden Befehl
Code:
root@pve:~# pvcreate --uuid "KziDPk-yQ3o-Fxwj-QZm4-hMs9-IsoB-A4ou8j" --restorefile /etc/lvm/archive/diamond_00000-208150257.vg /dev/sda
  WARNING: Couldn't find device with uuid cngIk3-XyFb-wgll-8n0I-4Vmg-JONI-8i6ecX.
  Can't find uuid KziDPk-yQ3o-Fxwj-QZm4-hMs9-IsoB-A4ou8j in backup file /etc/lvm/archive/diamond_00000-208150257.vg
  Run `pvcreate --help' for more information.
Danke schon mal für euer Hilfe!

VG
Tim
 
Wurde der RAID Controller 1 zu 1 getausch?
Sprich gleiches Modell mit gleichem Firmwarestand?

Um was für einen Controller handelt es sich?
 
HI, ist fast das gleiche Modell nur ein Intel Brand jetzt. Es ist eine Megaraid SAS 9260-8i, allerdings konnte ich die Konfig der alten Raid Karte nicht importieren und musst den Raid neu erstellen aber ohne die Festplatten zu formatiern
 
Bad Metadata … in mda1
Klingt für mich als wenn da falsche UUIDs drin stehen. Wo genau weiß ich nicht, da fehlt mir etwas Linux KnowHow. Aber ich kenne mich mit RAID Controllern und Disks aus. Bei Windows könnte ich besser helfen, aber eventuell reicht das als Richtungsweiser für jemand anderes.
 
HI, ist fast das gleiche Modell nur ein Intel Brand jetzt. Es ist eine Megaraid SAS 9260-8i, allerdings konnte ich die Konfig der alten Raid Karte nicht importieren und musst den Raid neu erstellen aber ohne die Festplatten zu formatiern
Und damit hat der neue RAID-Verbund ne neue UID bekommen und die passt nicht zum alten LVM.

Das hier KziDPk-yQ3o-Fxwj-QZm4-hMs9-IsoB-A4ou8j ist eben nicht das hier cngIk3-XyFb-wgll-8n0I-4Vmg-JONI-8i6ecX.

Du kannst versuchen, ob du mit megacli die UUID umgebogen bekommst.
Die deb-Pakete findest du bei https://hwraid.le-vert.net/

Einfache wäre aber ein Neuausetzen des LVM und das Zurückspielen eines Backups.
 
Selbst wenn es hardwaremäßig der gleiche Controller ist gibts doch Unterschiede in der Firmware. Und dann kann richtig doof werden.
Ein Grund, warum ich bei RAID-Controllern nen Riesenbogen um den ganzen OEM-Kram mache.
Hatte da mal mit nem Dell-Controller so ein Erlebnis der besonderen Art...

Bad Metadata … in mda1
Klingt für mich als wenn da falsche UUIDs drin stehen. Wo genau weiß ich nicht, da fehlt mir etwas Linux KnowHow. Aber ich kenne mich mit RAID Controllern und Disks aus. Bei Windows könnte ich besser helfen, aber eventuell reicht das als Richtungsweiser für jemand anderes.
 
Eventuell hilft euch die lvm Datei der VG:
Code:
# Generated by LVM2 version 2.03.11(2) (2021-01-08): Wed Oct 27 20:38:28 2021

contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing '/sbin/vgs --separator : --noheadings --units b --unbuffered --nosuffix --options vg_name,vg_size,vg_free,lv_count'"

creation_host = "pve"    # Linux pve 5.11.22-4-pve #1 SMP PVE 5.11.22-8 (Fri, 27 Aug 2021 11:51:34 +0200) x86_64
creation_time = 1635359908    # Wed Oct 27 20:38:28 2021

diamond {
    id = "KziDPk-yQ3o-Fxwj-QZm4-hMs9-IsoB-A4ou8j"
    seqno = 97
    format = "lvm2"            # informational
    status = ["RESIZEABLE", "READ", "WRITE"]
    flags = []
    extent_size = 8192        # 4 Megabytes
    max_lv = 0
    max_pv = 0
    metadata_copies = 0

    physical_volumes {

        pv0 {
            id = "cngIk3-XyFb-wgll-8n0I-4Vmg-JONI-8i6ecX"
            device = "/dev/sda"    # Hint only

            status = ["ALLOCATABLE"]
            flags = []
            dev_size = 11717836800    # 5.45654 Terabytes
            pe_start = 2048
            pe_count = 1430399    # 5.45654 Terabytes
        }
    }

    logical_volumes {

        vm-100-disk-0 {
            id = "VMo0cI-Dev1-4KB2-s2m5-Uhvk-XOWR-Wu5poG"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-100"]
            creation_time = 1607067758    # 2020-12-04 08:42:38 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 8192    # 32 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 0
                ]
            }
        }

        vm-101-disk-0 {
            id = "olhJZY-s3m8-Omur-6RNS-cDfz-SGHb-Ae3xDE"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-101"]
            creation_time = 1607076780    # 2020-12-04 11:13:00 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 1    # 4 Megabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 23552
                ]
            }
        }

        vm-101-disk-1 {
            id = "232Oe2-lWct-hKC2-ydap-7Ict-1WfU-Suc1hM"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-101"]
            creation_time = 1607076782    # 2020-12-04 11:13:02 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 8192    # 32 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 23553
                ]
            }
        }

        vm-103-disk-0 {
            id = "mQPS9O-oEXX-dllo-ge5u-beij-6yZG-oAGkJR"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-103"]
            creation_time = 1607076838    # 2020-12-04 11:13:58 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 3840    # 15 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 36865
                ]
            }
        }

        vm-102-disk-0 {
            id = "6rwyTx-m61k-9j9z-VyjP-0vII-VB5J-ktnIiH"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-102"]
            creation_time = 1607083370    # 2020-12-04 13:02:50 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 5120    # 20 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 31745
                ]
            }
        }

        vm-104-disk-1 {
            id = "IN43Li-aHuc-eUj1-Kxgt-ZfQp-QFWC-NOva2Z"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-104"]
            creation_time = 1607091131    # 2020-12-04 15:12:11 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 76800    # 300 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 168705
                ]
            }
        }

        vm-104-disk-2 {
            id = "XG5tiW-0N3m-1Dn7-qIb0-KrDG-Lojy-bpP7KA"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-104"]
            creation_time = 1607108313    # 2020-12-04 19:58:33 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 1    # 4 Megabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 245505
                ]
            }
        }

        vm-102-disk-1 {
            id = "F5QrmU-T1bS-loff-Bbjz-JGgA-JvSH-2WcfWZ"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-102"]
            creation_time = 1607110516    # 2020-12-04 20:35:16 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 5120    # 20 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 8192
                ]
            }
        }

        vm-105-disk-0 {
            id = "D4Pj0C-I1pm-To3m-l5Ni-jo1y-ZHXD-9McHpX"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-105"]
            creation_time = 1607115829    # 2020-12-04 22:03:49 +0100
            creation_host = "pve"
            segment_count = 2

            segment1 {
                start_extent = 0
                extent_count = 128000    # 500 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 40705
                ]
            }
            segment2 {
                start_extent = 128000
                extent_count = 38400    # 150 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 647426
                ]
            }
        }

        vm-106-disk-1 {
            id = "PCk3oJ-yxk3-BV01-XEwO-LZ4F-JHA8-m90Ulc"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-106"]
            creation_time = 1607957958    # 2020-12-14 15:59:18 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 76800    # 300 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 245507
                ]
            }
        }

        vm-109-disk-0 {
            id = "kcjmoy-0eza-AUmE-dJP7-cLLr-fluj-dc96JE"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-109"]
            creation_time = 1608849406    # 2020-12-24 23:36:46 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 1    # 4 Megabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 245506
                ]
            }
        }

        vm-113-disk-0 {
            id = "rzGaHO-n1Dk-TaPs-Wp3H-xWfZ-TjTd-jS6yDK"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-113"]
            creation_time = 1616403403    # 2021-03-22 09:56:43 +0100
            creation_host = "pve"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 2560    # 10 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 391427
                ]
            }
        }

        vm-109-disk-1 {
            id = "dMUd3A-P1vZ-MTNf-sxin-AQkc-i1aA-yoFA5S"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-109"]
            creation_time = 1618992839    # 2021-04-21 10:13:59 +0200
            creation_host = "pve"
            segment_count = 2

            segment1 {
                start_extent = 0
                extent_count = 69120    # 270 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 322307
                ]
            }
            segment2 {
                start_extent = 69120
                extent_count = 186880    # 730 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 460546
                ]
            }
        }

        vm-106-disk-0 {
            id = "jnllZ9-BtuS-xLvl-NiTo-BNXH-PDgZ-7HkSOP"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-106"]
            creation_time = 1634199901    # 2021-10-14 10:25:01 +0200
            creation_host = "pve.tzockt.de"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 5120    # 20 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 414467
                ]
            }
        }

        vm-107-disk-0 {
            id = "YVIyvN-5Dbw-ge6n-VO54-tdh6-hGKL-t0X1ou"
            status = ["READ", "WRITE", "VISIBLE"]
            flags = []
            tags = ["pve-vm-107"]
            creation_time = 1634203393    # 2021-10-14 11:23:13 +0200
            creation_host = "pve.tzockt.de"
            segment_count = 1

            segment1 {
                start_extent = 0
                extent_count = 12800    # 50 Gigabytes

                type = "striped"
                stripe_count = 1    # linear

                stripes = [
                    "pv0", 419587
                ]
            }
        }
    }

}
 
Was sagt ein vgscan auf der shell?

Was sagt ein vgck auf der shell?
 
Thread kann geschlossen werden. Musste das LVM löschen weil die ganzen Partionstabellen defekt waren.
Trotzdem vielen dank für euere Hilfe!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!