Recuperei uma matriz com falha, que possui um LVM2, como montá-lo? Aqui está o que eu fiz:
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
Ok, então esse é o meu LVM agora:
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
Mas eu não recebo nenhum LVM quando tento ativá-lo:
root@debian:/home/user >: vgchange -ay backupvol1
0 logical volume(s) in volume group "backupvol1" now active
Não parece bem
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 ]
O que estou perdendo? Se eu entendi este vgdisplay, eu tenho algo corrupto:
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
Veja o que há em / 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
}
}
}