Skip to content

Instantly share code, notes, and snippets.

@logich
Last active February 22, 2024 19:56
Show Gist options
  • Select an option

  • Save logich/bd42d99faead0ac677563d2e1fdb2bcb to your computer and use it in GitHub Desktop.

Select an option

Save logich/bd42d99faead0ac677563d2e1fdb2bcb to your computer and use it in GitHub Desktop.
migrating to larger disks with a zfs mirror

This was confusing and I had to do a lot of searching to find the right terms.

My process was:

  1. break the mirror (zpool split pool pool2) to keep a backup offline.
  2. look up the wwn number to sata port in /dev/disk/by-id
  3. power down the system and unplug the pool disk to keep
  4. plug in the two new disks and join them to the mirror (zpool attach pool wwn-existing-member wwn-new-disk)
  5. wait 18-24 hours for resilvering to complete

references

  1. breaking the mirror - https://docs.oracle.com/cd/E19253-01/819-5461/gcfhe/index.html

  2. attaching new disks to a mirror - https://docs.oracle.com/cd/E19253-01/819-5461/gjooc/index.html

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