Tag Archives: example

Zpool: Replace Command Example

  • ls -l /dev/disk/by-id (to identify new drives)
  • /dev/disk/by-id/wwn-0x5000c5004dd9fc1f = new drive
  • zpool status (to identify bad drives)
  •  UNAVAIL      was /dev/disk/by-id/wwn-0x5000c50050824183-part1 = bad drive
  • zpool replace -f hoppingjohndodson /dev/disk/by-id/wwn-0x5000c50050824183 /dev/disk/by-id/wwn-0x5000c5004dd9fc1f
  • replacing-1 UNAVAIL 0 0 0
    10366474612948495445 UNAVAIL 0 0 0 was /dev/disk/by-id/wwn-0x5000c50050824183-part1
    wwn-0x5000c5004dd9fc1f ONLINE 0 0 0 (resilvering)
Advertisements