Hard drive replacement procedure

biddy

New Member
Apr 9, 2014
7
0
1
Hello all,

I am running Proxmox VE on a server in my house. Right now it is set up with a 240GB SSD that Proxmox is installed on as well as a couple KVMs. There is also a 1TB hard drive that holds about 10 KVMs and one Windows XP VM. The 1TB hard drive is set up as the data drive for Proxmox, the 240GB SSD is set up as local.

The 1TB hard drive is currently giving i/o errors and some of the VMs are crashing with segfaults. I believe I need to replace this drive. What is the proper procedure to do this? I don't have Ceph or glusterfs or anything like that set up, it's just the 1TB mapped as data under the LVM Proxmox set up. Can I just use something like dd or clonezilla to copy from the dying hard drive to a new one? Do I need to remove the lv, vg or pv and re-add them?
 
If the drive is dying, ddrescue is best. You can try clonezilla, it will be faster, but doesn't handle errors as well. Don't do pvmove because if the drive dies in process, it will complicate recovery.

ddrescue is a 2 stage process. You will need to Google how to do it, just make sure you use the log file. Systemrescuecd has it already installed.