depasseg
FreeNAS Replicant
- Joined
- Sep 16, 2014
- Messages
- 2,874
So I've been thinking about this, and all I did was use the GUI to replace each drive with the larger one (and then removed the old one). Once I had the 2 larger drives running, I used those steps above to do the expansion.
Code:
[root@freenas1] ~# zpool status freenas-boot [used to check that everything is healthy and to get the partition names] [root@freenas1] ~# zpool set autoexpand=on freenas-boot [set option to auto expand] [root@freenas1] ~# zfs list freenas-boot [confirm space prior to expansion] [root@freenas1] ~# zpool offline freenas-boot ada2p2 [removes the first partition from the pool (substitute with your first drive)] [root@freenas1] ~# zpool online -e freenas-boot ada2p2 [adds the partition to the pool, with the expansion option set] [root@freenas1] ~# zpool offline freenas-boot ada3p2 [removes the second partition from the pool (substitute with your 2nd device)] [root@freenas1] ~# zpool online -e freenas-boot ada3p2 [adds the partition to the pool, with the expansion option set] [root@freenas1] ~# zpool status freenas-boot [check the status] [root@freenas1] ~# zfs list freenas-boot [check the size and compare to the beginning] [root@freenas1] ~# zpool set autoexpand=off freenas-boot [remove option to auto expand]