VG disappeared not found LVM ISCSI

Alfio

Renowned Member
Jul 29, 2013
21
2
68
Hello, I have an installation running with LVM on iscsi, everything was working normally but suddenly the VG called storage disappeared, I have a Dell ME5084 storage configured with multipath, in which I have two volumes that I present to my proxmox cluster and only one Of the two that are causing problems and the storage has no problems, the only thing I did several months ago was update from version 7 to version 8 and they changed the names of the network cards that I had connected to the storage, I changed them and everything was working. The volume group that desappeared is called "almacen". i ran those commands:

root@srv01:~# vgdisplay
--- Volume group ---
VG Name almacen02
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 14
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 11
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 99.45 TiB
PE Size 4.00 MiB
Total PE 26070742
Alloc PE / Size 5983234 / 22.82 TiB
Free PE / Size 20087508 / <76.63 TiB
VG UUID 7RJwl4-cH18-Iv5B-zaph-RppC-tyPF-BVHme0

--- Volume group ---
VG Name pve
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size <2.62 TiB
PE Size 4.00 MiB
Total PE 686271
Alloc PE / Size 686271 / <2.62 TiB
Free PE / Size 0 / 0
VG UUID SP6V5K-cpTC-MCdJ-UqIp-kYr5-TZH3-nyDouL






root@srv01:~# vgscan
Found volume group "almacen02" using metadata type lvm2
Found volume group "pve" using metadata type lvm2






root@srv01:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 2.6T 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part /boot/efi
└─sda3 8:3 0 2.6T 0 part
├─pve-swap 252:0 0 8G 0 lvm [SWAP]
├─pve-root 252:1 0 96G 0 lvm /
└─pve-data 252:2 0 2.5T 0 lvm /var/lib/vz
sdb 8:16 0 99.5T 0 disk
└─mpathd 252:3 0 99.5T 0 mpath
├─almacen02-vm--307--disk--0 252:5 0 4T 0 lvm
├─almacen02-vm--307--disk--1 252:6 0 4T 0 lvm
├─almacen02-vm--307--disk--2 252:7 0 4T 0 lvm
├─almacen02-vm--307--disk--3 252:8 0 4T 0 lvm
├─almacen02-vm--307--disk--4 252:9 0 4T 0 lvm
├─almacen02-vm--309--disk--0 252:10 0 4M 0 lvm
├─almacen02-vm--309--disk--1 252:11 0 4M 0 lvm
├─almacen02-vm--309--disk--2 252:12 0 512G 0 lvm
├─almacen02-vm--311--disk--0 252:13 0 1000G 0 lvm
├─almacen02-vm--312--disk--0 252:14 0 500G 0 lvm
└─almacen02-vm--313--disk--0 252:15 0 1000G 0 lvm
sdc 8:32 0 127.3T 0 disk
└─mpathc 252:4 0 127.3T 0 mpath
├─mpathc-part1 252:16 0 100M 0 part
├─mpathc-part2 252:17 0 16M 0 part
├─mpathc-part3 252:18 0 127.3T 0 part
└─mpathc-part4 252:19 0 781M 0 part
sdd 8:48 0 99.5T 0 disk
└─mpathd 252:3 0 99.5T 0 mpath
├─almacen02-vm--307--disk--0 252:5 0 4T 0 lvm
├─almacen02-vm--307--disk--1 252:6 0 4T 0 lvm
├─almacen02-vm--307--disk--2 252:7 0 4T 0 lvm
├─almacen02-vm--307--disk--3 252:8 0 4T 0 lvm
├─almacen02-vm--307--disk--4 252:9 0 4T 0 lvm
├─almacen02-vm--309--disk--0 252:10 0 4M 0 lvm
├─almacen02-vm--309--disk--1 252:11 0 4M 0 lvm
├─almacen02-vm--309--disk--2 252:12 0 512G 0 lvm
├─almacen02-vm--311--disk--0 252:13 0 1000G 0 lvm
├─almacen02-vm--312--disk--0 252:14 0 500G 0 lvm
└─almacen02-vm--313--disk--0 252:15 0 1000G 0 lvm
sde 8:64 0 127.3T 0 disk
└─mpathc 252:4 0 127.3T 0 mpath
├─mpathc-part1 252:16 0 100M 0 part
├─mpathc-part2 252:17 0 16M 0 part
├─mpathc-part3 252:18 0 127.3T 0 part
└─mpathc-part4 252:19 0 781M 0 part









