Advertisement
yaneurabeya

Untitled

Dec 20th, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Assuming pool is called "tank" and drive to be replaced is "da11":
  2.  
  3. 1. swapoff /dev/da11p1
  4. 2. zpool offline tank /dev/da11p2
  5. (This ensures that no system component is referencing that pool; after
  6. this step the pool would be in 'DEGREADED' state).
  7.  
  8. 3. pull out the drive, insert new drive, wait for drive to appear.
  9. 4. make the same partition layout:
  10. gpart create -s gpt da11
  11. gpart add -b 128 -s 4194304 -t freebsd-swap da11
  12. gpart add -t freebsd-zfs da11
  13.  
  14. 5. zpool replace tank da11p2
  15. 6. swapon /dev/da11p2
  16. 7. zpool detach tank da11p2/old (*)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement