Boot lvmid issue. Grub rescue

litoss

New Member
Jan 19, 2019
2
0
1
34
After an outage Im not able to boot my home server.

Its a HP Proliant g8 with a microsd and 2 hdds with raid1

Proxmox 4.4 is installed in the microsd and all containers and data I have are on the hdds

This is the error Im getting:

Code:
error: disk 'lvmid/h7PJQA-GR59....' not found.
Entering rescue mode...
grub rescue> ls
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
grub rescue> ls (hd0)
(hd0): Filesystem is unknown.
grub rescue> set
cmdpath=(hd0)
prefix=(lvmid/h7PJQA-GR59....)/boot/grub
root=lvmid/h7PJQA-GR59...


When I try to ls in any of the partitions all of them return "Filesystem is unknown"

I also tried to set the prefix but also threw an error.

PS: I have no backup available(I know...)
 
After an outage Im not able to boot my home server.

Its a HP Proliant g8 with a microsd and 2 hdds with raid1

Proxmox 4.4 is installed in the microsd and all containers and data I have are on the hdds

This is the error Im getting:

Code:
error: disk 'lvmid/h7PJQA-GR59....' not found.
Entering rescue mode...
grub rescue> ls
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
grub rescue> ls (hd0)
(hd0): Filesystem is unknown.
grub rescue> set
cmdpath=(hd0)
prefix=(lvmid/h7PJQA-GR59....)/boot/grub
root=lvmid/h7PJQA-GR59...


When I try to ls in any of the partitions all of them return "Filesystem is unknown"

I also tried to set the prefix but also threw an error.

PS: I have no backup available(I know...)

Boot with a live media and investigate the disk then.
 
Boot with a live media and investigate the disk then.

I have used boot-repair-disk to inspect the disks and get the all the data with Boot-Info.

This is what it printed out(I cant insert it in here because its too long):

pastebin.com/rP6515z9


Analyzing it I can see all the disks and physically identify them as:

sda - HDD2TB(RAID 1)
sdb - USB(BOOT-REPAIR-DISK)
sdc - MicroSD
sdd - HDD2TB(RAID 1)

It suggests an automatic repair with Boot-Repair that will reinstall grub on the broken disk(sdc). But I dont understand the EFI part. I have searched about the EFI mode on the BIOS but I think its not supported on the proliant g8(only g9 and forward) so I dont know if it would work and how I would fix it including this
Please do not forget to make your BIOS boot on sdc2/efi/.../grub*.efi file!

Thank you for your help
 
Last edited:
I have used boot-repair-disk to inspect the disks and get the all the data with Boot-Info.

This is what it printed out(I cant insert it in here because its too long):

pastebin.com/rP6515z9


Analyzing it I can see all the disks and physically identify them as:

sda - HDD2TB(RAID 1)
sdb - USB(BOOT-REPAIR-DISK)
sdc - MicroSD
sdd - HDD2TB(RAID 1)

It suggests an automatic repair with Boot-Repair that will reinstall grub on the broken disk(sdc). But I dont understand the EFI part. I have searched about the EFI mode on the BIOS but I think its not supported on the proliant g8(only g9 and forward) so I dont know if it would work and how I would fix it including this

It's probably easier to boot with a Linux live media and investigate the our boot disk; assuming it's /dev/sda run

Code:
parted /dev/sda p

The result should contain:

Code:
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name                  Flags
 1      1049kB  2097kB  1049kB               Grub-Boot-Partition   bios_grub
 2      2097kB  136MB   134MB   fat32        EFI-System-Partition  boot, esp
 3      136MB   18.3GB  18.1GB               PVE-LVM2-Partition    lvm
 4      18.3GB  500GB   482GB   ext4


Partition 3 should contain the lvm for root, run to verify this run

Code:
 pvs;lvs

which should bring as a result something like

Code:
  PV         VG    Fmt  Attr PSize  PFree 
 
  /dev/sda3  pve lvm2 a--  15.87g    1.87g
  LV             VG    Attr       LSize Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data           pve-wi-a----- 8.38g                                                 
  root           pve-wi-a----- 3.75g                                                 
  swap           pve -wi-a----- 1.88g
 
After an outage Im not able to boot my home server.

Its a HP Proliant g8 with a microsd and 2 hdds with raid1

Proxmox 4.4 is installed in the microsd and all containers and data I have are on the hdds

This is the error Im getting:

Code:
error: disk 'lvmid/h7PJQA-GR59....' not found.
Entering rescue mode...
grub rescue> ls
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
grub rescue> ls (hd0)
(hd0): Filesystem is unknown.
grub rescue> set
cmdpath=(hd0)
prefix=(lvmid/h7PJQA-GR59....)/boot/grub
root=lvmid/h7PJQA-GR59...


When I try to ls in any of the partitions all of them return "Filesystem is unknown"

I also tried to set the prefix but also threw an error.

PS: I have no backup available(I know...)


I had the similar problem. Had you solve the problem yet?
 
Did you able to resolve the issue? I'm having the same error and data is not available as don't have backup. I don't want to lost the data. :(
 
Help me.
I did not turn on the proxmox server.
I have only been able to access by chroot from the systemrecuecd.

* Error Grub:
error disk 'lvmid/XyYOqp-wfj3-zsZC-s1d4-...' .
Entering rescue mode...

* Error install grub:
grub-probe --device /dev/pve/root
grub-probe: error: no s'ha trobat el disc «lvmid/XyYOqp-wfj3-zsZC-s1d4-jLw6-2XfG-kk1hmE/lbOS2h-dvdX-U18v-zubX-v5Cn-vjUQ-gzTvgi».

grub-install /dev/sda
S'està instal·lant per la plataforma x86_64-efi.
File descriptor 4 (/dev/sda2) leaked on vgs invocation. Parent PID 5764: grub-install.real
File descriptor 4 (/dev/sda2) leaked on vgs invocation. Parent PID 5764: grub-install.real
grub-install.real: error: no s'ha trobat el disc «lvmid/XyYOqp-wfj3-zsZC-s1d4-jLw6-2XfG-kk1hmE/lbOS2h-dvdX-U18v-zubX-v5Cn-vjUQ-gzTvgi».

* lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- <758,25g 19,05 1,16
root pve -wi-ao---- 96,00g
snap_vm-300-disk-0_moodle388 pve Vri---tz-k 10,00g data vm-300-disk-0
snap_vm-605-disk-0_snap20211010 pve Vri---tz-k 4,00g data vm-605-disk-0
snap_vm-605-disk-0_snap20211017 pve Vri---tz-k 4,00g data vm-605-disk-0
snap_vm-605-disk-0_snap20211024 pve Vri---tz-k 4,00g data vm-605-disk-0
snap_vm-605-disk-1_snap20211010 pve Vri---tz-k 2,00g data vm-605-disk-1
snap_vm-605-disk-1_snap20211017 pve Vri---tz-k 2,00g data vm-605-disk-1
snap_vm-605-disk-1_snap20211024 pve Vri---tz-k 2,00g data vm-605-disk-1
swap pve -wi-a----- 8,00g
vm-102-disk-0 pve Vwi-a-tz-- 20,00g data 20,49
vm-109-disk-0 pve Vwi-a-tz-- 30,00g data 25,53
vm-111-disk-0 pve Vwi-a-tz-- 20,00g data 22,21
vm-114-disk-0 pve Vwi-a-tz-- 50,00g data 17,91
vm-121-disk-0 pve Vwi-a-tz-- 20,00g data 73,71
vm-152-disk-0 pve Vwi-a-tz-- 20,00g data 95,54
vm-188-disk-0 pve Vwi-a-tz-- 10,00g data 10,87
vm-200-disk-0 pve Vwi-a-tz-- 20,00g data 13,56
vm-204-disk-0 pve Vwi-a-tz-- 50,00g data 5,73
vm-205-disk-0 pve Vwi-a-tz-- 8,00g data 91,16
vm-300-disk-0 pve Vwi-a-tz-- 10,00g data 40,58
vm-400-disk-0 pve Vwi-a-tz-- 8,00g data 24,00
vm-605-disk-0 pve Vwi-a-tz-- 4,00g data 98,36
vm-605-disk-1 pve Vwi-a-tz-- 2,00g data 98,16
vm-605-state-snap20211010 pve Vwi-a-tz-- <4,49g data 45,26
vm-605-state-snap20211017 pve Vwi-a-tz-- <4,49g data 45,31
vm-605-state-snap20211024 pve Vwi-a-tz-- <4,49g data 45,44
vm-906-disk-0 pve Vwi-a-tz-- 1,00g data 55,12
vm-9106-disk-0 pve Vwi-a-tz-- 10,00g data 31,93
vm-912-disk-0 pve Vwi-a-tz-- 30,00g data 98,00
vm-956-disk-0 pve Vwi-a-tz-- 1,91g data 27,34
vm-964-disk-0 pve Vwi-a-tz-- 19,07g data 69,15

* uname -a
Linux sysrescue 5.10.70-1-lts #1 SMP Thu, 30 Sep 2021 09:43:10 +0000 x86_64 GNU/Linux

* pveversion
pve-manager/7.0-13/7aa7e488 (running kernel: 5.10.70-1-lts)
 
Help me.
I did not turn on the proxmox server.
I have only been able to access by chroot from the systemrecuecd.

* Error Grub:
error disk 'lvmid/XyYOqp-wfj3-zsZC-s1d4-...' .
Entering rescue mode...

* Error install grub:
grub-probe --device /dev/pve/root
grub-probe: error: no s'ha trobat el disc «lvmid/XyYOqp-wfj3-zsZC-s1d4-jLw6-2XfG-kk1hmE/lbOS2h-dvdX-U18v-zubX-v5Cn-vjUQ-gzTvgi».

grub-install /dev/sda
S'està instal·lant per la plataforma x86_64-efi.
File descriptor 4 (/dev/sda2) leaked on vgs invocation. Parent PID 5764: grub-install.real
File descriptor 4 (/dev/sda2) leaked on vgs invocation. Parent PID 5764: grub-install.real
grub-install.real: error: no s'ha trobat el disc «lvmid/XyYOqp-wfj3-zsZC-s1d4-jLw6-2XfG-kk1hmE/lbOS2h-dvdX-U18v-zubX-v5Cn-vjUQ-gzTvgi».

* lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- <758,25g 19,05 1,16
root pve -wi-ao---- 96,00g
snap_vm-300-disk-0_moodle388 pve Vri---tz-k 10,00g data vm-300-disk-0
snap_vm-605-disk-0_snap20211010 pve Vri---tz-k 4,00g data vm-605-disk-0
snap_vm-605-disk-0_snap20211017 pve Vri---tz-k 4,00g data vm-605-disk-0
snap_vm-605-disk-0_snap20211024 pve Vri---tz-k 4,00g data vm-605-disk-0
snap_vm-605-disk-1_snap20211010 pve Vri---tz-k 2,00g data vm-605-disk-1
snap_vm-605-disk-1_snap20211017 pve Vri---tz-k 2,00g data vm-605-disk-1
snap_vm-605-disk-1_snap20211024 pve Vri---tz-k 2,00g data vm-605-disk-1
swap pve -wi-a----- 8,00g
vm-102-disk-0 pve Vwi-a-tz-- 20,00g data 20,49
vm-109-disk-0 pve Vwi-a-tz-- 30,00g data 25,53
vm-111-disk-0 pve Vwi-a-tz-- 20,00g data 22,21
vm-114-disk-0 pve Vwi-a-tz-- 50,00g data 17,91
vm-121-disk-0 pve Vwi-a-tz-- 20,00g data 73,71
vm-152-disk-0 pve Vwi-a-tz-- 20,00g data 95,54
vm-188-disk-0 pve Vwi-a-tz-- 10,00g data 10,87
vm-200-disk-0 pve Vwi-a-tz-- 20,00g data 13,56
vm-204-disk-0 pve Vwi-a-tz-- 50,00g data 5,73
vm-205-disk-0 pve Vwi-a-tz-- 8,00g data 91,16
vm-300-disk-0 pve Vwi-a-tz-- 10,00g data 40,58
vm-400-disk-0 pve Vwi-a-tz-- 8,00g data 24,00
vm-605-disk-0 pve Vwi-a-tz-- 4,00g data 98,36
vm-605-disk-1 pve Vwi-a-tz-- 2,00g data 98,16
vm-605-state-snap20211010 pve Vwi-a-tz-- <4,49g data 45,26
vm-605-state-snap20211017 pve Vwi-a-tz-- <4,49g data 45,31
vm-605-state-snap20211024 pve Vwi-a-tz-- <4,49g data 45,44
vm-906-disk-0 pve Vwi-a-tz-- 1,00g data 55,12
vm-9106-disk-0 pve Vwi-a-tz-- 10,00g data 31,93
vm-912-disk-0 pve Vwi-a-tz-- 30,00g data 98,00
vm-956-disk-0 pve Vwi-a-tz-- 1,91g data 27,34
vm-964-disk-0 pve Vwi-a-tz-- 19,07g data 69,15

* uname -a
Linux sysrescue 5.10.70-1-lts #1 SMP Thu, 30 Sep 2021 09:43:10 +0000 x86_64 GNU/Linux

* pveversion
pve-manager/7.0-13/7aa7e488 (running kernel: 5.10.70-1-lts)

After several tests I no longer get the error.
Now I need to start the normal grub menu.

open systemrescuecd usb :

e2fsck -ff /dev/pve/root
resize2fs /dev/pve/root 95G # size 96G - 1G
lvreduce -L -1G /dev/pve/root
modprobe efivarfs
mount /dev/mapper/pve-root /mnt
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
mount -t devpts pts /mnt/dev/pts/
chroot /mnt

# run inside the chroot:
mount /dev/sda2 /boot/efi
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
update-grub
grub-install /dev/sda
 

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!