Screwed up my ZFS Pool, Help?

Nemesis_001

Weaksauce
Joined
Apr 3, 2011
Messages
69
Hi,

Im running a NAS/SAN on Solaris Express 11.
3 x 2TB on RAIDZ1. I wanted to add a hot spare, and accidently added it as a basic vdev.

Is there any way to remove it from the pool without destroying it?

Thanks,
 
Hi,

Im running a NAS/SAN on Solaris Express 11.
3 x 2TB on RAIDZ1. I wanted to add a hot spare, and accidently added it as a basic vdev.

Is there any way to remove it from the pool without destroying it?

Thanks,
Not that I know of.

There really should be warnings...
 
Yep, I think you might be SOL. Can you borrow some external drives/NAS's from friends, copy your data off, and re-create the zpool?
 
I have 3 x 1.5TB drives lying around.
However I have only 1 unused SATA port.
Can I mirror a SATA drive with an external USB drive?
 
You can add another disk to the existing single-drive vdev; then it will become a mirror. But you cannot make it a RAID-Z or remove that single drive from the pool. You would need to backup your data and recreate the pool.
 
Thanks,

Can I create another pool having 1 SATA drive and 1 USB drive as mirrors to back up the data?
 
Isn't this just so you can remove the bogus drive and copy the data back? If so, why do you need a mirror for the temporary storage?
 
That's kind of unlikely, no? And if it does, replace it and try again...

The problem is that once it's copied he has to destroy his original copy of the data in order to recreate the pool. That leaves the data unprotected for that time he is recreating the pool and copying back. Unlikely or not if it's data you can't afford lose you don't leave it in a non-redundant state...even for a short time.
 
Wouldn't it be easier to copy twice instead of setting up a separate mirrored array?

Just verify both copied before destroying the pool.
 
Well, okay I guess. Given the miniscule chances of a drive failure, this is pretty anal, but okay. I have to agree, in that case, do a second copy to the other drive...
 
Eh, you could create another pool and add a vdev of a USB/SATA mirror if you want and then copy to that. Should be the same thing as if you copied twice (once to each drive) - should be faster at copying out anyway (not functionally a big difference either way).
 
Ok, I copied everything to a SATA/USB mirror, and re-created the array. The good thing is that I switched to RaidZ2 instead of RaidZ1 + hotspare.

Thanks,
 
Back
Top