John Gorst
Dabbler
- Joined
- Dec 18, 2014
- Messages
- 15
FreeNas 9.3-stable on N40L 8gb
I have two 500gb (approx) disks running as a ZFS mirror.
I want to change them to two 3gb disks.
I have capacity to have all four to be installed at the same time.
If I use the GUI I need to 'replace' one of the 500gb disks with a 3tb disk.... this means I am running on only one disk whilst it is replicating which will be slower and more 'risky'
Can I just use the CLI to attach the 3gb disks to the Mirror and later remove the old ones?
(where ada2 and ada3 are the new 3tb disks)
However I note that the existing disks seem to have partitions on them...swap file and random space?. Do I need to replicate this swap file partition and how?
I have found similar questions in the past but can't find a succinct answer for a recent version. A previous answer asked for a 8gb swap file in a gpart command so I was not entirely convinced to its reliability.
Thanks for any help
I have two 500gb (approx) disks running as a ZFS mirror.
I want to change them to two 3gb disks.
I have capacity to have all four to be installed at the same time.
If I use the GUI I need to 'replace' one of the 500gb disks with a 3tb disk.... this means I am running on only one disk whilst it is replicating which will be slower and more 'risky'
Can I just use the CLI to attach the 3gb disks to the Mirror and later remove the old ones?
(where ada2 and ada3 are the new 3tb disks)
Code:
zpool attach datastore ada2 ada3 (give it time to resilver) zpool detach datastore ada0 ada1
However I note that the existing disks seem to have partitions on them...swap file and random space?. Do I need to replicate this swap file partition and how?
I have found similar questions in the past but can't find a succinct answer for a recent version. A previous answer asked for a 8gb swap file in a gpart command so I was not entirely convinced to its reliability.
Code:
[root@garage] ~# gpart show ada0 => 34 976773101 ada0 GPT (465G) 34 2014 - free - (1M) 2048 976754688 1 !6a898cc3-1dd2-11b2-99a6-080020736631 (465G) 976756736 16384 9 !6a945a3b-1dd2-11b2-99a6-080020736631 (8.0M) 976773120 15 - free - (7.5k)
Thanks for any help