replace

blkid
lsblk -r|awk 'NR==1{print $0" DEVICE-ID(S)"}NR>1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'
sdb 8:16 0 2.7T 0 disk   /dev/disk/by-id/wwn-0x5000cca0585fdc44 /dev/disk/by-id/scsi-35000cca0585fdc44
zpool offline data 8254740297691293767
zpool replace data 8254740297691293767 /dev/disk/by-id/wwn-0x5000cca0585fdc44

Revision #1
Created Mon, Feb 17, 2020 6:11 PM by Bodo
Updated Mon, Feb 17, 2020 6:12 PM by Bodo