[OpenIndiana-discuss] cleaning out stale entries in zpool cache

Dan Swartzendruber dswartz at druber.com
Mon Oct 24 13:35:43 UTC 2011


Ummm, I don't see how this can be.  The disks in question are in use, with a
valid 'tank' pool!  Originally, when I did 'zpool import', it listed two
'tank' pools, one dead and one good - I specified the good ID and the pool
came back and is fine.  There must be something else going on, no?

-----Original Message-----
From: George Wilson [mailto:george.wilson at delphix.com] 
Sent: Monday, October 24, 2011 9:27 AM
To: Discussion list for OpenIndiana
Subject: Re: [OpenIndiana-discuss] cleaning out stale entries in zpool cache

Dan,

What is happening is that 'zpool import' is picking up the old zfs labels on
each of those disks. One easy way to fix this is to run fdisk on each of the
disks below and blow away the fdisk partition. You'll want to ensure that
they are not really being used by anything else. 

Another option is to 'zpool create -f <some other pool> <disks below>' and
then 'zpool destroy <some other pool>'.

Thanks,
George

On Oct 21, 2011, at 4:26 PM, Dan Swartzendruber wrote:

> So some time in the past, I had an issue with my tank pool.  Got it all
> squared away and everything is fine.  Except that 'zpool import' with no
> arguments says:
> 
> 
> 
> root at nas:/etc/zfs# zpool import
> 
>  pool: tank
> 
>    id: 2892264051913514813
> 
> state: FAULTED
> 
> status: The pool metadata is corrupted.
> 
> action: The pool cannot be imported due to damaged devices or data.
> 
> config:
> 
> 
> 
>        tank                         FAULTED  corrupted data
> 
>          raidz1-0                   ONLINE
> 
>            c0t50014EE204411A53d0p0  ONLINE
> 
>            c0t50014EE0ABCEE0A9d0    ONLINE
> 
>            c0t50014EE0AC01D8EDd0    ONLINE
> 
>            c0t50014EE2AEDF7498d0p0  ONLINE
> 
>            c0t50014EE2AEDF73CEd0    ONLINE
> 
> 
> 
> Is there a way to flush this old entry?  I guess it's harmless, but ...
> 
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss


_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss at openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss




More information about the OpenIndiana-discuss mailing list