Debian Jessie RAID 恢复挂载 LVM2

Debian Jessie RAID 恢复挂载 LVM2

我恢复了一个发生故障的阵列,该阵列上有 LVM2,我该如何挂载它?以下是我所做的:

lvmdiskscan /dev/md0
/dev/loop0 [     873.62 MiB]
/dev/md0   [       7.28 TiB] LVM physical volume
/dev/sde1  [       7.44 GiB]
0 disks
2 partitions
0 LVM physical volume whole disks
1 LVM physical volume

好的,这就是我的 LVM,现在:

root@debian:/home/user >: vgdisplay
--- Volume group ---
VG Name               backupvol1
System ID
Format                lvm2
Metadata Areas        1
Metadata Sequence No  1
VG Access             read/write
VG Status             resizable
MAX LV                0
Cur LV                0
Open LV               0
Max PV                0
Cur PV                1
Act PV                1
VG Size               7.28 TiB
PE Size               4.00 MiB
Total PE              1907283
Alloc PE / Size       0 / 0
Free  PE / Size       1907283 / 7.28 TiB
VG UUID               PUWpCT-3Irs-M2E8-3ASZ-V4Fa-7WpW-6qcKfT

但是当我尝试激活它时,我没有得到任何 LVM:

root@debian:/home/user >: vgchange -ay backupvol1
0 logical volume(s) in volume group "backupvol1" now active

看起来不太对劲

pvscan
PV /dev/md0   VG backupvol1   lvm2 [7.28 TiB / 7.28 TiB free]
Total: 1 [7.28 TiB] / in use: 1 [7.28 TiB] / in no VG: 0 [0    ]

我错过了什么?如果我理解这个 vgdisplay,我有一些损坏的东西:

vgdisplay -v backupvol1
DEGRADED MODE. Incomplete RAID LVs will be processed.
Using volume group(s) on command line
Finding volume group "backupvol1"
--- Volume group ---
VG Name               backupvol1
System ID
Format                lvm2
Metadata Areas        1
Metadata Sequence No  1
VG Access             read/write
VG Status             resizable
MAX LV                0
Cur LV                0
Open LV               0
Max PV                0
Cur PV                1
Act PV                1
VG Size               7.28 TiB
PE Size               4.00 MiB
Total PE              1907283
Alloc PE / Size       0 / 0
Free  PE / Size       1907283 / 7.28 TiB
VG UUID               PUWpCT-3Irs-M2E8-3ASZ-V4Fa-7WpW-6qcKfT

--- Physical volumes ---
PV Name               /dev/md0
PV UUID               sCWOI9-guTg-HDOg-BZ9d-z4Cv-5VhS-9Xjuf1
PV Status             allocatable
Total PE / Free PE    1907283 / 1907283

以下是 /etc/lvm/backup/backupvol1 中的内容

root@debian:/etc/lvm/backup >: cat backupvol1
# Generated by LVM2 version 2.02.111(2) (2014-09-01): Thu Mar  1 22:22:01 2018
contents = "Text Format Volume Group"
version = 1

description = "Created *after* executing 'vgcfgbackup'"

creation_host = "debian"    # Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.51-2 (2017-12-03) x86_64
creation_time = 1519942921  # Thu Mar  1 22:22:01 2018

backupvol1 {
    id = "PUWpCT-3Irs-M2E8-3ASZ-V4Fa-7WpW-6qcKfT"
    seqno = 1
    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 = "sCWOI9-guTg-HDOg-BZ9d-z4Cv-5VhS-9Xjuf1"
            device = "/dev/md0" # Hint only

            status = ["ALLOCATABLE"]
            flags = []
            dev_size = 15624466432  # 7.27571 Terabytes
            pe_start = 2048
            pe_count = 1907283  # 7.27571 Terabytes
        }
    }
}

相关内容