root@srv01:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 2.6T 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part /boot/efi
└─sda3 8:3 0 2.6T 0 part
├─pve-swap 252:0 0 8G 0 lvm [SWAP]
├─pve-root 252:1 0 96G 0 lvm /
└─pve-data 252:2 0 2.5T 0 lvm /var/lib/vz
sdb 8:16 0 99.5T 0 disk
└─mpathd 252:3 0 99.5T 0 mpath
├─almacen02-vm--307--disk--0 252:5 0 4T 0 lvm
├─almacen02-vm--307--disk--1 252:6 0 4T 0 lvm
├─almacen02-vm--307--disk--2 252:7 0 4T 0 lvm
├─almacen02-vm--307--disk--3 252:8 0 4T 0 lvm
├─almacen02-vm--307--disk--4 252:9 0 4T 0 lvm
├─almacen02-vm--309--disk--0 252:10 0 4M 0 lvm
├─almacen02-vm--309--disk--1 252:11 0 4M 0 lvm
├─almacen02-vm--309--disk--2 252:12 0 512G 0 lvm
├─almacen02-vm--311--disk--0 252:13 0 1000G 0 lvm
├─almacen02-vm--312--disk--0 252:14 0 500G 0 lvm
└─almacen02-vm--313--disk--0 252:15 0 1000G 0 lvm
sdc 8:32 0 127.3T 0 disk
└─mpathc 252:4 0 127.3T 0 mpath
├─mpathc-part1 252:16 0 100M 0 part
├─mpathc-part2 252:17 0 16M 0 part
├─mpathc-part3 252:18 0 127.3T 0 part
└─mpathc-part4 252:19 0 781M 0 part
sdd 8:48 0 99.5T 0 disk
└─mpathd 252:3 0 99.5T 0 mpath
├─almacen02-vm--307--disk--0 252:5 0 4T 0 lvm
├─almacen02-vm--307--disk--1 252:6 0 4T 0 lvm
├─almacen02-vm--307--disk--2 252:7 0 4T 0 lvm
├─almacen02-vm--307--disk--3 252:8 0 4T 0 lvm
├─almacen02-vm--307--disk--4 252:9 0 4T 0 lvm
├─almacen02-vm--309--disk--0 252:10 0 4M 0 lvm
├─almacen02-vm--309--disk--1 252:11 0 4M 0 lvm
├─almacen02-vm--309--disk--2 252:12 0 512G 0 lvm
├─almacen02-vm--311--disk--0 252:13 0 1000G 0 lvm
├─almacen02-vm--312--disk--0 252:14 0 500G 0 lvm
└─almacen02-vm--313--disk--0 252:15 0 1000G 0 lvm
sde 8:64 0 127.3T 0 disk
└─mpathc 252:4 0 127.3T 0 mpath
├─mpathc-part1 252:16 0 100M 0 part
├─mpathc-part2 252:17 0 16M 0 part
├─mpathc-part3 252:18 0 127.3T 0 part
└─mpathc-part4 252:19 0 781M 0 part







