Upgrade 6 to 7 - Bootloader Switch Problem

Apr 4, 2018
8
0
21
Hi,

ich betreibe eine Proxmox-Installation, die vor 5.4 mit zfs als RootFS aufgesetzt wurde und außerdem über BIOS bootet. Dementsdprechend habe ich keine Partitionen übrig, die dem proxmox-boot-tool übergeben werden können. Da die Hardware in (hoffentlich) naher Zukunft ausgetauscht wird, habe ich mich dagegen entschieden den Cluster neu zu installieren, was andere Probleme mit sich bringen würde.
Als zeitliche begrenzten Workaround habe ich nun für jeden Clustermember 2 USB-Sticks bestellt un angeschlossen. Allerdings lassen sich die ESPs nicht initialisieren. Was mache ich falsch?


Code:
root@pve01:~# pveversion
pve-manager/6.4-15/af7986e6 (running kernel: 5.4.195-1-pve)

root@pve01:~# wipefs -a /dev/sdc
root@pve01:~# fdisk /dev/sdc
g <return>
n <return>
w <return>
 
root@pve01:~# proxmox-boot-tool format /dev/sdc1
UUID="" SIZE="4025466368" FSTYPE="" PARTTYPE="0fc63daf-8483-4772-8e79-3d69d8477de4" PKNAME="sdc" MOUNTPOINT=""
Setting partition type of '/dev/sdc1' to 'c12a7328-f81f-11d2-ba4b-00a0c93ec93b'..
The operation has completed successfully.
Calling 'udevadm settle'..
Formatting '/dev/sdc1' as vfat..
mkfs.fat 4.1 (2017-01-24)
Done.

root@pve01:~# proxmox-boot-tool init /dev/sdc1
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
UUID="43DC-12E1" SIZE="4025466368" FSTYPE="vfat" PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" PKNAME="sdc" MOUNTPOINT=""
Mounting '/dev/sdc1' on '/var/tmp/espmounts/43DC-12E1'.
Installing grub i386-pc target..
Installing for i386-pc platform.
grub-install.real: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install.real: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install.real: error: will not proceed with blocklists.

root@pve01:~# fdisk -l /dev/sdc
Disk /dev/sdc: 3.8 GiB, 4026531840 bytes, 7864320 sectors
Disk model: Rainbow Line
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 9B3BCAD3-23AD-2D41-BB90-69F3AD34858E

Device     Start     End Sectors  Size Type
/dev/sdc1   2048 7864286 7862239  3.8G EFI System
 
Steht doch da. Macht er net, weil's Probleme geben wird. Mit Proxmox auf USB-Sticks wirst du noch weniger Spaß haben als mit dem Warten auf den Hardwaretausch.
 
Ich habe das Problem gelöst und es funktioniert auch mit USB-Sticks

Grub wollte noch eine Bios Boot Partition, die ich dank diesem Post mit gdisk erstellen konnte.

Bash:
wipefs -a /dev/sdc
gdisk /dev/sdc
r - x - l - 34 - m - n - 1 - 34 - 2047 - ef02
r - x - l - 2048 - m - n - 2 - <Return> - <Return>
p - w
proxmox-boot-tool format /dev/sdc2 --force
proxmox-boot-tool init /dev/sdc2

fdisk -l /dev/sdc
[...]
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5DA7B9D1-BCD3-4B19-BD1C-48AC3625597D

Device     Start      End  Sectors  Size Type
/dev/sdc1     34     2047     2014 1007K BIOS boot
/dev/sdc2   2048 59725790 59723743 28.5G EFI System

proxmox-boot-tool status
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
System currently booted with legacy bios
573A-7192 is configured with: grub (versions: 5.15.53-1-pve, 5.4.195-1-pve)
[...]

Wie bereits erwähnt war mir klar, dass die USB-Sticks keine dauerhafte, schöne Lösung sind. Allerdings funktioniert es jetzt erstmal. Die Updates sind ohne Probleme durchgelaufen und alles bootet problemlos.