From owner-freebsd-fs@FreeBSD.ORG Tue Jan 20 22:37:01 2015 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4E980A76 for ; Tue, 20 Jan 2015 22:37:01 +0000 (UTC) Received: from mail-oi0-x234.google.com (mail-oi0-x234.google.com [IPv6:2607:f8b0:4003:c06::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 149C7837 for ; Tue, 20 Jan 2015 22:37:01 +0000 (UTC) Received: by mail-oi0-f52.google.com with SMTP id h136so12775747oig.11 for ; Tue, 20 Jan 2015 14:37:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=gA8OlR2UfavrBNF9Y0MHMYihDS5REnwPkiuWHmE7wH4=; b=SVgdj9HbVsddDfHqDxG7ka5h5Nfq/a2+qFPOyuCpty38zK70JUVWEE605uvFpjCSK5 yZuUrQxCrG28O9GJMFxD9wI0ysHVauZ9Ody2dqmbDeDRmSKSLzersIg7fKJIAHqTq/7f LDACYeUdXiO/LSEP9bj1FmQRIuc0Tkw/i8t8anGePSHpE2eTEQhBW9Zeaqm44cmzV4yp kiXk0OoyqlzsU9NusC2pcgCN1nWM2SBRKcKmeQWrw1CVfo7N72NoyT31O/sOtnp5zPZf Y82PfbtSBsdFsMFJ8aN01fnS+8NZcto3xK3hfSSYLouaOU+ASsEO5G1fl9Bew+l5aDUi T27w== MIME-Version: 1.0 X-Received: by 10.182.76.2 with SMTP id g2mr5884854obw.76.1421793420436; Tue, 20 Jan 2015 14:37:00 -0800 (PST) Received: by 10.60.29.227 with HTTP; Tue, 20 Jan 2015 14:37:00 -0800 (PST) Date: Wed, 21 Jan 2015 00:37:00 +0200 Message-ID: Subject: Kernel fails to mount zfs on system boot From: Mykhaylo Yehorov To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2015 22:37:01 -0000 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