Потерянный логический том после сбоя диска и vgreduce (LVM)
У меня огромная проблема с lvm на одном из моих серверов. Один из 3 дисков в одной группе томов поврежден, и у меня нет замены. Поскольку pvdisplay показал "неизвестное устройство" для отсутствующего физического тома, и после некоторого исследования я сделал vgreduce --removemissing --force SAVE
, Огромная ошибка, потому что теперь я потерял логический том. Здесь некоторая информация.
# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch
# fdisk -l
Disk /dev/sda: 558,9 GiB, 600093712384 bytes, 1172058032 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb76bc3f3
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1172056063 1172054016 558,9G 8e Linux LVM
Disk /dev/sdb: 9,1 TiB, 10001826537472 bytes, 19534817456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: CD5D73D4-C66C-E842-9066-14473F29CD7F
Device Start End Sectors Size Type
/dev/sdb1 2048 19534817279 19534815232 9,1T Linux LVM
# pvck -d -v /dev/sda1
Scanning /dev/sda1
Found label on /dev/sda1, sector 1, type=LVM2 001
Found text metadata area: offset=4096, size=1044480
Found LVM2 metadata record at offset=11776, size=1024, offset2=0 size2=0
Found LVM2 metadata record at offset=10752, size=1024, offset2=0 size2=0
Found LVM2 metadata record at offset=9728, size=1024, offset2=0 size2=0
Found LVM2 metadata record at offset=8192, size=1536, offset2=0 size2=0
Found LVM2 metadata record at offset=6144, size=2048, offset2=0 size2=0
# pvck -d -v /dev/sdb1
Scanning /dev/sdb1
Found label on /dev/sdb1, sector 1, type=LVM2 001
Found text metadata area: offset=4096, size=1044480
Found LVM2 metadata record at offset=11776, size=1024, offset2=0 size2=0
Found LVM2 metadata record at offset=10752, size=1024, offset2=0 size2=0
Found LVM2 metadata record at offset=9728, size=1024, offset2=0 size2=0
Found LVM2 metadata record at offset=8192, size=1536, offset2=0 size2=0
Found LVM2 metadata record at offset=6144, size=2048, offset2=0 size2=0
# pvscan
PV /dev/sda1 VG SAVE lvm2 [558,88 GiB / 558,88 GiB free]
PV /dev/sdb1 VG SAVE lvm2 [9,10 TiB / 9,10 TiB free]
Total: 2 [9,64 TiB] / in use: 2 [9,64 TiB] / in no VG: 0 [0 ]
# vgscan
Reading volume groups from cache.
Found volume group "SAVE" using metadata type lvm2
Содержимое последнего архива / etc / lvm /:
SAVE {
id = "jaItWF-FRIP-bSx4-B9rJ-t0FF-37Zc-4g2vWa"
seqno = 2
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 = "JCosuu-0eAf-8nfH-Lr3r-dWA9-YD1t-7KbfbD"
device = "/dev/sda1" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 1172054016 # 558.879 Gigabytes
pe_start = 2048
pe_count = 143072 # 558.875 Gigabytes
}
pv1 {
id = "oBJ08l-4KjE-3N1u-KEli-IFPI-uydF-veqI3y"
device = "[unknown]" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 11720888320 # 5.45796 Terabytes
pe_start = 2048
pe_count = 1430772 # 5.45796 Terabytes
}
pv2 {
id = "OPobKp-VuZ4-dai8-IrDc-cG9B-PMHj-echB7B"
device = "/dev/sdb1" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 19534815232 # 9.09661 Terabytes
pe_start = 2048
pe_count = 2384620 # 9.0966 Terabytes
}
}
logical_volumes {
save {
id = "VEMJHx-e0gc-V2ur-SJ85-jZs8-X5Mp-5Rz7Px"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_time = 1522232614 # 2018-03-28 12:23:34 +0200
creation_host = ""
segment_count = 3
segment1 {
start_extent = 0
extent_count = 2384620 # 9.0966 Terabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv2", 0
]
}
segment2 {
start_extent = 2384620
extent_count = 1430772 # 5.45796 Terabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv1", 0
]
}
segment3 {
start_extent = 3815392
extent_count = 143072 # 558.875 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 0
]
}
}
}
}
Я хотел бы восстановить некоторые данные, я знаю, что это почти невозможно, но если кто-то знает способ, я буду благодарен.
Спасибо всем заранее.