I accidentally extended a pool...

Status
Not open for further replies.

Hexland

Contributor
Joined
Jan 17, 2012
Messages
110
So, I have a large zpool (6 x 3TB drives) in Raid-Z2 configuration
I am running FreeNAS-9.3-STABLE-201605170422

NAME STATE READ WRITE CKSUM
ZPOOL01 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/9ea254b9-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
gptid/9f102407-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
gptid/9f8ce57c-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
gptid/a01d5dc8-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
gptid/a08e24a6-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
gptid/a1087fc2-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0


I added 2 new drives to the machine, and intended to set them up as a new pool, and mirror them.
However, I screwed up and added them to my main pool (so it now looks like this...)

NAME STATE READ WRITE CKSUM
ZPOOL01 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/9ea254b9-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
gptid/9f102407-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
gptid/9f8ce57c-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
gptid/a01d5dc8-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
gptid/a08e24a6-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
gptid/a1087fc2-cdc2-11e4-8155-000c29ade91a ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
gptid/cc2e0647-61e4-11e6-aa6c-000c29ade91a ONLINE 0 0 0
gptid/ce359085-61e4-11e6-aa6c-000c29ade91a ONLINE 0 0 0


How do I safely remove these drives from my original pool without destroying anything?

Thanks
 

CraigD

Patron
Joined
Mar 8, 2016
Messages
343
You can't unless you destroy the pool at least it is a mirror


Have Fun
 

Hexland

Contributor
Joined
Jan 17, 2012
Messages
110
A mirror of what though?
It's only 2 x 2TB drives... are they a mirror of each other - so I've just extended my pool by 2TB?
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Yes, exactly ;)
 

DaveY

Contributor
Joined
Dec 1, 2014
Messages
141
I've yet to find a way to remove drives from a pool. Only option is to build a separate pool, move all the data there and then rebuild the pool and move the data back. On the bright side, it'll clean up fragmentations. :)
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
I've yet to find a way to remove drives from a pool.
Exactly, you cannot as told in the first reply to your posting.
On the bright side, it'll clean up fragmentations. :)
At least you found the bright side, many just get all pissy and complain about it. There are things we can do but one thing we can't do is change the way ZFS works and this has nothing to do with FreeNAS.
 

Mirfster

Doesn't know what he's talking about
Joined
Oct 2, 2015
Messages
3,215

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Status
Not open for further replies.
Top