Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2015 00:37:00 +0200
From:      Mykhaylo Yehorov <yehorov@gmail.com>
To:        freebsd-fs@freebsd.org
Subject:   Kernel fails to mount zfs on system boot
Message-ID:  <CAH=XtiR32cYAGaCsfPyPjZTcO-=H2AQSCu0xdO5b5Fx4_x%2Bs9g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
After upgrade from 9-STABLE to 10.1-RELEASE I've faced a problem.
On first boot the operation system starts normally. After reboot the
kernel is loaded but fails to mount root file system. The following
message is the last I can see.
Trying to mount root from zfs:red []...
Then the system reboots.

I can boot from USB memory stick and import zfs pool.
# zpool import -R /mnt -N red
After that the system boots only once and then a reboot loop repeats.

After the scrub 'zfs status' shows no error.

# gpart show ada0
=>        34  1953525101  ada0  GPT  (932G)
          34        2014        - free -  (1.0M)
        2048         128     1  freebsd-boot  (64K)
        2176        1920        - free -  (960K)
        4096    33554432     2  freebsd-swap  (16G)
    33558528  1919965184     3  freebsd-zfs  (916G)
  1953523712        1423        - free -  (712K)


# zdb -lu /dev/gpt/red
--------------------------------------------
LABEL 0
--------------------------------------------
    version: 5000
    name: 'red'
    state: 0
    txg: 589853
    pool_guid: 5047859198801256900
    hostid: 4234684483
    hostname: ''
    top_guid: 17887644856352637289
    guid: 17887644856352637289
    vdev_children: 1
    vdev_tree:
        type: 'disk'
        id: 0
        guid: 17887644856352637289
        path: '/dev/gpt/red'
        phys_path: '/dev/gpt/red'
        whole_disk: 1
        metaslab_array: 34
        metaslab_shift: 33
        ashift: 12
        asize: 983017455616
        is_log: 0
        DTL: 394
        create_txg: 4
    features_for_read:
        com.delphix:hole_birth
        com.delphix:embedded_data
Uberblock[0]
    magic = 0000000000bab10c
    version = 5000
    txg = 591104
    guid_sum = 4488759981444342573
    timestamp = 1421791756 UTC = Wed Jan 21 00:09:16 2015
Uberblock[1]
    magic = 0000000000bab10c
    version = 5000
    txg = 591137
    guid_sum = 4488759981444342573
    timestamp = 1421791922 UTC = Wed Jan 21 00:12:02 2015
Uberblock[2]
    magic = 0000000000bab10c
    version = 5000
    txg = 591170
    guid_sum = 4488759981444342573
    timestamp = 1421792088 UTC = Wed Jan 21 00:14:48 2015
Uberblock[3]
    magic = 0000000000bab10c
    version = 5000
    txg = 591139
    guid_sum = 4488759981444342573
    timestamp = 1421791932 UTC = Wed Jan 21 00:12:12 2015
Uberblock[4]
    magic = 0000000000bab10c
    version = 5000
    txg = 590948
    guid_sum = 4488759981444342573
    timestamp = 1421790972 UTC = Tue Jan 20 23:56:12 2015
Uberblock[5]
    magic = 0000000000bab10c
    version = 5000
    txg = 591173
    guid_sum = 4488759981444342573
    timestamp = 1421792103 UTC = Wed Jan 21 00:15:03 2015
Uberblock[6]
    magic = 0000000000bab10c
    version = 5000
    txg = 591174
    guid_sum = 4488759981444342573
    timestamp = 1421792108 UTC = Wed Jan 21 00:15:08 2015
Uberblock[7]
    magic = 0000000000bab10c
    version = 5000
    txg = 591111
    guid_sum = 4488759981444342573
    timestamp = 1421791791 UTC = Wed Jan 21 00:09:51 2015
Uberblock[8]
    magic = 0000000000bab10c
    version = 5000
    txg = 590888
    guid_sum = 4488759981444342573
    timestamp = 1421790671 UTC = Tue Jan 20 23:51:11 2015
Uberblock[9]
    magic = 0000000000bab10c
    version = 5000
    txg = 591177
    guid_sum = 4488759981444342573
    timestamp = 1421792123 UTC = Wed Jan 21 00:15:23 2015
Uberblock[10]
    magic = 0000000000bab10c
    version = 5000
    txg = 591178
    guid_sum = 4488759981444342573
    timestamp = 1421792128 UTC = Wed Jan 21 00:15:28 2015
Uberblock[11]
    magic = 0000000000bab10c
    version = 5000
    txg = 591115
    guid_sum = 4488759981444342573
    timestamp = 1421791811 UTC = Wed Jan 21 00:10:11 2015
