SOLVED Can't replace drive with HDD used in previous pool

Status
Not open for further replies.

TheDubiousDubber

Contributor
Joined
Sep 11, 2014
Messages
193
I'm replacing a drive in my main pool. The replacement drive is one that was used once as a part of a 2 drive pool for backups. Due to this FreeNAS is recognizing the drive as part of that exported pool and won't let me use the drive as a replacement.

After hitting the replace button, I get the following:

[MiddlewareError: Disk replacement failed: "invalid specification, use -f to override the following errors:, /dev/gptid/<long string goes here> is part exported pool 'Backup', "]

I'm using the GUI, so I'm not sure how I can use the force flag, nor do I know the command to run if I were to use the CLI. The only way I can think of getting around this would be to hookup the Backup volume and destroy it rather than exporting. Though doing so would be a real PITA so was hoping there might be a workaround. Help would be much appreciated.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Wipe the drive (the wipe feature in the GUI, the dd command, HBCD, ...) ;)
 

TheDubiousDubber

Contributor
Joined
Sep 11, 2014
Messages
193
I had wiped the drive, not in FreeNAS, but the drive was wiped on another machine before installing in the FreeNAS unit. Based on the ...the following errors:, /dev/gptid/<long string goes here> is part exported pool 'Backup', "] I'm guessing the long string has to do with the hardware ID. I don't believe it is concerned with what data may or may not be on the drive. It is simply recognizing the drive as the same piece of hardware from a previously used volume. Either way, I will give it a try and see.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
You didn't wiped the drive correctly.

The GPTID is a software ID.

The only way ZFS knows this drive was a part of a pool is because there's still some data on this drive who tell ZFS that. Wipe the drive... in it's entirety ;)
 

TheDubiousDubber

Contributor
Joined
Sep 11, 2014
Messages
193
That makes more sense. Appreciate the help.
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Deleted my poorly written joke.
 

Robert Trevellyan

Pony Wrangler
Joined
May 16, 2014
Messages
3,778
According to a post I read recently, the quickest solution is the zpool labelclear command.
 
Status
Not open for further replies.
Top