[zfs-discuss] Re: Pool got partially duplicated - how to remove dup ?

DC halfwalker at gmail.com
Tue May 8 11:24:15 EDT 2012


OK, that works.  Exported the stuff pool, zpool.cache didn't exist
when that was done.  The pool is now using the correct by-id names.
But I still have the ghost pool there, same name.

root at bondi:~# zpool status
  pool: stuff
 state: ONLINE
 scan: scrub repaired 0 in 45h50m with 0 errors on Fri May  4 19:53:30
2012
config:

        NAME                                            STATE     READ
WRITE CKSUM
        stuff                                           ONLINE
0     0     0
          raidz1-0                                      ONLINE
0     0     0
            ata-WDC_WD20EARS-00J2GB0_WD-WCAYY0289805    ONLINE
0     0     0
            ata-WDC_WD20EARS-00J2GB0_WD-WCAYY0289676    ONLINE
0     0     0
            ata-WDC_WD20EARS-00MVWB0_WD-WMAZA0101673    ONLINE
0     0     0
            ata-Hitachi_HDS722020ALA330_JK1131YAG9W9AV  ONLINE
0     0     0
            ata-Hitachi_HDS722020ALA330_JK1131YAG9PLTV  ONLINE
0     0     0
            ata-WDC_WD20EARS-00MVWB0_WD-WCAZA1256093    ONLINE
0     0     0

errors: No known data errors
root at bondi:~# zpool import
  pool: stuff
    id: 10724103071123258924
 state: UNAVAIL
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
   see: http://zfsonlinux.org/msg/ZFS-8000-5E
config:

        stuff       UNAVAIL  insufficient replicas
          raidz1-0  UNAVAIL  insufficient replicas
            sdh     UNAVAIL
            sdc     UNAVAIL
            sdd     UNAVAIL

How do I get rid of that ghost stuff pool ?  I'm guessing to reimport
with a different name as Fajar said, then zpool destroy stuff, but I
worry about that whacking the 3 devices associated ...

Thanks for the quick help

D.


On May 7, 10:39 pm, Darik Horn <dajh... at vanadac.com> wrote:
> On Mon, May 7, 2012 at 9:26 PM, DC <halfwal... at gmail.com> wrote:
>
> > 1) How can I delete/remove the false pool ?
> > 2) Is it possible to have it use the /dev/disk/by-id names again ?
>
> Do this:
>
> 1. Export all pools.
> 2. # rm /etc/zfs/zpool.cache
> 3. # zpool import -d /dev/disk/by-id 14829601920544515899
>
> The `-d` switch is nearly mandatory for ZoL.  Always use the `-d` switch.
>
> If bare `/dev/sd*` nodes are visible in the vdev list on a ZoL system,
> then reimport the pool using the `-d` switch.
>
> --
> Darik Horn <dajh... at vanadac.com>



More information about the zfs-discuss mailing list