Chris Tobey
Contributor
- Joined
- Feb 11, 2014
- Messages
- 114
Hello everyone,
I have a fairly simple question that may or may not be possible, but here is what I want to do:
Take a current 5 x 4TB RAIDZ-1 vdev and turn it into a 6 x 4TB RAIDZ-2.
In order to do this I believe I will need a total of 11 x 4TB drives (which I have).
Steps:
1. Have 5 x 4TB RAIDZ-1 vdev.
2. Acquire and install additional 6 x 4TB drives.
3. Add a RAIDZ-2 mirror to existing 5 x 4TB RAIDZ-1 vdev.
4. Wait for zpool to complete the mirroring.
5. Remove 5 x 4TB RAIDZ-1 vdev.
6. Now only a 6 x 4TB RAIDZ-2 is left.
So far I have completed steps 1 and 2, but am stuck on how to do numbers 3 and 5 correctly (if even possible?)
Current setup is:
Anyone know if this is possible, and if so, how to do it?
My other option would be to somehow manually do this, but I am hoping ZFS has this built in.
EDIT: The solution is to not use mirroring, but instead create a new pool and replicate the data. Full steps are in the posts below.
I have a fairly simple question that may or may not be possible, but here is what I want to do:
Take a current 5 x 4TB RAIDZ-1 vdev and turn it into a 6 x 4TB RAIDZ-2.
In order to do this I believe I will need a total of 11 x 4TB drives (which I have).
Steps:
1. Have 5 x 4TB RAIDZ-1 vdev.
2. Acquire and install additional 6 x 4TB drives.
3. Add a RAIDZ-2 mirror to existing 5 x 4TB RAIDZ-1 vdev.
4. Wait for zpool to complete the mirroring.
5. Remove 5 x 4TB RAIDZ-1 vdev.
6. Now only a 6 x 4TB RAIDZ-2 is left.
So far I have completed steps 1 and 2, but am stuck on how to do numbers 3 and 5 correctly (if even possible?)
Current setup is:
Code:
# zpool status pool: SG1 state: ONLINE scan: scrub repaired 0 in 27h16m with 0 errors on Mon Nov 24 03:16:25 2014 config: NAME STATE READ WRITE CKSUM SG1 ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 gptid/87cd9f83-560a-11e3-a185-000c29e0733d ONLINE 0 0 0 gptid/884c73c9-560a-11e3-a185-000c29e0733d ONLINE 0 0 0 gptid/88ca162e-560a-11e3-a185-000c29e0733d ONLINE 0 0 0 gptid/8947f033-560a-11e3-a185-000c29e0733d ONLINE 0 0 0 gptid/dadf2c63-5866-11e3-b40f-000c29e0733d ONLINE 0 0 0 spares gptid/9dab55e6-6674-11e3-b84a-000c29e0733d AVAIL errors: No known data errors
Anyone know if this is possible, and if so, how to do it?
My other option would be to somehow manually do this, but I am hoping ZFS has this built in.
EDIT: The solution is to not use mirroring, but instead create a new pool and replicate the data. Full steps are in the posts below.
Last edited: