Hi,
I need to replace the hardrive of my proxmox host. I test the following which seems to work but I would like to know if there is a better way or if problem can occurs in the future.
Here is the step I have done with a running test proxmox.
The setup :
Current disk : /dev/vda with (vda1 : bios boot, vda2 : Efi, vda3: lvm )
New disk /dev/vdb
Then remove the old disk and reboot.
Is it a proper way to do this ?
I need to replace the hardrive of my proxmox host. I test the following which seems to work but I would like to know if there is a better way or if problem can occurs in the future.
Here is the step I have done with a running test proxmox.
The setup :
Current disk : /dev/vda with (vda1 : bios boot, vda2 : Efi, vda3: lvm )
New disk /dev/vdb
Code:
sgdisk --backup=table.gpt /dev/vda
sgdisk --load-backup=table.gpt /dev/vdb
dd if=/dev/vda1 of=/dev/vdb1 bs=4M conv=notrunc status=progress
dd if=/dev/vda2 of=/dev/vdb2 bs=4M conv=notrunc status=progress
pvcreate /dev/vdb3
vgextend pve /dev/vdb3
pvmove /dev/vda3 /dev/vdb3
vgreduce pve /dev/vda3
shutdown -h now
Is it a proper way to do this ?
Last edited: