Hi,
after a harddisk-failure i replaced the disk in a zfs-pool and resilvered it (everything is working fine so far). Unfortunately, i choose the device notation for the replacement-harddisk (/dev/sda) and not the ID (containing the serial number) and now the pool looks like this:
Is there a simple way to replace the 'sda' with the ID of the replacement-harddisk? the only way i figured out that might (?) work is this:
I'd like to avoid another full resilvering (or a complete rebuild of the pool from the backup), so i better ask first... ;-)
after a harddisk-failure i replaced the disk in a zfs-pool and resilvered it (everything is working fine so far). Unfortunately, i choose the device notation for the replacement-harddisk (/dev/sda) and not the ID (containing the serial number) and now the pool looks like this:
Code:
NAME STATE READ WRITE CKSUM
local-pool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sda ONLINE 0 0 0
ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0N10NER ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N6JNVNX4 ONLINE 0 0 0
ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N6CYKSR1 ONLINE 0 0 0
Is there a simple way to replace the 'sda' with the ID of the replacement-harddisk? the only way i figured out that might (?) work is this:
Code:
zpool detach local-pool /dev/sda
Code:
zpool attach -f local-pool /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N4JNCD8E /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0N10NER
I'd like to avoid another full resilvering (or a complete rebuild of the pool from the backup), so i better ask first... ;-)