Change bad HDD, containing /dev/sda BIOS boot

Apr 24, 2022
1
0
1
Hello everybody

I have three physical servers, running proxmox VE and hosting several VMs without troubles.
Lately, on px2 one HDD starts to fail the SMART testing routines.
I have an identical new HDD here and would like to change it.
So far so good.

In px2, there are four HDDs. Unfortunatley, the one which fails is device /dev/sda and contains the BIOS boot partion:
  • /dev/sda BIOS boot, ZFS, ZFS reserved
  • /dev/sdb ZFS, ZFS reserved
  • /dev/sdc zfs_member
  • /dev/sdd xfs, Ceph, ceph_bluestore

Bash:
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 465.8G  0 disk
├─sda1    8:1    0  1007K  0 part
├─sda2    8:2    0 465.8G  0 part
└─sda9    8:9    0     8M  0 part
sdb       8:16   0 465.8G  0 disk
├─sdb1    8:17   0 465.8G  0 part
└─sdb9    8:25   0     8M  0 part
sdc       8:32   0   3.6T  0 disk
sdd       8:48   0   3.6T  0 disk
├─sdd1    8:49   0   100M  0 part /var/lib/ceph/osd/ceph-0
└─sdd2    8:50   0   3.6T  0 part
zd0     230:0    0   200G  0 disk
├─zd0p1 230:1    0   243M  0 part
├─zd0p2 230:2    0     1K  0 part
├─zd0p3 230:3    0    50G  0 part
├─zd0p4 230:4    0   100G  0 part
└─zd0p5 230:5    0  49.8G  0 part
zd16    230:16   0     8G  0 disk [SWAP]

All VMs (guests) are moved to the other nodes.

I found several "ideas" how to change HDDs on proxmox installations. But none of them is very clear to me and seems to match my setup.
Is there somewhere a simple recipe to follow for my situation?
Or is the best way to change the HDD and reinstall PROXMOX?

Any feedback is highly appreciated.

Thank you.
Marco
 
Have you tried something like dd if=/dev/sda of=dev/newhdd bs=1M ?
 

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!