[SOLVED] LVM-Thin blocks boot, and now is missing

IsThisThingOn

Active Member
Nov 26, 2021
146
43
33
I think I somehow misunderstood and misconfigured LVM. I come from Windows and went straight into ZFS :) Fortunately only unimportant VMs are on that disk but any help would still be highly appreciated. Here is what I did:

My system uses two NVME mirror ZFS drives. Later on, some friends and I wanted to have a LinuxGameServer for Minecraft and stuff. I don't play these games but thought, sure I will just add another HDD and explained to them, that nothing is saved! This is my slow trash HDD.

I created the LVM Volume group 1.jpg(picture 1), a thinpool on that volumegroup (pic 2).

2.jpg
So today I updated proxmox and rebooted the system. EFI Stub takes quiet some time, but I got used to that. Later on it runs out the a timer on a startup job (that tries to mount the disk?) and goes into emergency mode.
I tried booting the old kernel but no luck. Drive seems to be working and cabeling seems also fine. So I removed the drive from fstab (pic 3)
3.jpg
and proxmox booted.

But now my slowthin with the VM disks is offline . If I click on it, I get this error pic .

4.jpg

This is my datacenter view:

6.jpg


Any idea where I went wrong?
 
Hi fiona

That would also explain the very slow boot.
Is there a reason that this mapping check takes that long? Am I better of by switching to ZFS for the other disk?
 
Hi fiona

That would also explain the very slow boot.
Is there a reason that this mapping check takes that long? Am I better of by switching to ZFS for the other disk?
Well, I guess, because the disk is large there are a lot of mappings to check. And if the disk is also not fast that might take too long. You can try the workaround with disabling the check for the mappings, or switch to ZFS. Your choice ;)
 
Thanks, probably will switch later on to ZFS, when I have more time.
I got this error after setting the check options:

Code:
update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.15.53-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
Copying and configuring kernels on /dev/disk/by-uuid/A9DC-4C2C
        Copying kernel and creating boot-entry for 5.13.19-6-pve
        Copying kernel and creating boot-entry for 5.15.39-3-pve
        Copying kernel and creating boot-entry for 5.15.39-4-pve
cp: error writing '/var/tmp/espmounts/A9DC-4C2C/EFI/proxmox/5.15.39-4-pve/initrd.img-5.15.39-4-pve': No space left on device
run-parts: /etc/initramfs/post-update.d//proxmox-boot-sync exited with return code 1
root@proxmox:~#
 
Sounds like the ESP partition is full. Please see this thread or this thread for how to remove some old kernels to free up some space.
 
proxmox-boot-tool status

ls -al /dev/disk/by-uuid/A9DC-4C2C
lrwxrwxrwx 1 root root 15 Sep 15 13:51 /dev/disk/by-uuid/A9DC-4C2C -> ../../nvme0n1p2


ls -al /dev/disk/by-uuid/A9DC-982D
lrwxrwxrwx 1 root root 15 Sep 15 13:51 /dev/disk/by-uuid/A9DC-982D -> ../../nvme1n1p2

mkdir /tmp/myesp0
mkdir /tmp/myesp1
mount /dev/nvme0n1p2 /tmp/myesp0
mount /dev/nvme1n1p2 /tmp/myesp1
df -h |grep myesp

shows 100% for myesp1



rm -r /tmp/myesp1/loader/entries/proxmox-5.13.19-6-pve.conf
rm -r /tmp/myesp1/initrd.img-5.3.18-3-pve
rm -r /tmp/myesp1/initrd.img-5.3.18-3-pve



After that, the update went trough!
 
  • Like
Reactions: fiona
sorry to resurrect this thread but I find myself having to repeat this process of cleaning out old kernels often.

how can I prevent it? this last time it was 6.5 sticking around.
 
I think you should just run apt autoremove after everyupdate (at least when a new kernel shows up).
I had this problem on one node, and not the other, because it seems that i did not run apt autoremove after the updates.
 

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!