pool unavaible after cli export => GUI auto import

Status
Not open for further replies.

Rutgzven

Cadet
Joined
Apr 30, 2013
Messages
9
I run a server with 64 bit intel core2duo CPU, 2GB RAM, autotune

Code:
vfs.zfs.arc_max	 1073741824 Generated by autotune
vm.kmem_size_max	1207959552 Generated by autotune
vm.kmem_size	966367641	Generated by autotune


Version: FreeNAS-8.3.1-RELEASE-p2-x64 (r12686+b770da6_dirty)

ZFS28

Initial disk setup
ADA0, 1000 GB SATA drive
ADA1, 500 GB SATA drive

Did an upgrade last month, where i offlined the 500 GB disk in GUI, then replaced the physical disk to a 620 GB disk.
Attached ADA1 to pool, resilver started.

Disk setup:
ADA0, 1000 GB SATA drive
ADA1, 620 GB SATA drive

A few hours later, resilver completed with no errors. Old drive still in pool, so I removed from pool. Ended up with healthy Two-way mirror running fine.

Server run for a week. Then i manually restarted the machine (shutdown in GUI).

After restart, one disk was missing from the mirror.

Email during next night:
Code:
Checking status of zfs pools:
NAME              SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
zfs_root_volume   592G   359G   233G    60%  1.00x  DEGRADED  /mnt

  pool: zfs_root_volume
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
        the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://www.sun.com/msg/ZFS-8000-2Q
  scan: resilvered 365G in 12h9m with 0 errors on Sat Apr 20 01:15:37 2013
config:

        NAME                                            STATE     READ WRITE CKSUM
        zfs_root_volume                                 DEGRADED     0     0     0
          mirror-0                                      DEGRADED     0     0     0
            10142334550473523414                        UNAVAIL      0     0     0  was /dev/dsk/ada0
            gptid/218e035e-9c9b-11e2-a687-001a6b4f161a  ONLINE       0     0     0


Took an extra backup and begun troubleshooting.

I run a gpart list and had a fault on ADA0.

Thought it was a software error since scrub went fine a few days earlier and this happened during a reboot, so i run gpart recover on ada0.

gpast list showed that ADA0 was OK, had two partitions: ada0p1 2 GB swap and ada0p2 929 GB freebsd-zfs.

Took 10142334550473523414 away from pool with CLI. Ended up with healthy single drive pool.

Then i attached ada0p2 to pool, thought that it would attach, form a mirror. Resilver and become healthy again.
run zpool attach zfs_root_pool [old drive id] /dev/ada0p2

The pool started resilvering. Took the night. During the night i got this email:
Code:
  pool: zfs_root_volume
 state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Mon Apr 29 21:50:08 2013
        296G scanned out of 359G at 16.2M/s, 1h7m to go
        296G resilvered, 82.23% done
config:

        NAME                                            STATE     READ WRITE CKSUM
        zfs_root_volume                                 ONLINE       0     0     0
          mirror-0                                      ONLINE       0     0     0
            gptid/218e035e-9c9b-11e2-a687-001a6b4f161a  ONLINE       0     0     0
            ada0p2                                      ONLINE       0     0     0  (resilvering)

errors: No known data errors


Confirmed the status of the pool next morning with zpool status.

It showed a mirror with both drives online, healthy. "resilver completed in 10 hours".

Everything fine, except i had manually imported the pool in CLI and it had no mount point, nor showed up in web GUI.

So, as the last operation to bring the web gui in sync, and imported on the correct mount point, i just tried to export the pool from CLI:
Code:
zpool export zfs_root_volume


And then hit "auto import volume" in GUI.

It failed.

And now i have a situation where i cannot import my pool.

Tried restart. both drives enumerated as ADA0 and ADA1.

Run short S.M.A.R.T test on both drives with smartctl. PASSED.

