[SOLVED] Nach Reboot Replace HDD wieder FAULTED

xadox

Active Member
Aug 21, 2019
31
3
28
Ich habe einen RAID-Z1. Bei diesem war ein Festplatte defekt und dies hatte ich über folgenden Befehl ausgetauscht:
zpool replace tank3 13124853381932336335 /dev/sda

Dies hatte auch funtkioniert und der Pool war wieder fehlerfrei.
Nach einem Reboot vom Proxmox Host ist die neue HDD allerdings wieder offline:
14929145108158991591 FAULTED 0 0 0 was /dev/sda1

Da die HDD nach dem Reboot nun nicht mehr SDA sondern SDC ist.

Nun wollte ich die HDD erneut über zpool replace tauschen lassen allerdings diesmal über /dev/disk/by-id :
zpool replace tank3 14929145108158991591 ata-WDC_WD40EFAX-68JH4N0_WD-WX22D107J160-part1

Dann erhalte ich allerdings die Meldung, dass das Device bereits Mitglied in diesem Pool ist:

zpool replace -f tank3 14929145108158991591 ata-WDC_WD40EFAX-68JH4N0_WD-WX22D107J160-part1 invalid vdev specification the following errors must be manually repaired: /dev/disk/by-id/ata-WDC_WD40EFAX-68JH4N0_WD-WX22D107J160-part1 is part of active pool 'tank3'

Dann habe ich noch versucht das Device vorab zu detachen:
zpool detach tank3 ata-WDC_WD40EFAX-68JH4N0_WD-WX22D107J160-part1 cannot detach ata-WDC_WD40EFAX-68JH4N0_WD-WX22D107J160-part1: no such device in pool

Nun weiß ich erstmal nicht weiter.
Könnt Ihr ggf. helfen?
 
Eins habe ich noch probiert.
Ich habe über gdisk die Partitionen auf der entsprechenden Platte gelöscht und neu erzeugt.
Anschließende Proxmox neu gestartet.

Wenn ich nun im Anschluss versuche die Disk erneut dem Pool hinzuzufügen erhalten ich:
zpool replace tank3 14929145108158991591 ata-WDC_WD40EFAX-68JH4N0_WD-WX22D107J160 cannot replace 14929145108158991591 with ata-WDC_WD40EFAX-68JH4N0_WD-WX22D107J160: ata-WDC_WD40EFAX-68JH4N0_WD-WX22D107J160 is busy, or device removal is in progress
 
Nachdem ich über DD die komplette Disk gelöscht habe hat es funktioniert:
dd if=/dev/zero of=/dev/sdc bs=1M

Nun konnte ich über folgenden Befehl die Disk erneut hinzufügen:
zpool replace -f tank3 14929145108158991591 /dev/disk/by-id/ata-WDC_WD40EFAX-68JH4N0_WD-WX22D107J160
 

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!