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

George Wilson george.wilson at delphix.com
Mon Oct 24 13:56:18 UTC 2011


Dan,

Are all the disks in use now? Given your configuration below it only takes one disk to describe that faulted pool.

If in fact all of the drives below are in use by a new 'tank' pool then there is something seriously wrong. The way zfs will determine which pools are available and it does so by scanning each disk. Each disk contains a zfs label at the front and back of the disk. The fact that you're seeing an old tank pool means that some disk is reporting this from it's label. 

You can look for the culprit by running 'zdb -l /dev/rdsk/<disk from zpool status>s0' and see if any of them report back as a raidz pool.

Can you also supply the output of 'format'?

Thanks,
George

On Oct 24, 2011, at 9:35 AM, Dan Swartzendruber wrote:

> 
> 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
> 
> 
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss




More information about the OpenIndiana-discuss mailing list