Hello,
Yesterday i experienced a sudden powerloss, my proxmox node reboots automatically when the power returns.
When the power returned, the node rebooted but i wasn't abte to connect or even ping to it, but it was on.
Attached a screen to it and got this output;
I've did some research on this and booted proxmox debug mode with a usb.
I've tried these steps;
when i ls into /media/RESCUE/boot, there indeed is no grub directory.
There is an EFI directory
when i ls into EFI, there are 3 more directories, DELL, proxmox, and one i forgot out of my head now.
when i ls into proxmox, there was a grubx64.EFI or somthing similar.
Note this is a homeserver on a dell optiplex with a consumer ssd.
Can anybody please help me to restore from this issue.
Thanks
Yesterday i experienced a sudden powerloss, my proxmox node reboots automatically when the power returns.
When the power returned, the node rebooted but i wasn't abte to connect or even ping to it, but it was on.
Attached a screen to it and got this output;
Code:
Error: disk 'lvmid/***' not found.
grub rescue>
I've did some research on this and booted proxmox debug mode with a usb.
I've tried these steps;
Code:
vgscan
found volume group "pve" using metadata type lvm2
vgchange -ay
18 logical volume(s) in volume group "pve" now active
mkdir /media/RESCUE
mount /dev/pve/root /media/RESCUE
EXT4-fs (dm-1): recovery complete
EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
mount /dev/sdb2 /media/RESCUE/boot
FAT-fs (sdb2): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
fsck /dev/sdb2
There are differences between boot sector and its backup.
This is mostly harmless. Differences: (offset:original/backup)
1) Copy original to backup
2) Copy backup to original (I choose this option, hope i didn't f*ck things up more)
3) No action
->Wrote changes
/dev/sdb2: 9 files, 89/138811 clusters
mount /dev/sdb2 /media/RESCUE/boot
mount -t proc proc /media/RESCUE/proc/
mount -t sysfs sys /media/RESCUE/sys/
mount -o bind /dev /media/RESCUE/dev/
mount -o bind /run /media/RESCUE/run
chroot /media/RESCUE/
update-grub
/sbin/grub-mkconfig: 278: cannot create /boot/grub/grub.cfg.new: Directory nonexistent
when i ls into /media/RESCUE/boot, there indeed is no grub directory.
There is an EFI directory
when i ls into EFI, there are 3 more directories, DELL, proxmox, and one i forgot out of my head now.
when i ls into proxmox, there was a grubx64.EFI or somthing similar.
Note this is a homeserver on a dell optiplex with a consumer ssd.
Can anybody please help me to restore from this issue.
Thanks