Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZFS pool won't import #8684

Closed
ernestlotter opened this issue Apr 29, 2019 · 4 comments
Closed

ZFS pool won't import #8684

ernestlotter opened this issue Apr 29, 2019 · 4 comments
Labels
Type: Question Issue for discussion

Comments

@ernestlotter
Copy link

System information

Type Version/Name
Distribution Name Ubuntu
Distribution Version Ubuntu 18.04.2 LTS
Linux Kernel Linux vino 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Architecture
ZFS Version 0.7.5-1ubuntu16.4
SPL Version 0.7.5-1ubuntu1

Hi Guys

I have a 6-disk raidz2 array, of which one disk failed yesterday. I've since removed it, and added a new drive in its place (but haven't done any "zfs replace" yet). Reason for not doing anything yet is - my zpool (called 'DATA') does not import anymore.

As an example, I do:

ernest@vino:~$ sudo zpool status
no pools available
ernest@vino:~$ sudo zpool import DATA
cannot import 'DATA': no such pool available
ernest@vino:~$ sudo zpool import 14452921419047268979
cannot import '14452921419047268979': no such pool available
ernest@vino:~$ sudo zpool import -d /dev/
   pool: DATA
     id: 14452921419047268979
  state: DEGRADED
 status: One or more devices contains corrupted data.
 action: The pool can be imported despite missing or damaged devices.  The
	fault tolerance of the pool may be compromised if imported.
   see: http://zfsonlinux.org/msg/ZFS-8000-4J
 config:

	DATA                        DEGRADED
	  raidz2-0                  DEGRADED
	    wwn-0x50014ee2b555256d  UNAVAIL
	    sdb                     ONLINE
	    sdc                     ONLINE
	    sdd                     ONLINE
	    sde                     ONLINE
	    sdf                     ONLINE
ernest@vino:~$ 

so it seems to detect the zpool from disks, but won't import it.

@ernestlotter
Copy link
Author

Thanks kpande, trying it:

ernest@vino:~$ sudo zpool import -f -d /dev/ DATA
cannot import 'DATA': I/O error
	Recovery is possible, but will result in some data loss.
	Returning the pool to its state as of Sun 28 Apr 2019 22:00:53 AEST
	should correct the problem.  Approximately 6 seconds of data
	must be discarded, irreversibly.  Recovery can be attempted
	by executing 'zpool import -F DATA'.  A scrub of the pool
	is strongly recommended after recovery.
ernest@vino:~$ 

@rlaager rlaager added the Type: Question Issue for discussion label Apr 30, 2019
@soyfrien
Copy link

soyfrien commented Feb 5, 2020

I have a similar issue, though mine seems worse given the different advice zpool gives for us.

Did you resolve the problem @ernestlotter?

$ zpool import
   pool: darkpool
     id: 5743344949875332602
  state: DEGRADED
 status: One or more devices contains corrupted data.
 action: The pool can be imported despite missing or damaged devices.  The
    fault tolerance of the pool may be compromised if imported.
   see: http://zfsonlinux.org/msg/ZFS-8000-4J
 config:

    darkpool                      DEGRADED
      raidz3-0                    DEGRADED
        wwn-0x5000c5008581aafb    ONLINE
        wwn-0x5000c5008581b61b    ONLINE
        wwn-0x5000c5008581b79f    ONLINE
        wwn-0x5000c5008581b933    ONLINE
        wwn-0x5000c5008581b953    ONLINE
        wwn-0x5000c5008581bdf7    ONLINE
        wwn-0x5000c50085825ec7    ONLINE
        wwn-0x5000c5008581cc03    ONLINE
        wwn-0x5000c5008581e423    UNAVAIL
        wwn-0x5000c5008581fd3f    ONLINE
        wwn-0x5000c50085820b93    ONLINE
        wwn-0x5000c500858211b3    ONLINE
        wwn-0x5000cca267ab0de4    ONLINE
        spare-13                  DEGRADED
          11992420879588183985    FAULTED  corrupted data
          wwn-0x5000c500858252ef  ONLINE
    spares
      wwn-0x5000c500858252ef

$ zpool status
no pools available

$ zpool import darkpool
cannot import 'darkpool': I/O error
    Destroy and re-create the pool from
    a backup source.

$ zpool import -f darkpool
cannot import 'darkpool': I/O error
    Destroy and re-create the pool from
    a backup source.

$ zpool import -fFn darkpool

$ zpool import -F darkpool
cannot import 'darkpool': I/O error
    Destroy and re-create the pool from
    a backup source.

$ zpool import -fFX darkpool
cannot import 'darkpool': I/O error
    Destroy and re-create the pool from
    a backup source.

@jamescorbett
Copy link

I have the same issue, one drive failed and won't import.

   pool: pool
     id: 12242908531632234494
  state: DEGRADED
 status: One or more devices contains corrupted data.
 action: The pool can be imported despite missing or damaged devices.  The
        fault tolerance of the pool may be compromised if imported.
   see: http://zfsonlinux.org/msg/ZFS-8000-4J
 config:

        pool                        DEGRADED
          raidz1-0                  DEGRADED
            wwn-0x5000cca36ac8d8cc  ONLINE
            wwn-0x5000cca36aca9bc3  ONLINE
            wwn-0x50014ee25a29dd92  ONLINE
            wwn-0x50014ee2b05bd944  UNAVAIL

@soyfrien
Copy link

soyfrien commented Feb 22, 2020

I have the same issue, one drive failed and won't import.

   pool: pool
     id: 12242908531632234494
  state: DEGRADED
 status: One or more devices contains corrupted data.
 action: The pool can be imported despite missing or damaged devices.  The
        fault tolerance of the pool may be compromised if imported.
   see: http://zfsonlinux.org/msg/ZFS-8000-4J
 config:

        pool                        DEGRADED
          raidz1-0                  DEGRADED
            wwn-0x5000cca36ac8d8cc  ONLINE
            wwn-0x5000cca36aca9bc3  ONLINE
            wwn-0x50014ee25a29dd92  ONLINE
            wwn-0x50014ee2b05bd944  UNAVAIL

I was eventually able to mount the pool.

Please see here: https://serverfault.com/a/1004188/52734

Use with caution in read-only mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Issue for discussion
Projects
None yet
Development

No branches or pull requests

6 participants
@rlaager @behlendorf @jamescorbett @soyfrien @ernestlotter and others