zpool offline - no such device

Daniel Staal DStaal at usa.net
Tue Jun 3 21:55:55 UTC 2014

--As of June 3, 2014 10:44:16 AM -0400, Janos Dohanics is alleged to have 

> 	NAME                                            STATE     READ WRITE
> CKSUM 	vol1                                            DEGRADED     0
> 0     0 	  raidz1-0                                      DEGRADED     0
> 0     0 	    gptid/e433f9c3-0545-11e1-812d-8c89a53220c1  ONLINE       0
> 0     0 	    gptid/e485eeba-0545-11e1-812d-8c89a53220c1  FAULTED     49
> 260     0  too many errors
> gptid/e4d8ee9d-0545-11e1-812d-8c89a53220c1  ONLINE       0     0     0
> errors: No known data errors
> From the output of "gpart list",
> gptid/e485eeba-0545-11e1-812d-8c89a53220c1 corresponds to ada1p2.
> So, using the example from the handbook, I tried:
># zpool offline vol1 ada1
> cannot offline ada1: no such device in pool
> Why is it that zpool doesn't know about the ada1 device?

Because ada1 isn't in your pool - 
'gptid/e485eeba-0545-11e1-812d-8c89a53220c1' aka 'ada1p2' is.

That is only one of the partitions of ada1 - there may be more.  (It's 
entirely possible that *all* of the devices in the zpool are on ada1...) 
In fact there is likely at least one more: ada1p1.

Before you do anything else, it's probably a good idea to figure out 
exactly what is on that disk and how many partitions it has.  Pulling it 
out may not affect the zpool - but it may break other things in your 
system, depending on what's on there.

> For the failing drive, "zdb" gives:
> guid: 16455153587833556178
> Should I try "zpool offline vol1 [guid]"?

I would try `zpool offline gptid/e485eeba-0545-11e1-812d-8c89a53220c1` - 
that's what zfs calls the disk.  But I'm not entirely sure about it either 
- it would be a lot easier if these partitions had gpt lables, which I know 
work well with ZFS.

> When I'm replacing the failing drive with a new one (in the same USB
> slot), can I expect "zpool replace vol1 ada1" to work?

That should probably work - but remember the mention above of working out 
what *else* is on that drive.  This command would take the whole disk for 
ZFS, and you may want to replace the other partitions of the bad disk with 

Daniel T. Staal

This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.

More information about the freebsd-questions mailing list