[SOLVED] Proxmox Re-silvering by ID?

killmasta93

Renowned Member
Aug 13, 2017
974
59
68
31
Hi, I was wondering if someone could shed some light on the issue im having. Recently one of the Disks died and put in a new one and replace it using this command

Code:
 zpool replace vmdata 14183783644472836319 /dev/sde

it resilver perfectly and then i rebooted no issue there. Then one day the Server rebooted and got an alert about the zpool i checked it running zpool status -v and I saw the other disks by Disk ID rather then sdX also looking at the disk id seems that the ID changed the sde to sdf i need the disk ending in 7AS to go back in the pool

My question is what part did i do wrong from these steps? Im going to try it again on Sunday because its a production server.

First delete all the partitions and convert to gpt:

Code:
 fdisk /dev/sdf

Then:


Code:
sgdisk --replicate=/dev/sdf /dev/sde

then randomize the guids

Code:
 sgdisk --randomize-guids /dev/sdf

then finally replace it but i think this time with the disk id?

Code:
 zpool replace vmdata 10946115601346650490  /dev/disk/by-id/ata-TOSHIBA_HDWD120_672SBE7AS-part1

Thank you
 

Attachments

  • Clipboarder_2018_01_01.png
    Clipboarder_2018_01_01.png
    24.4 KB · Views: 2
  • Clipboarder_2018_01_01_002.png
    Clipboarder_2018_01_01_002.png
    422.8 KB · Views: 1
EDIT: for anyone else having this issue

first export

Code:
 zpool export vmdata

then after exported i labclear it

Code:
zpool labelclear -f /dev/disk/by-id/ata-TOSHIBA_HDWD120_672SBE7AS-part1

then import the

Code:
zpool import vmdata

then i replace it and let it resilver then a reboot all is good

Code:
zpool replace vmdata ata-TOSHIBA_HDWD120_672SBE7AS-part1  /dev/disk/by-id/ata-TOSHIBA_HDWD120_672SBE7AS