zpool import "status: One or more devices are missing from the system."

nffer

Cadet
Joined
Jan 3, 2019
Messages
4
Hi,

FreeNAS-9.10.2-U6

So I accidentally created a "stripe" children to a old pool, I was supposed to replace the spare not to add a new children to this pool called "tank".

Problem is that now I cannot import the pool anymore. The "12873158712951065836" was missing before.

Code:
zpool import -f
   pool: tank
     id: 17510097276003850357
  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-6X
 config:
    tank                                            UNAVAIL  missing device
      raidz1-0                                      DEGRADED
        12873158712951065836                        UNAVAIL  cannot open
        gptid/51fa6d00-1483-11e5-916a-38eaa7a1089e  ONLINE
        gptid/527bb44d-1483-11e5-916a-38eaa7a1089e  ONLINE
        gptid/52f801f8-1483-11e5-916a-38eaa7a1089e  ONLINE
        gptid/537ccd34-1483-11e5-916a-38eaa7a1089e  ONLINE

    Additional devices are known to be part of this pool, though their
    exact configuration cannot be determined.

camcontrol devlist
<SAMSUNG HD103SJ 1AJ10001>         at scbus0 target 0 lun 0 (pass0,ada0)
<SAMSUNG HD103SJ 1AJ10001>         at scbus1 target 0 lun 0 (pass1,ada1)
<SAMSUNG HD103SJ 1AJ10001>         at scbus2 target 0 lun 0 (pass2,ada2)
<SAMSUNG HD103SJ 1AJ10001>         at scbus3 target 0 lun 0 (pass3,ada3)
<SAMSUNG HD103SJ 1AJ10001>         at scbus4 target 1 lun 0 (pass4,ada4)
<SanDisk Ultra 1.00>               at scbus7 target 0 lun 0 (pass5,da0)



zdb -e tank

Configuration for import:
        vdev_children: 2
        version: 5000
        pool_guid: 17510097276003850357
        name: 'tank'
        state: 0
        hostid: 1450604612
        hostname: 'freenas.local'
        vdev_tree:
            type: 'root'
            id: 0
            guid: 17510097276003850357
            children[0]:
                type: 'raidz'
                id: 0
                guid: 2529236780203903894
                nparity: 1
                metaslab_array: 35
                metaslab_shift: 35
                ashift: 12
                asize: 4990262312960
                is_log: 0
                create_txg: 4
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 12873158712951065836
                    path: '/dev/gptid/7182c91e-1810-11e5-a12c-38eaa7a1089e'
                    whole_disk: 1
                    not_present: 1
                    DTL: 154
                    create_txg: 4
                children[1]:
                    type: 'disk'
                    id: 1
                    guid: 8027462612500639372
                    whole_disk: 1
                    DTL: 292
                    create_txg: 4
                    path: '/dev/gptid/51fa6d00-1483-11e5-916a-38eaa7a1089e'
                children[2]:
                    type: 'disk'
                    id: 2
                    guid: 16794873086689590394
                    whole_disk: 1
                    DTL: 291
                    create_txg: 4
                    path: '/dev/gptid/527bb44d-1483-11e5-916a-38eaa7a1089e'
                children[3]:
                    type: 'disk'
                    id: 3
                    guid: 7253343877656773164
                    whole_disk: 1
                    DTL: 290
                    create_txg: 4
                    path: '/dev/gptid/52f801f8-1483-11e5-916a-38eaa7a1089e'
                children[4]:
                    type: 'disk'
                    id: 4
                    guid: 15546753461993826621
                    whole_disk: 1
                    DTL: 285
                    create_txg: 4
                    path: '/dev/gptid/537ccd34-1483-11e5-916a-38eaa7a1089e'
            children[1]:
                type: 'missing'
                id: 1
                guid: 0
zdb: can't open 'tank': No such file or directory
FS_DBGMSG(zdb):


So what can I do? Can recreate the pool with the raidz with those 4 drives? Also the disk I was using as a stripe was wiped after.

Can I remove the seconds children from the zpool?

Thanks.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Is it possible your original pool was composed of 2 Stripped of 5 disk RAIDZ1 and you have not imported the second strip?
 

nffer

Cadet
Joined
Jan 3, 2019
Messages
4
Is it possible your original pool was composed of 2 Stripped of 5 disk RAIDZ1 and you have not imported the second strip?

I've been missing the fifth disk almost a year.. in my recollection no, there was only the raidz1-0. The problem started after I removed the "stripe" disk. Should I somehow add the "stripe" disk to the pool again with the same configuration? Is it possible to remove modify the metadata so that the stripe pool would not be missing?

Thanks.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
I think someone with better experience with this particular type of configuration should chime in.
But if you have the missing disk available, then it should be imported as well as it will constitute the whole of the system. If you did destroy the disk content, that would make it impossible to recover your pool if I understand the situation. Hence the need for someone with more experience in this case.
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Good news.
If you are actually using a stripe with RAIDz and one being a single disk, then you need to change that config to prevent such issues in the future. Do you have replicated volume on a backup pool?
 

nffer

Cadet
Joined
Jan 3, 2019
Messages
4
Good news.
If you are actually using a stripe with RAIDz and one being a single disk, then you need to change that config to prevent such issues in the future. Do you have replicated volume on a backup pool?
Actually i was trying fix the mistake that i made by adding the single disk manually from the gui. So the single disk should be actually a spare on the raidz. No backup pools.. :oops:
 

Apollo

Wizard
Joined
Jun 13, 2013
Messages
1,458
Can you post the status of the pool and see how zfs present it?

We need to be sure your pool configuration is not invovling a strip with a single drive. If that is the case you want to be able to backup your data and start a new pool from scratch.
 
Top