Improperly replaced failing drive

Proximate

Member
Feb 13, 2022
219
12
23
64
I don't recall where but I had a link showing that when a drive fails, you need to run a few commands to properly replace it.
Over the weekend, I accidentally replaced a failing drive in a 4 drive ZFS array without running any commands.

Now, around 8hrs later, I'm back from the location and looking at the host.
There is no mention of any problems, all four drives are in OK smart status.
Should I be concerned? Migrate the last two vms off that host, rebuild it or can it be trusted to move vms back onto it?
 
Hi,

can you provide the output of zpool status $poolname (where $poolname is the name of the zfs pool the drive is in)?
 
  • Like
Reactions: Proximate
Ah yes, I didn't look at the pool and sure enough, it is degraded.

# zpool status rpool pool: rpool state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'.

Since I only have two vms on this host, it will probably be easier to just migrate them away, re-install proxmox and put those and the others I moved off back. Unless, there is a way to fix this in the condition it's in.
I've already replaced it so 'zpool replace' seems like it's too late?

Thanks for the link btw, I was going to look for that to put into my notes.
 
I just went ahead and rebuilt the host. Next time, I'll follow the guidelines but it seems faster to rebuild than waiting for a drive to sync up after being replaced.
 

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!