can't import - One or more devices are missing from the system

noabuse

Cadet
Joined
Jun 16, 2019
Messages
1
Hi,

the error occurred after an export, but no disk was removed.
i guess this is the zil device i wanted to add before, but failed.
but why doesn't the id show up anywhere?
is there any way to fix this issue?

Code:
zpool import
   pool: SAS
     id: 6196801299722847075
  state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
        devices and try again.
   see: http://illumos.org/msg/ZFS-8000-3C
config:

        SAS                                             UNAVAIL  insufficient replicas
          mirror-0                                      ONLINE
            gptid/bd4bd006-ced9-11e8-92a8-0007434961d0  ONLINE
            gptid/be266197-ced9-11e8-92a8-0007434961d0  ONLINE
          mirror-1                                      ONLINE
            gptid/da9049a7-ced9-11e8-92a8-0007434961d0  ONLINE
            gptid/db58a7bd-ced9-11e8-92a8-0007434961d0  ONLINE
          9450955760222825432                           UNAVAIL  cannot open


Code:
zpool import SAS
cannot import 'SAS': no such pool or dataset
        Destroy and re-create the pool from
        a backup source.

zdb -e SAS

Configuration for import:
        vdev_children: 3
        version: 5000
        pool_guid: 6196801299722847075
        name: 'SAS'
        state: 1
        hostid: 3390430655
        hostname: 'freenas.bb-net.local'
        vdev_tree:
            type: 'root'
            id: 0
            guid: 6196801299722847075
            children[0]:
                type: 'mirror'
                id: 0
                guid: 13347168901585566409
                metaslab_array: 39
                metaslab_shift: 35
                ashift: 12
                asize: 5983989923840
                is_log: 0
                create_txg: 4
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 7167222617109604526
                    whole_disk: 1
                    create_txg: 4
                    path: '/dev/gptid/bd4bd006-ced9-11e8-92a8-0007434961d0'
                children[1]:
                    type: 'disk'
                    id: 1
                    guid: 2761938873523917793
                    whole_disk: 1
                    create_txg: 4
                    path: '/dev/gptid/be266197-ced9-11e8-92a8-0007434961d0'
            children[1]:
                type: 'mirror'
                id: 1
                guid: 13871345434503642611
                metaslab_array: 46
                metaslab_shift: 35
                ashift: 12
                asize: 5983989923840
                is_log: 0
                create_txg: 17
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 1986025287340327328
                    whole_disk: 1
                    create_txg: 17
                    path: '/dev/gptid/da9049a7-ced9-11e8-92a8-0007434961d0'
                children[1]:
                    type: 'disk'
                    id: 1
                    guid: 13227474608465801978
                    whole_disk: 1
                    create_txg: 17
                    path: '/dev/gptid/db58a7bd-ced9-11e8-92a8-0007434961d0'
            children[2]:
                type: 'missing'
                id: 2
                guid: 0
zdb: can't open 'SAS': No such file or directory


Code:
ZFS_DBGMSG(zdb):
spa_import: importing SAS
spa_load(SAS, config trusted): LOADING
disk vdev '/dev/gptid/bd4bd006-ced9-11e8-92a8-0007434961d0': best uberblock found for spa SAS. txg 4175931
spa_load(SAS, config untrusted): using uberblock with txg=4175931
spa_load(SAS, config trusted): vdev tree has 1 missing top-level vdevs.
spa_load(SAS, config trusted): current settings allow for maximum 0 missing top-level vdevs at this stage.
spa_load(SAS, config trusted): FAILED: unable to open vdev tree [error=2]
  vdev 0: root, guid: 6196801299722847075, path: N/A, can't open
    vdev 0: mirror, guid: 13347168901585566409, path: N/A, healthy
      vdev 0: disk, guid: 7167222617109604526, path: /dev/gptid/bd4bd006-ced9-11e8-92a8-0007434961d0, healthy
      vdev 1: disk, guid: 2761938873523917793, path: /dev/gptid/be266197-ced9-11e8-92a8-0007434961d0, healthy
    vdev 1: mirror, guid: 13871345434503642611, path: N/A, healthy
      vdev 0: disk, guid: 1986025287340327328, path: /dev/gptid/da9049a7-ced9-11e8-92a8-0007434961d0, healthy
      vdev 1: disk, guid: 13227474608465801978, path: /dev/gptid/db58a7bd-ced9-11e8-92a8-0007434961d0, healthy
    vdev 2: disk, guid: 9450955760222825432, path: /dev/gptid/ffe67b70-822d-11e9-8126-0007434961d0, can't open
spa_load(SAS, config trusted): UNLOADING


glabel status
Code:
                                     Name  Status  Components
gptid/bd4bd006-ced9-11e8-92a8-0007434961d0     N/A  da0p2
gptid/be266197-ced9-11e8-92a8-0007434961d0     N/A  da1p2
gptid/da9049a7-ced9-11e8-92a8-0007434961d0     N/A  da2p2
gptid/db58a7bd-ced9-11e8-92a8-0007434961d0     N/A  da3p2
gptid/be0a3f97-cef6-11e8-92a8-0007434961d0     N/A  da4p2
gptid/263095fc-ce43-11e8-92a8-0007434961d0     N/A  da5p2
gptid/26adeeee-ce43-11e8-92a8-0007434961d0     N/A  da6p2
gptid/54449c42-ce4e-11e8-92a8-0007434961d0     N/A  da7p2
gptid/54cfd243-ce4e-11e8-92a8-0007434961d0     N/A  da8p2
gptid/381f9dc4-cdf9-11e8-829f-0007434961d0     N/A  da9p2
gptid/2a78c76e-b727-11e8-bb0a-0007434961d0     N/A  da14p1
gptid/2625e020-ce43-11e8-92a8-0007434961d0     N/A  da5p1
gptid/bd3f239f-ced9-11e8-92a8-0007434961d0     N/A  da0p1
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
i guess this is the zil device i wanted to add before, but failed.
You did fail to add the device as a ZIL, you added it as an additional vdev. You need to put it back in the system so the pool can import. Right now, you are missing a vdev and that has broken your pool. I hope you didn't do anything to that device. It has no redundancy, so if it is missing or damaged, you pool is destroyed. It is always best to ask first.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
the error occurred after an export, but no disk was removed.
If you didn't remove it, what did you do to the drive you attempted to add as a "ZIL"?
 
Top