Yesterday I used windows' disk partition tool just to read the disk layout (didn't touch a thing, simply opened it). It looks like part of a volume group is overriden, at least name-wise (both label and UUID); lv tools always prompt an error about a missing partition, "pNvsomething-something".
According to /etc/lvm/archive, /dev/sdb and /dev/sdd1 are both used in the volume group.
physical_volumes {
pv0 {
id = "pNv7bl-5uND-rHH1-B3kK-Jcud-rxCm-7nJcKb"
device = "/dev/sdb" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 1953525168 # 931,513 Gigabytes
pe_start = 2048
pe_count = 238467 # 931,512 Gigabytes
}
pv1 {
id = "983nT1-PMwL-21Fz-tGw4-1ynZ-4JP9-s5OmGv"
device = "/dev/sdd1" # Hint only
status = ["ALLOCATABLE"]
flags = []
dev_size = 1562500000 # 745,058 Gigabytes
pe_start = 2048
pe_count = 190734 # 745,055 Gigabytes
}
}
This is the output of blkid /dev/sdb:
/dev/sdb: PTUUID="2539097c-4f75-41e4-86c2-7e60f1f561ee" PTTYPE="gpt"
And /dev/sdb1:
/dev/sdb1: PARTLABEL="Microsoft reserved partition" PARTUUID="ce5feefa-d5ab-4ae4-8147-d06a81fe32d3"
I don't know where those 130mb of "Microsoft reserved partition" came from but I guess it's fine because the size displayed in lvm archive is the same displayed by lsblk.
sdb has a different UUID and partition type but seems to be exactly the same. I guess the 130mb partition was stolen from unallocated space yielded by resizing the lv partition. What should I do? mkfs and then point lvm to the new UUID? There shouldn't be any data overriden.
UPDATE
I've been looking around for a while and the mkfs idea was a dumb one, since it seems I should be using lvm tooling.
I can restore /etc/lvm/backup/nameOfVG and point the uuid to the correct device.
pvcreate --restorefile /etc/lvm/backup/datavg/ --uuid pNv-something /dev/sdb
The issue now is that pvcreate and other tools can't access /dev/sdb:
Device /dev/sdX not found (or ignored by filtering).
Some links:
Google also threw me some links to redhat solutions describing a really similar problem but they are behind a paywall.