[SOLVED] replacing an rpool disk , question on grub-install

RobFantini

Famous Member
May 24, 2012
2,018
103
133
Boston,Mass
Hello

I replaced a disk in an rpool. Per my notes the last step is to run this on the new disk::
Code:
grub-install /dev/nvme0n1

However that returned:
Code:
grub-install is disabled because this system is booted via proxmox-boot-tool, if you really need to run it, run /usr/sbin/grub-install.real

Is grub-install still needed these days for a replaced rpool disk?
 
I am having trouble with the 2ND step.

here is the disk layout:
Code:
# fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 894.25 GiB, 960197124096 bytes, 1875385008 sectors
Disk model: Micron_7450_MTFDKBA960TFR               
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 262144 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disklabel type: gpt
Disk identifier: 7CB0D5D6-A5E1-49FD-B77D-9810D431CA09

Device           Start        End    Sectors   Size Type
/dev/nvme0n1p1      34       2047       2014  1007K BIOS boot
/dev/nvme0n1p2    2048    1050623    1048576   512M EFI System
/dev/nvme0n1p3 1050624 1562824334 1561773711 744.7G Solaris /usr & Apple ZFS

first seems Okay:
Code:
# proxmox-boot-tool format /dev/nvme0n1p2
UUID="" SIZE="536870912" FSTYPE="" PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" PKNAME="nvme0n1" MOUNTPOINT=""
Formatting '/dev/nvme0n1p2' as vfat..
mkfs.fat 4.2 (2021-01-31)
Done.

then:
Code:
# proxmox-boot-tool init  /dev/nvme0n1p2
Re-executing '/usr/sbin/proxmox-boot-tool' in new private mount namespace..
UUID="" SIZE="536870912" FSTYPE="" PARTTYPE="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" PKNAME="nvme0n1" MOUNTPOINT=""
E: '/dev/nvme0n1p2' has wrong filesystem (!= vfat).

strange that the 1st step shows 'Formatting '/dev/nvme0n1p2' as vfat..' .


then proxmox-boot-tool init : E: '/dev/nvme0n1p2' has wrong filesystem (!= vfat).


what am I doing wrong?
 
I think there was probably a glitch due to not following the documentation . i ended up using
Code:
/usr/sbin/grub-install.real  /dev/nvme0n1
.

I'll mark this closed
 
  • Like
Reactions: leesteken
Hello. Can you confirm me that if Proxmox is installed on Legacy BIOS I should run /usr/sbin/grub-install.real on each disk ?
 
Hello. Can you confirm me that if Proxmox is installed on Legacy BIOS I should run /usr/sbin/grub-install.real on each disk ?
I did this through several upgrades and in fact run it on all drives upon "any" upgrades. Worked so far for me. However, I've just begun wiping the systems and reinstalling for the first time in years as there were some other things to do as well...
 

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!