root@srv01:~# blkid
/dev/mapper/pve-root: UUID="e4c16d0b-50d8-4534-af63-2670a153474f" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/pve-data: UUID="e23a295c-eaf3-41e1-8c37-5d9421481807" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/pve-swap: UUID="55509b7e-3a1b-435b-a49e-2ec4bf669f18" TYPE="swap"
/dev/sda2: UUID="AADB-60F4" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="eedc59b5-9bfe-4435-a9d5-5119f4326844"
/dev/sda3: UUID="9Uy5Q7-Vtsl-VPIb-oifo-ciKf-Oemv-Od4RU6" TYPE="LVM2_member" PARTUUID="e5e311f1-699f-4657-8197-8e2108af462a"
/dev/mapper/mpathc-part4: BLOCK_SIZE="512" UUID="6A183CCF183C9BCF" TYPE="ntfs"
/dev/sdd: UUID="fzNvXq-zW8S-lFuf-W0M8-nBZ5-nICd-DAKQQF" TYPE="LVM2_member"
/dev/sdb: UUID="fzNvXq-zW8S-lFuf-W0M8-nBZ5-nICd-DAKQQF" TYPE="LVM2_member"
/dev/mapper/almacen02-vm--313--disk--0: UUID="0fabd180-e509-4172-955b-bfccf0e554c3" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/mpathc-part3: BLOCK_SIZE="512" UUID="747C135B7C131806" TYPE="ntfs"
/dev/mapper/mpathc-part1: UUID="E403-E626" BLOCK_SIZE="512" TYPE="vfat"
/dev/mapper/almacen02-vm--312--disk--0: UUID="f700aa5f-f5d0-43e8-8331-fe61fabc97f0" BLOCK_SIZE="4096" TYPE="ext4"
/dev/mapper/mpathd: UUID="fzNvXq-zW8S-lFuf-W0M8-nBZ5-nICd-DAKQQF" TYPE="LVM2_member"
/dev/mapper/almacen02-vm--307--disk--3: PTUUID="285f2280-3900-eb44-92cf-bb6d1818d0b8" PTTYPE="gpt"
/dev/mapper/almacen02-vm--307--disk--1: PTUUID="e8e5136b-36b6-0540-a6a1-1d2db506cbe7" PTTYPE="gpt"
/dev/mapper/almacen02-vm--311--disk--0: PTUUID="189f5053-fb46-4f1d-822e-1c31f26d1a7a" PTTYPE="gpt"
/dev/sde: PTUUID="59571e19-dde1-469a-9b76-b8db59c19700" PTTYPE="gpt"
/dev/mapper/almacen02-vm--307--disk--4: PTUUID="5be8eb22-da41-ee42-901e-d1b8ceedbd11" PTTYPE="gpt"
/dev/sdc: PTUUID="59571e19-dde1-469a-9b76-b8db59c19700" PTTYPE="gpt"
/dev/mapper/almacen02-vm--307--disk--2: PTUUID="f987ae2e-01ac-1540-94fc-0e4ecd51ddb0" PTTYPE="gpt"
/dev/sda1: PARTUUID="4d587bb8-c898-4e7c-91fc-fb389c1ea5d1"
/dev/mapper/almacen02-vm--307--disk--0: PTUUID="6c357f6f-c4e3-7a4d-948f-73f71ac42b33" PTTYPE="gpt"
/dev/mapper/almacen02-vm--309--disk--2: PTUUID="dca40247-01ba-44ed-b4eb-e7ea69a34ff4" PTTYPE="gpt"






root@srv01:~# vgcfgrestore almacen
WARNING: Couldn't find device with uuid eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S.
Cannot restore Volume Group almacen with 1 PVs marked as missing.
Restore failed.








root@srv01:~# grep -ri 'eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S' /etc /boot
/etc/lvm/backup/almacen: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00104-2026725206.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00099-1577313188.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00105-339703878.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00108-1869178970.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00094-1333064704.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00090-1207025000.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00096-957681086.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00093-8482060.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00106-1020836520.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00091-51989128.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00088-2018132490.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00102-2043146008.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00109-318333303.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00097-1218828128.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00089-1809170256.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00107-970733176.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00100-1063559119.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00101-1254758861.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00095-1697353439.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00103-695721838.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00098-1141002437.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"
/etc/lvm/archive/almacen_00092-818019305.vg: id = "eUhAU6-jpII-8usO-3SW8-hMOI-mgJs-s2zF2S"






Any help would be appreciated.
 
Last edited:
I was looking into:

root@srv01:~# cd /etc/lvm/archive

root@srv01:/etc/lvm/archive# ls

almacen_00088-2018132490.vg almacen_00094-1333064704.vg almacen_00100-1063559119.vg almacen_00106-1020836520.vg almacen02_00009-229398896.vg almacen02_00015-1328749478.vg
almacen_00089-1809170256.vg almacen_00095-1697353439.vg almacen_00101-1254758861.vg almacen_00107-970733176.vg almacen02_00010-450726590.vg almacen02_00016-1837155553.vg
almacen_00090-1207025000.vg almacen_00096-957681086.vg almacen_00102-2043146008.vg almacen_00108-1869178970.vg almacen02_00011-1203791252.vg pve_00000-1945571719.vg
almacen_00091-51989128.vg almacen_00097-1218828128.vg almacen_00103-695721838.vg almacen_00109-318333303.vg almacen02_00012-644325998.vg pve_00001-405027169.vg
almacen_00092-818019305.vg almacen_00098-1141002437.vg almacen_00104-2026725206.vg almacen02_00007-482131662.vg almacen02_00013-240554099.vg pve_00002-1454026000.vg
almacen_00093-8482060.vg almacen_00099-1577313188.vg almacen_00105-339703878.vg almacen02_00008-1312379361.vg almacen02_00014-1290281505.vg


root@srv01:/etc/lvm/archive# cd /etc/lvm/backup

root@srv01:/etc/lvm/backup# ls

almacen almacen02 pve

Any ideas?

Thanks in advanced.
 

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!