Replace unavaib disk in promox server - zfs pool

ajsaini

New Member
Aug 25, 2023
13
1
3
Hi everyone,

clearly i am doing something wrong because every blog post/forum i read has almost the same instructions.
my skill level is 5/10 - still learning, first time had the disk failed :(

zpool replace pool_name full_old_disk_path full_new_disk_path
zpool replace rpool /dev/disk/by-id/dev/disk/by-id/ata-ST4000DX000-1C5160_Z1Z00X7K-part3 /dev/disk/by-id/ata-WDC_WD40EFRX-68N32N0_WD-WCC7K4RU953R
This is the cmd i ran and i keep getting the error

lrwxrwxrwx 1 root root 9 Aug 28 20:57 wwn-0x50014ee2bce4285d -> ../../sdd
root@proxmox:/dev/disk/by-id# zpool replace rpool /dev/disk/by-id/dev/disk/by-id/ata-ST4000DX000-1C5160_Z1Z00X7K-part3 /dev/disk/by-id/ata-WDC_WD40EFRX-68N32N0_WD-WCC7K4RU953R
cannot replace /dev/disk/by-id/dev/disk/by-id/ata-ST4000DX000-1C5160_Z1Z00X7K-part3 with /dev/disk/by-id/ata-WDC_WD40EFRX-68N32N0_WD-WCC7K4RU953R: no such device in pool

-------
root@proxmox:~# ls /dev/disk/by-id/ -la
total 0
drwxr-xr-x 2 root root 880 Aug 28 19:59 .
drwxr-xr-x 9 root root 180 Aug 28 19:59 ..
lrwxrwxrwx 1 root root 9 Aug 28 19:59 ata-ST4000DX000-1C5160_Z1Z00V2D -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000DX000-1C5160_Z1Z00V2D-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000DX000-1C5160_Z1Z00V2D-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000DX000-1C5160_Z1Z00V2D-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Aug 28 19:59 ata-ST4000DX000-1C5160_Z1Z00WFV -> ../../sde
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000DX000-1C5160_Z1Z00WFV-part1 -> ../../sde1
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000DX000-1C5160_Z1Z00WFV-part2 -> ../../sde2
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000DX000-1C5160_Z1Z00WFV-part3 -> ../../sde3
lrwxrwxrwx 1 root root 9 Aug 28 19:59 ata-ST4000VN000-1H4168_S300PVMB -> ../../sdf
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000VN000-1H4168_S300PVMB-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000VN000-1H4168_S300PVMB-part2 -> ../../sdf2
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000VN000-1H4168_S300PVMB-part3 -> ../../sdf3
lrwxrwxrwx 1 root root 9 Aug 28 19:59 ata-ST4000VN000-1H4168_Z3013A8T -> ../../sdc
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000VN000-1H4168_Z3013A8T-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000VN000-1H4168_Z3013A8T-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-ST4000VN000-1H4168_Z3013A8T-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 9 Aug 28 19:59 ata-WDC_WD40EFRX-68N32N0_WD-WCC7K4RU953R -> ../../sdd
lrwxrwxrwx 1 root root 9 Aug 28 19:59 ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E1637293 -> ../../sdb
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E1637293-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E1637293-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Aug 28 19:59 ata-WDC_WD40EFRX-68WT0N0_WD-WCC4E1637293-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 9 Aug 28 19:59 wwn-0x5000c50035e091ac -> ../../sde
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c50035e091ac-part1 -> ../../sde1
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c50035e091ac-part2 -> ../../sde2
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c50035e091ac-part3 -> ../../sde3
lrwxrwxrwx 1 root root 9 Aug 28 19:59 wwn-0x5000c50035e80c14 -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c50035e80c14-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c50035e80c14-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c50035e80c14-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Aug 28 19:59 wwn-0x5000c5005d1677db -> ../../sdf
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c5005d1677db-part1 -> ../../sdf1
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c5005d1677db-part2 -> ../../sdf2
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c5005d1677db-part3 -> ../../sdf3
lrwxrwxrwx 1 root root 9 Aug 28 19:59 wwn-0x5000c5006544e19f -> ../../sdc
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c5006544e19f-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c5006544e19f-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x5000c5006544e19f-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 9 Aug 28 19:59 wwn-0x50014ee2b4cae13f -> ../../sdb
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x50014ee2b4cae13f-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x50014ee2b4cae13f-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Aug 28 19:59 wwn-0x50014ee2b4cae13f-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 9 Aug 28 19:59 wwn-0x50014ee2bce4285d -> ../../sdd

once again thank you for answer the question,
 

Attachments

  • Screenshot 2023-08-28 210648.png
    Screenshot 2023-08-28 210648.png
    72.3 KB · Views: 2
  • Screenshot 2023-08-28 210744.png
    Screenshot 2023-08-28 210744.png
    55.3 KB · Views: 2

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!