Mirror pool to stripe

Status
Not open for further replies.

robles

Explorer
Joined
Jul 29, 2014
Messages
89
I no longer need the redundancy of a mirror pool, so I'd like to have two volumes using two physical disks.

Is there any way to wipe one of the drives and convert the mirror pool to stripe without having to copy all the files outside the mirror?

Thanks!
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
You should be able to detach one of the drives from the mirror. Then it could be added as a new vdev.
 

robles

Explorer
Joined
Jul 29, 2014
Messages
89
Thanks, would the pool change from mirror to stripe if I detach the drive? I'll try and simulate this tomorrow in a VM before trying it for good.
 

robles

Explorer
Joined
Jul 29, 2014
Messages
89
Ok here's what I did:

zpool status
zpool offline vault gptid/0c2d26a2-a685-11e4-9317-000c296febaf
zpool detach vault 3460664433891973214
zpool status


I marked one of the drives as offline, then detached it and then looked at the status again to see if it had turned back to a single stripe vdev.
Then I used the GUI to create a new volume using the drive marked as new.

I hope this helps someone, if I did something wrong, please tell :)
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
You added a second volume to your server - not a stripe. Did you look at the output of zpool status after you finished.

If you wanted to stripe the drives, you'd want to extend the current volume. See "Extending a ZFS Volume" in the documentation.

Edit: disregard what I said. I kept seeing "stripe" mentioned. I just noticed you said you "like to have two volumes using two physical disks."
 

robles

Explorer
Joined
Jul 29, 2014
Messages
89
Oh yes, that was what I intended, I didn't want to extend my existing volume, I wanted another mount point.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
zpool status
zpool offline vault gptid/0c2d26a2-a685-11e4-9317-000c296febaf
zpool detach vault 3460664433891973214
zpool status
Glad that worked for you, but was there any reason you didn't just use the detach button in the web GUI?
 

robles

Explorer
Joined
Jul 29, 2014
Messages
89
Well I didn't find the option in the GUI to detach the volume (I did find the "offline" button though), so I figured there had to be a way to do it with the zpool command.

The manual pages work wonders.
 
Status
Not open for further replies.
Top