camcontrol devlist:
Code:
<ST31000528AS CC38>                at scbus2 target 0 lun 0 (pass0,ada0)
<SAMSUNG HD642JJ 1AA01108>         at scbus3 target 0 lun 0 (pass1,ada1)
<General USB Flash Disk 1.0>       at scbus8 target 0 lun 0 (pass2,da0)


sysctl kern.disks:
Code:
kern.disks: da0 ada1 ada0


gpart list
Code:
[root@freenas] /dev# gpart list
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1953525134
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 65536
   Mode: r1w1e1
   rawuuid: f28b9762-a8df-11e2-9b2f-001a6b4f161a
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: ada0p2
   Mediasize: 998057319936 (929G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r0w0e0
   rawuuid: f295e0dc-a8df-11e2-9b2f-001a6b4f161a
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 998057319936
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 1953525134
   start: 4194432
Consumers:
1. Name: ada0
   Mediasize: 1000204886016 (931G)
   Sectorsize: 512
   Mode: r1w1e2

Geom name: ada1
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 1250263694
first: 34
entries: 128
scheme: GPT
Providers:
1. Name: ada1p1
   Mediasize: 2147483648 (2.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 65536
   Mode: r1w1e1
   rawuuid: 217764ac-9c9b-11e2-a687-001a6b4f161a
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2147483648
   offset: 65536
   type: freebsd-swap
   index: 1
   end: 4194431
   start: 128
2. Name: ada1p2
   Mediasize: 637987462656 (594G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 2147549184
   Mode: r0w0e0
   rawuuid: 218e035e-9c9b-11e2-a687-001a6b4f161a
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 637987462656
   offset: 2147549184
   type: freebsd-zfs
   index: 2
   end: 1250263694
   start: 4194432
Consumers:
1. Name: ada1
   Mediasize: 640135028736 (596G)
   Sectorsize: 512
   Mode: r1w1e2

Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 7831551
first: 63
entries: 4
scheme: MBR
Providers:
1. Name: da0s1
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 32256
   Mode: r0w0e0
   rawtype: 165
   length: 988291584
   offset: 32256
   type: freebsd
   index: 1
   end: 1930319
   start: 63
2. Name: da0s2
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988356096
   Mode: r1w0e1
   attrib: active
   rawtype: 165
   length: 988291584
   offset: 988356096
   type: freebsd
   index: 2
   end: 3860639
   start: 1930383
3. Name: da0s3
   Mediasize: 1548288 (1.5M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1976647680
   Mode: r0w0e0
   rawtype: 165
   length: 1548288
   offset: 1976647680
   type: freebsd
   index: 3
   end: 3863663
   start: 3860640
4. Name: da0s4
   Mediasize: 21159936 (20M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1978195968
   Mode: r1w1e2
   rawtype: 165
   length: 21159936
   offset: 1978195968
   type: freebsd
   index: 4
   end: 3904991
   start: 3863664
Consumers:
1. Name: da0
   Mediasize: 4009754624 (3.8G)
   Sectorsize: 512
   Mode: r2w1e4

Geom name: da0s1
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 1930256
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: da0s1a
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 40448
   Mode: r0w0e0
   rawtype: 0
   length: 988283392
   offset: 8192
   type: !0
   index: 1
   end: 1930256
   start: 16
Consumers:
1. Name: da0s1
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 32256
   Mode: r0w0e0

Geom name: da0s2
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 1930256
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: da0s2a
   Mediasize: 988283392 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988364288
   Mode: r1w0e1
   rawtype: 0
   length: 988283392
   offset: 8192
   type: !0
   index: 1
   end: 1930256
   start: 16
Consumers:
1. Name: da0s2
   Mediasize: 988291584 (942M)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 988356096
   Mode: r1w0e1


swapinfo:
Code:
Device          1K-blocks     Used    Avail Capacity
/dev/ada0p1.eli   2097152        0  2097152     0%
/dev/ada1p1.eli   2097152        0  2097152     0%
Total             4194304        0  4194304     0%


zdb:
Code:
[root@freenas] /dev# zdb
cannot open '/boot/zfs/zpool.cache': No such file or directory


Cannot import pool:
Code:
[root@freenas] /dev# zpool import
   pool: zfs_root_volume
     id: 397881850367711172
  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://www.sun.com/msg/ZFS-8000-3C
 config:

        zfs_root_volume           UNAVAIL  insufficient replicas
          mirror-0                UNAVAIL  insufficient replicas
            10142334550473523414  UNAVAIL  cannot open
            18197332204305252530  UNAVAIL  cannot open


Don't know how to proceed importing this volume. I have a feeling that at least one drive in the mirror are just fine, if not both, since it resilvered without errors five minutes before export/import procedure.

Please help. I really don't want to revert from backup, since i will loose one month of cpu time re-render a png dataset stored on the pool which is not backed up in a while.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Code:
zdb -l /dev/ada1p2

zdb -l /dev/ada0p2


What kind of drive is da0?
 

Rutgzven

Cadet
Joined
Apr 30, 2013
Messages
9
Code:
[root@freenas] /dev# zdb -l /dev/ada1p2
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 28
    name: 'zfs_root_volume'
    state: 1
    txg: 1677631
    pool_guid: 397881850367711172
    hostid: 1768971081
    hostname: 'freenas.local'
    top_guid: 6832623913095890909
    guid: 1151848181788114030
    vdev_children: 1
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 6832623913095890909
        whole_disk: 0
        metaslab_array: 23
        metaslab_shift: 32
        ashift: 9
        asize: 637982736384
        is_log: 0
        children[0]:
            type: 'disk'
            id: 0
            guid: 1151848181788114030
            path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            phys_path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            whole_disk: 1
            DTL: 8337
        children[1]:
            type: 'disk'
            id: 1
            guid: 7699048018560071409
            path: '/dev/ada0p2'
            phys_path: '/dev/ada0p2'
            whole_disk: 1
            DTL: 41642
            resilvering: 1
--------------------------------------------
LABEL 1
--------------------------------------------
    version: 28
    name: 'zfs_root_volume'
    state: 1
    txg: 1677631
    pool_guid: 397881850367711172
    hostid: 1768971081
    hostname: 'freenas.local'
    top_guid: 6832623913095890909
    guid: 1151848181788114030
    vdev_children: 1
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 6832623913095890909
        whole_disk: 0
        metaslab_array: 23
        metaslab_shift: 32
        ashift: 9
        asize: 637982736384
        is_log: 0
        children[0]:
            type: 'disk'
            id: 0
            guid: 1151848181788114030
            path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            phys_path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            whole_disk: 1
            DTL: 8337
        children[1]:
            type: 'disk'
            id: 1
            guid: 7699048018560071409
            path: '/dev/ada0p2'
            phys_path: '/dev/ada0p2'
            whole_disk: 1
            DTL: 41642
            resilvering: 1
--------------------------------------------
LABEL 2
--------------------------------------------
    version: 28
    name: 'zfs_root_volume'
    state: 1
    txg: 1677631
    pool_guid: 397881850367711172
    hostid: 1768971081
    hostname: 'freenas.local'
    top_guid: 6832623913095890909
    guid: 1151848181788114030
    vdev_children: 1
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 6832623913095890909
        whole_disk: 0
        metaslab_array: 23
        metaslab_shift: 32
        ashift: 9
        asize: 637982736384
        is_log: 0
        children[0]:
            type: 'disk'
            id: 0
            guid: 1151848181788114030
            path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            phys_path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            whole_disk: 1
            DTL: 8337
        children[1]:
            type: 'disk'
            id: 1
            guid: 7699048018560071409
            path: '/dev/ada0p2'
            phys_path: '/dev/ada0p2'
            whole_disk: 1
            DTL: 41642
            resilvering: 1
--------------------------------------------
LABEL 3
--------------------------------------------
    version: 28
    name: 'zfs_root_volume'
    state: 1
    txg: 1677631
    pool_guid: 397881850367711172
    hostid: 1768971081
    hostname: 'freenas.local'
    top_guid: 6832623913095890909
    guid: 1151848181788114030
    vdev_children: 1
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 6832623913095890909
        whole_disk: 0
        metaslab_array: 23
        metaslab_shift: 32
        ashift: 9
        asize: 637982736384
        is_log: 0
        children[0]:
            type: 'disk'
            id: 0
            guid: 1151848181788114030
            path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            phys_path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            whole_disk: 1
            DTL: 8337
        children[1]:
            type: 'disk'
            id: 1
            guid: 7699048018560071409
            path: '/dev/ada0p2'
            phys_path: '/dev/ada0p2'
            whole_disk: 1
            DTL: 41642
            resilvering: 1
[root@freenas] /dev#


Code:
[root@freenas] /dev# zdb -l /dev/ada0p2
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 28
    name: 'zfs_root_volume'
    state: 1
    txg: 1677631
    pool_guid: 397881850367711172
    hostid: 1768971081
    hostname: 'freenas.local'
    top_guid: 6832623913095890909
    guid: 7699048018560071409
    vdev_children: 1
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 6832623913095890909
        whole_disk: 0
        metaslab_array: 23
        metaslab_shift: 32
        ashift: 9
        asize: 637982736384
        is_log: 0
        children[0]:
            type: 'disk'
            id: 0
            guid: 1151848181788114030
            path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            phys_path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            whole_disk: 1
            DTL: 8337
        children[1]:
            type: 'disk'
            id: 1
            guid: 7699048018560071409
            path: '/dev/ada0p2'
            phys_path: '/dev/ada0p2'
            whole_disk: 1
            DTL: 41642
            resilvering: 1
--------------------------------------------
LABEL 1
--------------------------------------------
    version: 28
    name: 'zfs_root_volume'
    state: 1
    txg: 1677631
    pool_guid: 397881850367711172
    hostid: 1768971081
    hostname: 'freenas.local'
    top_guid: 6832623913095890909
    guid: 7699048018560071409
    vdev_children: 1
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 6832623913095890909
        whole_disk: 0
        metaslab_array: 23
        metaslab_shift: 32
        ashift: 9
        asize: 637982736384
        is_log: 0
        children[0]:
            type: 'disk'
            id: 0
            guid: 1151848181788114030
            path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            phys_path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            whole_disk: 1
            DTL: 8337
        children[1]:
            type: 'disk'
            id: 1
            guid: 7699048018560071409
            path: '/dev/ada0p2'
            phys_path: '/dev/ada0p2'
            whole_disk: 1
            DTL: 41642
            resilvering: 1
--------------------------------------------
LABEL 2
--------------------------------------------
    version: 28
    name: 'zfs_root_volume'
    state: 1
    txg: 1677631
    pool_guid: 397881850367711172
    hostid: 1768971081
    hostname: 'freenas.local'
    top_guid: 6832623913095890909
    guid: 7699048018560071409
    vdev_children: 1
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 6832623913095890909
        whole_disk: 0
        metaslab_array: 23
        metaslab_shift: 32
        ashift: 9
        asize: 637982736384
        is_log: 0
        children[0]:
            type: 'disk'
            id: 0
            guid: 1151848181788114030
            path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            phys_path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            whole_disk: 1
            DTL: 8337
        children[1]:
            type: 'disk'
            id: 1
            guid: 7699048018560071409
            path: '/dev/ada0p2'
            phys_path: '/dev/ada0p2'
            whole_disk: 1
            DTL: 41642
            resilvering: 1
--------------------------------------------
LABEL 3
--------------------------------------------
    version: 28
    name: 'zfs_root_volume'
    state: 1
    txg: 1677631
    pool_guid: 397881850367711172
    hostid: 1768971081
    hostname: 'freenas.local'
    top_guid: 6832623913095890909
    guid: 7699048018560071409
    vdev_children: 1
    vdev_tree:
        type: 'mirror'
        id: 0
        guid: 6832623913095890909
        whole_disk: 0
        metaslab_array: 23
        metaslab_shift: 32
        ashift: 9
        asize: 637982736384
        is_log: 0
        children[0]:
            type: 'disk'
            id: 0
            guid: 1151848181788114030
            path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            phys_path: '/dev/gptid/218e035e-9c9b-11e2-a687-001a6b4f161a'
            whole_disk: 1
            DTL: 8337
        children[1]:
            type: 'disk'
            id: 1
            guid: 7699048018560071409
            path: '/dev/ada0p2'
            phys_path: '/dev/ada0p2'
            whole_disk: 1
            DTL: 41642
            resilvering: 1


da0 might be the 4 GB USB boot stick.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
da0 might be the 4 GB USB boot stick.
It is the FreeNAS install. I was asking specifically what kind is it.

The labels appear fine and agree with each other. Try backing up your settings and doing a factory reset. Then run:
Code:
zpool import
Which will list importable pools. If it looks normal then auto import via the GUI.

How was this pool originally created? Noticed you were using the whole disk before:
Code:
10142334550473523414                        UNAVAIL      0     0     0  was /dev/dsk/ada0
 

Rutgzven

Cadet
Joined
Apr 30, 2013
Messages
9
Re: pool unavaible after cli export =&gt; GUI auto import

The USB stick is a noname.


Tried factory reset, then import:
Code:
login as: root
root@192.168.1.135's password:
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
        The Regents of the University of California.  All rights reserved.

FreeBSD 8.3-RELEASE-p7 (FREENAS.amd64) #1 r249203M: Sat Apr  6 09:28:27 PDT 2013

        FreeNAS (c) 2009-2013, The FreeNAS Development Team
        All rights reserved.
        FreeNAS is released under the modified BSD license.

        For more information, documentation, help or support, go here:
        http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# zpool import
   pool: zfs_root_volume
     id: 397881850367711172
  state: FAULTED
 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://www.sun.com/msg/ZFS-8000-3C
 config:

        zfs_root_volume           FAULTED  corrupted data
          mirror-0                DEGRADED
            10142334550473523414  UNAVAIL  corrupted data
            18197332204305252530  UNAVAIL  cannot open
[root@freenas] ~#


- - - Updated - - -

Code:
[root@freenas] ~# dmesg
Copyright (c) 1992-2012 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.3-RELEASE-p7 #1 r249203M: Sat Apr  6 09:28:27 PDT 2013
    root@build.ixsystems.com:/tank/home/jpaetzel/fn8.3/freenas/os-base/amd64/tank/home/jpaetzel/fn8.3/freenas/FreeBSD/src/sys/FREENAS.amd64 amd64
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU          4300  @ 1.80GHz (1794.20-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x6f2  Family = 6  Model = f  Stepping = 2
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant
real memory  = 2147483648 (2048 MB)
avail memory = 2035339264 (1941 MB)
ACPI APIC Table: <PTLTD          A2MC  >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
WARNING: VIMAGE (virtualized network stack) is a highly experimental feature.
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
hpt27xx: RocketRAID 27xx controller driver v1.0 (Apr  6 2013 09:28:15)
cryptosoft0: <software crypto> on motherboard
aesni0: No AESNI support.
acpi0: <LENOVO TC-2M> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x3410-0x3417 mem 0xd0000000-0xd00fffff,0xc0000000-0xcfffffff irq 16 at device 2.0 on pci0
agp0: <Intel Q965 SVGA controller> on vgapci0
agp0: aperture size is 256M, detected 508k stolen memory
pci0: <simple comms> at device 3.0 (no driver attached)
atapci0: <Intel ATA controller> port 0x3428-0x342f,0x341c-0x341f,0x3420-0x3427,0x3418-0x341b,0x30e0-0x30ef irq 18 at device 3.2 on pci0
atapci0: [ITHREAD]
ata2: <ATA channel> at channel 0 on atapci0
ata2: [ITHREAD]
ata3: <ATA channel> at channel 1 on atapci0
ata3: [ITHREAD]
pci0: <simple comms, UART> at device 3.3 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection 7.3.2> port 0x3000-0x301f mem 0xd0100000-0xd011ffff,0xd0125000-0xd0125fff irq 16 at device 25.0 on pci0
em0: Using an MSI interrupt
em0: [FILTER]
em0: Ethernet address: 00:1a:6b:4f:16:1a
uhci0: <Intel 82801H (ICH8) USB controller USB-D> port 0x3020-0x303f irq 16 at device 26.0 on pci0
uhci0: [ITHREAD]
usbus0: <Intel 82801H (ICH8) USB controller USB-D> on uhci0
ehci0: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> mem 0xd0326c00-0xd0326fff irq 16 at device 26.7 on pci0
ehci0: [ITHREAD]
usbus1: EHCI version 1.0
usbus1: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> on ehci0
pci0: <multimedia, HDA> at device 27.0 (no driver attached)
uhci1: <Intel 82801H (ICH8) USB controller USB-A> port 0x3040-0x305f irq 16 at device 29.0 on pci0
uhci1: [ITHREAD]
usbus2: <Intel 82801H (ICH8) USB controller USB-A> on uhci1
uhci2: <Intel 82801H (ICH8) USB controller USB-B> port 0x3060-0x307f irq 17 at device 29.1 on pci0
uhci2: [ITHREAD]
usbus3: <Intel 82801H (ICH8) USB controller USB-B> on uhci2
uhci3: <Intel 82801H (ICH8) USB controller USB-C> port 0x3080-0x309f irq 18 at device 29.2 on pci0
uhci3: [ITHREAD]
usbus4: <Intel 82801H (ICH8) USB controller USB-C> on uhci3
ehci1: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> mem 0xd0327000-0xd03273ff irq 16 at device 29.7 on pci0
ehci1: [ITHREAD]
usbus5: EHCI version 1.0
usbus5: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> on ehci1
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci10: <ACPI PCI bus> on pcib1
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel ICH8 AHCI SATA controller> port 0x3448-0x344f,0x343c-0x343f,0x3440-0x3447,0x3438-0x343b,0x30a0-0x30bf mem 0xd0326000-0xd03267ff irq 17 at device 31.2 on pci0
ahci0: [ITHREAD]
ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: [ITHREAD]
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich1: [ITHREAD]
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich2: [ITHREAD]
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich3: [ITHREAD]
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich4: [ITHREAD]
ahcich5: <AHCI channel> at channel 5 on ahci0
ahcich5: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
ppc0: cannot reserve I/O port range
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
coretemp1: <CPU On-Die Thermal Sensors> on cpu1
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
Timecounters tick every 1.000 msec
hpt27xx: no controller detected.
GEOM_RAID5: Module loaded, version 1.1.20110927.40 (rev 00ce00e5abb4)
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 12Mbps Full Speed USB v1.0
usbus5: 480Mbps High Speed USB v2.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> at usbus2
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4
uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen5.1: <Intel> at usbus5
uhub5: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus5
uhub0: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub5: 6 ports with 6 removable, self powered
ugen5.2: <General> at usbus5
umass0: <General USB Flash Disk, class 0/0, rev 2.00/1.00, addr 2> on usbus5
ada0 at ahcich0 bus 0 scbus2 target 0 lun 0
ada0: <ST31000528AS CC38> ATA-8 SATA 2.x device
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
ada1 at ahcich1 bus 0 scbus3 target 0 lun 0
ada1: <SAMSUNG HD642JJ 1AA01108> ATA-7 SATA 2.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 610480MB (1250263728 512 byte sectors: 16H 63S/T 16383C)
da0 at umass-sim0 bus 0 scbus8 target 0 lun 0
da0: <General USB Flash Disk 1.0> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 3824MB (7831552 512 byte sectors: 255H 63S/T 487C)
SMP: AP CPU #1 Launched!
GEOM: da0s1: geometry does not match label (16h,63s != 255h,63s).
GEOM: da0s2: geometry does not match label (16h,63s != 255h,63s).
Trying to mount root from ufs:/dev/ufs/FreeNASs2a
ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present;
            to enable, add "vfs.zfs.prefetch_disable=0" to /boot/loader.conf.
ZFS filesystem version 5
ZFS storage pool version 28
[root@freenas] ~#
 

Rutgzven

Cadet
Joined
Apr 30, 2013
Messages
9
I think i created the pool from Web GUI back in beginning of 2012. Must have been with Freenas version 8.0. something. ZFS15.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
First, you are running ZFS with 1/3 of the minimum recommended. Not the best choice.

Second, and I have no idea why, but you should stick to using the GUI if the GUI can do the job. I don't see anything glaringly wrong with your commands, but it seems more often than not something doesn't play right when people do stuff from the CLI they could have done from the GUI.

You may have bad RAM. When RAM goes bad it causes all sorts of weird issues. I don't have any good ideas to start troubleshooting, but you can't go wrong with a RAM test. If your RAM is bad I'd give up trying to recover the pool since it is likely corrupted beyond repair.

Do you ever have problems with kernel panics or system freezing or anything else that you've had to deal with besides this?
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Code:
[root@freenas] ~# zpool import
   pool: zfs_root_volume
     id: 397881850367711172
  state: FAULTED
 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://www.sun.com/msg/ZFS-8000-3C
 config:

        zfs_root_volume           FAULTED  corrupted data
          mirror-0                DEGRADED
            10142334550473523414  UNAVAIL  corrupted data
            18197332204305252530  UNAVAIL  cannot open
[root@freenas] ~#
I take it you didn't wipe ada0. It still has the old ZFS metadata on it for the same pool, id: 397881850367711172, but old devices.
Code:
swapctl -d /dev/ada0p1.eli /dev/ada1p1.eli

zdb -l /dev/ada0
zdb -l /dev/ada1
 

Rutgzven

Cadet
Joined
Apr 30, 2013
Messages
9
Thanks for all your help, really appriciate it.

Here is what I did to get things up and running agin:

  • Shutdown and disconnected the 1TB drive physically. It obvious held som incorrect metadata that prevented the mirror from beeing imported.
  • Retried zpool import, it now offered me the pool to be imported in a degraded state (one good disk, one missing disk, but with no data errors)
  • Imported pool
  • Made a complete backup to another system
  • Verified integrity of backup
  • Shut down and disconnected the good disk, and reconnected the 1 TB drive (the one with incorrect metadata)
  • Wiped the disk completely via gui
  • Run RAM test (memtest) overnight
  • Run long S.M.A.R.T test on disk without errors
  • Wiped the disk again
  • Created partitions
    Code:
    gpart create -s gpt ada0
    
    gpart add -i 1 -t freebsd-swap -s 2G ada0
    
    gpart add -i 2 -t freebsd-zfs ada0
    
  • Shut down and connected the good drive again
  • Deattached the missing drive from pool so it formed a single drive healty pool.
  • Added the new partition to the pool
    Code:
    zpool attach zfs_root_volume gptid/218e035e-9c9b-11e2-a687-001a6b4f161a ada0p2
  • Wait for resilver
  • Reboot
  • Scrub
  • Done
  • Start to plan buying a new machine with lots of RAM, ECC memory...
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Shutdown and disconnected the 1TB drive physically. It obvious held som incorrect metadata that prevented the mirror from beeing imported.
Which if you gave me the requested output I was going to help you delete, likely label L2, without wiping the whole drive.

Wiped the disk completely via gui
A more heavy-handed approach, but effective.

  • Run RAM test (memtest) overnight
  • Run long S.M.A.R.T test on disk without errors
  • Wiped the disk again
None of this was necessary.

Also, a bit gratuitous given you just resilvered. Still it not like this is a typical operation and if it gives you peace of mind.
 
Status
Not open for further replies.
Top