[SOLVED] suddenly, grub fails to boot PBS

giovvv

Active Member
Aug 4, 2018
45
0
26
56
Today, I started my Proxmox Backup server, and grub fails to boot.

The server is a repurposed old machine with two 4TB HDD with ZFS RAID 1.

This kind of failure happened to me in the past with PVE, when I was trying to have ZFS disks connected to a Dell PERC controller (an unhealthy idea that I later abandoned). But this time it is not that case: this is a very simple desktop machine with no strange controller and the HDDs directly connected to the motherboard.

Enclosed are the snapshots of GRUB (set debug=all).

What can I do now?

4BC37D57-9930-4A74-982E-34C01831AED0.jpeg

CF3F299A-6D4B-412D-8EB0-F01C5CFA3722.jpeg
 
For anyone that could encounter the same problem: turns out the problem was that I had created a zfs dataset (in addition to the ones created by the PBS installer) without specifying the dnodesize=legacy option. When grub encounters a dataset with dnodesize=auto (the default), it fails to boot.

I solved it this way, rather quickly and with no data loss:
  1. Removed the disks from the server and putting them in an USB enclosure.
  2. Connected the enclosure to another zfs-capable machine; imported the zfs pool there.
  3. Found out the problematic dataset with zfs get -r dnodesize rpool
  4. Moved the contents of the dataset to a brand new one, this time created with dnodesize=legacy
  5. Destroyed the offending dataset
  6. Exported the zfs pool
  7. Put back the disks in the PBS server, which now is able to boot as before.
For more details see this article from which I got the general idea.
 
Last edited:

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!