• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

zfs command to reset disk

shnelson

Limp Gawd
Joined
Feb 10, 2012
Messages
145
I've been doing a bit of testing with my new storage system, and it seems I've put myself into a bind the last time I tried to export a pool and mark the disk as new. The good thing, it was intentional.. but unfortunately the process didn't finish and it seems my disks are still otherwise pre-occupied.

Is anyone able to offer up some assistance on how I can clear the lock on these disks?


[root@fnas01] ~# zpool list
no pools available

When I do a zpool import, here's what it shows me:

[root@fnas01] ~# zpool import
pool: vol0
id: 7173767759996868796
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: http://www.sun.com/msg/ZFS-8000-6X
config:

vol0 UNAVAIL missing device
raidz2 ONLINE
ada0p2 ONLINE
ada1p2 ONLINE
ada2p2 ONLINE
ada3p2 ONLINE
ada4p2 ONLINE

I'm a zfs dummy, and I've tried every command I could come across to try and destroy whatever association was left of this pool with no luck.

Anyone have a suggestion? I'm not trying to retain any data, simply trying to get the disks back into a state where I can create a new pool short of having to reinstall freenas (and I'm not fully convinced that would solve my underlying issue here..)


Thanks!
 
So if I understand correctly, you simply want to create a new pool?

Do a 'zpool create -f <whatever pool name you want and config you want>'. The -f should override the usual stop when it sees an existing ZFS pool on the disk. Be sure you want to do this! It will destroy any data on that pool if it works.

Let us know if it doesn't!
 
Back
Top