[SOLVED] ZFS mirror disk replacement failed

hendrikausb

New Member
Jul 24, 2022
6
0
1
Hi there,
In my ZFS pool, an SSD broke after a short time. Then I tested the disk formatted in my Windows PC and replaced it again with the same disk on my Proxmox Host. The operation failed :rolleyes:.
If I enter the replace command again, the following message appears:

zpool replace -f rpool /dev/disk/by-id/ata-WDC_WDS500G1R0A-68A4W0_22034Z804998-part1 /dev/disk/by-id/ata-WDC_WDS500G1R0A-68A4W0_22034Z804998-part3

/dev/disk/by-id/ata-WDC_WDS500G1R0A-68A4W0_22034Z804998-part1 with /dev/disk/by-id/ata-WDC_WDS500G1R0A-68A4W0_22034Z804998-part3: /dev/disk/by-id/ata-WDC_WDS500G1R0A-68A4W0_22034Z804998_22034Z804998 -part3 is busy, or device removal is in progress

In the picture you can also see that both partitions (both the same hard disk) are OFFLINE. What can I do to execute the replace command or to remove one of these partitions?

Greetings Hendrik
 

Attachments

  • replacing.PNG
    replacing.PNG
    30 KB · Views: 18
Instead of a replace you can try to detach the device and add the new one.
Maybe this moves you forward.
 
  • Like
Reactions: hendrikausb
I exchanged the ssd for a new one. after that I was able to run the replace command.
now the system is working properly again.
I'll keep one of these in stock from now on. :cool:

Many Thanks
 
Depending on your workload you will probably eat up ssds pretty quick with zfs.
This is one of the downsides of zfs...
If you look for new ones at some time try to get some datace term ssds (even if they are used). The cheap consumer stuff as of these days does not play nicely...
My old mlc ssds hold up quite OK. But it is not optimal either
 
  • Like
Reactions: hendrikausb

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!