Skip to content

Instantly share code, notes, and snippets.

@ArnaudD
Created January 5, 2017 00:17
Show Gist options
  • Save ArnaudD/e6e3e1496627f2b6820d4f6291198361 to your computer and use it in GitHub Desktop.
Save ArnaudD/e6e3e1496627f2b6820d4f6291198361 to your computer and use it in GitHub Desktop.
Replace zfs disk

find disk location (ex: /dev/sdc)

lshw | less

Add a partition table

parted /dev/disk/by-id/ata-ST1000DM003-1SB102_Z9A788VS mklabel gpt

Check previous ashift value

zdb

Replace disk in pool

zpool replace -o ashift=9 [pool name] [old disk uuid] sdc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment