Trying to swap out a drive, cannot take it offline

Status
Not open for further replies.
Joined
Jan 11, 2014
Messages
13
As a followup to earlier messages. I built a new FreeNAS box with some older drives I had. 2 were giving me errors and after running SMART diagnostics I've realized they're older than I thought (about 3+ years old) and are consistently giving read errors, so I wanted to offline one as directed in the documentation and replace it.

Drive isn't reported as failed, just giving errors and old so I'd rather replace it because I have a new 3TB drive on-hand.

Documentation reference here - http://doc.freenas.org/index.php/Volumes#Replacing_a_Failed_Drive

When I go to the "Volume Status" page, select the appropriate drive and click "Offline", I get this error message:




May 2 16:04:19 kegofbeer manage.py: [middleware.exceptions:38] [MiddlewareError: Disk offline failed: "cannot offline gptid/c7714e71-ce24-11e3-9800-d050990137d2: no such device in pool, "]

I'm running a RAID-Z2 with 5x3TB WD Green and Red drives. Everything is put together into one big volume "kegofbeer"

Can anyone help me figure this out or let me know if there's some workaround? Thanks.
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
Which FreeNAS version are you using? What is the output of zpool status?
 
Joined
Jan 11, 2014
Messages
13
Using 9.1.

Here's the output:

Password:
pool: kegofbeer
state: ONLINE
scan: none requested
config:

NAME STATE READ WRITE CKSUM
kegofbeer ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/c5b47605-ce24-11e3-9800-d050990137d2 ONLINE 0 0 0
gptid/c6244c0e-ce24-11e3-9800-d050990137d2 ONLINE 0 0 0
gptid/c6929947-ce24-11e3-9800-d050990137d2 ONLINE 0 0 0
gptid/c704c0d8-ce24-11e3-9800-d050990137d2 ONLINE 0 0 0
gptid/c7714e71-ce24-11e3-9800-d050990137d2 ONLINE 0 0 0

errors: No known data errors
[ted@kegofbeer ~]$
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
You could try off-lining the device from the command line:
Code:
zpool offline kegofbeer gptid/c7714e71-ce24-11e3-9800-d050990137d2

If this results in the same error, I'd try upgrading FreeNAS to a more modern version like 9.2.0 or the newest 9.2.1.5.

Alternatively, I found a very old report with a similar problem, there the solution was to use the GUID instead of gptid, see here: https://bugs.freenas.org/issues/1866
This particular bug is about removing a log, but you could try off-lining with the drive's GUID.
 
Joined
Jan 11, 2014
Messages
13
Oops I am running 9.2-release-p4 , sorry. I'll post a follow up so if someone searches for this problem they'll know what happened.
 
Joined
Jan 11, 2014
Messages
13
No luck.

Tried from CLI:

root@kegofbeer] /mnt/kegofbeer/ted# zpool offline kegofbeer gptid/c7714e71-ce24-11e3-9800-d050990137d2
cannot offline gptid/c7714e71-ce24-11e3-9800-d050990137d2: no such device in pool

tried suggestion from bug report:

[root@kegofbeer] /mnt/kegofbeer/ted# zdb -l /dev/gptid/c7714e71-ce24-11e3-9800-d050990137d2 | grep " guid" | head -1
guid: 13869705888342628883
[root@kegofbeer] /mnt/kegofbeer/ted# zpool remove kegofbeer 13869705888342628883
cannot remove 13869705888342628883: only inactive hot spares, cache, top-level, or log devices can be removed

Is there some other zpool command that I need to use?

And the version that I'm running is reported by the GUI as 9.2.1.5, which I think is the latest.

Thanks!
 

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
Try zpool offline kegofbeer 13869705888342628883 (instead of remove)
 
Status
Not open for further replies.
Top