I want to move Proxmox Virtual Environment 5.4-13 from a hard disk to a slightly larger SSD.
I tried booting into a live cd and using dd to copy the entire disk / block device to the other disk.
dd if=/dev/sda of=/dev/sdb bs=64M
This seems to work okay. All the partitions enumerate correctly and seem intact on the new SSD.
However the bootloader on proxmox is somewhat unusual and I cannot get grub (which was copied over as part of dd) to find the boot info anymore. I get the "grub unknown filesystem" error. This is somewhat expected because the identity of the disk has changed. I'm also not entirely sure if all of the grub information was copied over.
I expect to be able to recover from this by temporarily telling grub which partition /boot and / (root) is located on, then booting in and reinstalling grub. The usual workaround from within grub rescue is:
However all of the filesystems also give the unknown filesystem error.
Listing any of these filesystems or trying to run "insmod normal" returns an unknown filesystem error.
List of partitions on the disk including lvm:
Is there a special process for fixing grub for Proxmox or for LVM based root?
I tried booting into a live cd and using dd to copy the entire disk / block device to the other disk.
dd if=/dev/sda of=/dev/sdb bs=64M
This seems to work okay. All the partitions enumerate correctly and seem intact on the new SSD.
However the bootloader on proxmox is somewhat unusual and I cannot get grub (which was copied over as part of dd) to find the boot info anymore. I get the "grub unknown filesystem" error. This is somewhat expected because the identity of the disk has changed. I'm also not entirely sure if all of the grub information was copied over.
I expect to be able to recover from this by temporarily telling grub which partition /boot and / (root) is located on, then booting in and reinstalling grub. The usual workaround from within grub rescue is:
Code:
set root=(hd0,6)
set prefix=(hd0,6)/boot/grub
insmod normal
normal
However all of the filesystems also give the unknown filesystem error.
Code:
grub rescue> ls
(lvm/pve-root) (lvm/pve-swap) (hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
List of partitions on the disk including lvm:
Code:
root@olddisk:~# lsblk
#other disks omitted / irrelevant
sdl 8:176 0 465.8G 0 disk
├─sdl1 8:177 0 1M 0 part
├─sdl2 8:178 0 256M 0 part /boot/efi
└─sdl3 8:179 0 465.5G 0 part
├─pve-swap 253:0 0 8G 0 lvm [SWAP]
├─pve-root 253:1 0 96G 0 lvm /
├─pve-data_tmeta 253:9 0 3.5G 0 lvm
│ └─pve-data-tpool 253:11 0 338.6G 0 lvm
│ ├─pve-data 253:12 0 338.6G 0 lvm
│ ├─pve-vm--100--disk--1 253:13 0 50G 0 lvm
│ ├─pve-vm--101--disk--1 253:14 0 50G 0 lvm
│ ├─pve-vm--101--disk--2 253:15 0 32G 0 lvm
│ ├─pve-vm--102--disk--1 253:16 0 128G 0 lvm
│ └─pve-vm--103--disk--1 253:17 0 128G 0 lvm
└─pve-data_tdata 253:10 0 338.6G 0 lvm
└─pve-data-tpool 253:11 0 338.6G 0 lvm
├─pve-data 253:12 0 338.6G 0 lvm
├─pve-vm--100--disk--1 253:13 0 50G 0 lvm
├─pve-vm--101--disk--1 253:14 0 50G 0 lvm
├─pve-vm--101--disk--2 253:15 0 32G 0 lvm
├─pve-vm--102--disk--1 253:16 0 128G 0 lvm
└─pve-vm--103--disk--1 253:17 0 128G 0 lvm
Is there a special process for fixing grub for Proxmox or for LVM based root?
Last edited: