simple zfs raid 1 replace failed disk

ale.ab

Renowned Member
Mar 31, 2015
30
2
73
Bergamo, Italy
Hello,
i'm try to replace an hdd failed.

i have simple proxmox VE with 2 SSD disk 512GB
1 is dead.

i try to replace with 1 hdd SATA 750gb, because is on my lab is not a problem.

i detach ssd broken, attach hdd and on ssh:
zpool replace rpool 9569750636164580599 /dev/sdb

now with
zpool status -v rpool
state: ONLINE

so seems ok, but if i run
fdisk -l

Disk /dev/sda: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
...
Device Start End Sectors Size Type
/dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 1050623 1048576 512M EFI System
/dev/sda3 1050624 1000215182 999164559 476.4G Solaris /usr & Apple ZFS

Disk /dev/sdb: 698.64 GiB, 750156374016 bytes, 1465149168 sectors
...
Device Start End Sectors Size Type
/dev/sdb1 2048 1465131007 1465128960 698.6G Solaris /usr & Apple ZFS
/dev/sdb9 1465131008 1465147391 16384 8M Solaris reserved 1

it seems that the uefi partition is missing , correct?

is correct my procedure to replace hdd fail?

thank you
 
there is a howto for replace hdd failed?

now is happen on my lab , but when happen in production is a normal behaviour?

or am i doing something wrong?

thank you in advance
 
Second too late.
And replacing a SSD with a HDD will slow down the write performance of the remaining SSD to a HDD level.
 
sorry, now i replace correct my drive.
big thank you to point me in right direction.

yes, i know about speed of SSD an HDD , but is only to test .
now if it happens in production i know what to do

thank you again
 
sorry, now i replace correct my drive.
big thank you to point me in right direction.

yes, i know about speed of SSD an HDD , but is only to test .
now if it happens in production i know what to do

thank you again
Good afternoon, would you be so kind as to tell me step by step the procedure you followed? please!!!!!!!!!!!!!!!!!!!!!
 
i follow this step

zpool status -v rpool ... state: DEGRADED ….


get out disk fail and get in new disk

if not new wipe disk on proxmox gui
proxmox-boot-tool status # for example sda disk in use and sdb new disk sgdisk /dev/sda -R /dev/sdb sgdisk -G /dev/sdb proxmox-boot-tool format /dev/sdb2 proxmox-boot-tool init /dev/sdb2 proxmox-boot-tool refresh # check and replace zfs partition zpool status -v rpool # copy name ata-MTFDDAK512MBF-1AN1ZBBHA_162462EA3C7F-part3 REMOVED ls /dev/disk/by-id/ # copy name new disk partition /dev/disk/by-id/ata-ST1000LM035-1RK572_WL1QMG14-part3 zpool status -v rpool zpool replace rpool 15908462487614897982 /dev/disk/by-id/ata-ST1000LM035-1RK572_WL1QMG14-part3 # check if resilver zpool status -v rpool # degraded but resilver
 

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!