Uberblock[12]
    magic = 0000000000bab10c
    version = 5000
    txg = 590892
    guid_sum = 4488759981444342573
    timestamp = 1421790691 UTC = Tue Jan 20 23:51:31 2015
Uberblock[13]
    magic = 0000000000bab10c
    version = 5000
    txg = 591149
    guid_sum = 4488759981444342573
    timestamp = 1421791982 UTC = Wed Jan 21 00:13:02 2015
Uberblock[14]
    magic = 0000000000bab10c
    version = 5000
    txg = 591182
    guid_sum = 4488759981444342573
    timestamp = 1421792148 UTC = Wed Jan 21 00:15:48 2015
Uberblock[15]
    magic = 0000000000bab10c
    version = 5000
    txg = 591151
    guid_sum = 4488759981444342573
    timestamp = 1421791992 UTC = Wed Jan 21 00:13:12 2015
Uberblock[16]
    magic = 0000000000bab10c
    version = 5000
    txg = 591088
    guid_sum = 4488759981444342573
    timestamp = 1421791676 UTC = Wed Jan 21 00:07:56 2015
Uberblock[17]
    magic = 0000000000bab10c
    version = 5000
    txg = 591153
    guid_sum = 4488759981444342573
    timestamp = 1421792002 UTC = Wed Jan 21 00:13:22 2015
Uberblock[18]
    magic = 0000000000bab10c
    version = 5000
    txg = 591154
    guid_sum = 4488759981444342573
    timestamp = 1421792007 UTC = Wed Jan 21 00:13:27 2015
Uberblock[19]
    magic = 0000000000bab10c
    version = 5000
    txg = 591123
    guid_sum = 4488759981444342573
    timestamp = 1421791852 UTC = Wed Jan 21 00:10:52 2015
Uberblock[20]
    magic = 0000000000bab10c
    version = 5000
    txg = 590996
    guid_sum = 4488759981444342573
    timestamp = 1421791214 UTC = Wed Jan 21 00:00:14 2015
Uberblock[21]
    magic = 0000000000bab10c
    version = 5000
    txg = 591125
    guid_sum = 4488759981444342573
    timestamp = 1421791862 UTC = Wed Jan 21 00:11:02 2015
Uberblock[22]
    magic = 0000000000bab10c
    version = 5000
    txg = 591158
    guid_sum = 4488759981444342573
    timestamp = 1421792027 UTC = Wed Jan 21 00:13:47 2015
Uberblock[23]
    magic = 0000000000bab10c
    version = 5000
    txg = 591127
    guid_sum = 4488759981444342573
    timestamp = 1421791872 UTC = Wed Jan 21 00:11:12 2015
Uberblock[24]
    magic = 0000000000bab10c
    version = 5000
    txg = 590968
    guid_sum = 4488759981444342573
    timestamp = 1421791073 UTC = Tue Jan 20 23:57:53 2015
Uberblock[25]
    magic = 0000000000bab10c
    version = 5000
    txg = 591001
    guid_sum = 4488759981444342573
    timestamp = 1421791239 UTC = Wed Jan 21 00:00:39 2015
Uberblock[26]
    magic = 0000000000bab10c
    version = 5000
    txg = 591162
    guid_sum = 4488759981444342573
    timestamp = 1421792048 UTC = Wed Jan 21 00:14:08 2015
Uberblock[27]
    magic = 0000000000bab10c
    version = 5000
    txg = 591131
    guid_sum = 4488759981444342573
    timestamp = 1421791892 UTC = Wed Jan 21 00:11:32 2015
Uberblock[28]
    magic = 0000000000bab10c
    version = 5000
    txg = 591164
    guid_sum = 4488759981444342573
    timestamp = 1421792058 UTC = Wed Jan 21 00:14:18 2015
Uberblock[29]
    magic = 0000000000bab10c
    version = 5000
    txg = 591005
    guid_sum = 4488759981444342573
    timestamp = 1421791259 UTC = Wed Jan 21 00:00:59 2015
Uberblock[30]
    magic = 0000000000bab10c
    version = 5000
    txg = 591166
    guid_sum = 4488759981444342573
    timestamp = 1421792068 UTC = Wed Jan 21 00:14:28 2015
Uberblock[31]
    magic = 0000000000bab10c
    version = 5000
    txg = 591135
    guid_sum = 4488759981444342573
    timestamp = 1421791912 UTC = Wed Jan 21 00:11:52 2015

After upgrade to 10.1-RELEASE-p4 and 10.1-STABLE I can see the same.

Could anyone suggest how to repair zpool?
If it's needed I can provide more information.

-- 
Mykhaylo Yehorov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAH=XtiR32cYAGaCsfPyPjZTcO-=H2AQSCu0xdO5b5Fx4_x%2Bs9g>