Daily Archives: December 26, 2021

ZFS remove and re-add same disk (use different disk labels)

To remove and re-add devices in a zpool, you will need to offline the disk, detach the disk, wipe the gpt partition then re-add it to pool as a new disk. This will re-silver the pool.

sgdisk -Z /dev/disk/by-id/ata-WDC_WD100EMAZ-

Steps.

  1. zpool offline gdata wwn-0x5000cca273cf31b3
  2. zpool detach …
  3. sgdisk -Z …
  4. zpool attach gdata (disk-still-in-mirror-here) (new-disk /dev/disk/by-id/ata-WDC_WD100EMAZ)

Netboot.xyz

Tiny bootable .iso that downloads liveCD images for multiple OS like Debian.