From owner-freebsd-fs@FreeBSD.ORG Sat Sep 14 20:02:46 2013 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9EEF38C2; Sat, 14 Sep 2013 20:02:46 +0000 (UTC) (envelope-from danger@FreeBSD.org) Received: from services.syscare.sk (services.syscare.sk [188.40.39.36]) by mx1.freebsd.org (Postfix) with ESMTP id D9D3A28CD; Sat, 14 Sep 2013 20:02:45 +0000 (UTC) Received: from services.syscare.sk (services [188.40.39.36]) by services.syscare.sk (Postfix) with ESMTP id 2370C5CDB; Sat, 14 Sep 2013 21:53:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at rulez.sk Received: from services.syscare.sk ([188.40.39.36]) by services.syscare.sk (services.rulez.sk [188.40.39.36]) (amavisd-new, port 10024) with ESMTP id FlTngpxMXRrR; Sat, 14 Sep 2013 21:53:03 +0200 (CEST) Received: from mbp.local (adsl-dyn14.91-127-75.t-com.sk [91.127.75.14]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: danger@rulez.sk) by services.syscare.sk (Postfix) with ESMTPSA id 9D56F5CC5; Sat, 14 Sep 2013 21:53:03 +0200 (CEST) Message-ID: <5234BE9E.1030308@FreeBSD.org> Date: Sat, 14 Sep 2013 21:53:02 +0200 From: Daniel Gerzo Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: avg@freebsd.org, fs@freebsd.org Subject: Mounting from zfs failed with error 22 with gmirror Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Sep 2013 20:02:46 -0000 Hello list, I have come across this thing and I don't have an idea what to do next. I have this partition setup: [root@rescue ~]# gpart show => 34 3907029101 ada0 GPT (1.8T) 34 6 - free - (3.0k) 40 1024 1 freebsd-boot (512k) 1064 83886080 2 freebsd-swap (40G) 83887144 3823141984 3 freebsd-zfs (1.8T) 3907029128 7 - free - (3.5k) => 34 3907029101 ada1 GPT (1.8T) 34 6 - free - (3.0k) 40 1024 1 freebsd-boot (512k) 1064 83886080 2 freebsd-swap (40G) 83887144 3823141984 3 freebsd-zfs (1.8T) 3907029128 7 - free - (3.5k) [root@rescue ~]# gpart show -l => 34 3907029101 ada0 GPT (1.8T) 34 6 - free - (3.0k) 40 1024 1 boot0 (512k) 1064 83886080 2 swap0 (40G) 83887144 3823141984 3 sys0 (1.8T) 3907029128 7 - free - (3.5k) => 34 3907029101 ada1 GPT (1.8T) 34 6 - free - (3.0k) 40 1024 1 boot1 (512k) 1064 83886080 2 swap1 (40G) 83887144 3823141984 3 sys1 (1.8T) 3907029128 7 - free - (3.5k) [root@rescue ~]# zpool import -f -o altroot=/mnt -o cachefile=/boot/zfs/zpool.cache sys [root@rescue ~]# zpool status pool: sys state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM sys ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/sys0 ONLINE 0 0 0 gpt/sys1 ONLINE 0 0 0 errors: No known data errors [root@rescue ~]# zdb sys: version: 28 name: 'sys' state: 0 txg: 13622 pool_guid: 13749191682008517984 hostid: 966392425 hostname: 'rescue' vdev_children: 1 vdev_tree: type: 'root' id: 0 guid: 13749191682008517984 children[0]: type: 'mirror' id: 0 guid: 10821644781744913225 metaslab_array: 30 metaslab_shift: 34 ashift: 12 asize: 1957443928064 is_log: 0 create_txg: 4 children[0]: type: 'disk' id: 0 guid: 12516881521540558071 path: '/dev/gpt/sys0' phys_path: '/dev/gpt/sys0' whole_disk: 1 create_txg: 4 children[1]: type: 'disk' id: 1 guid: 187152467666907385 path: '/dev/gpt/sys1' phys_path: '/dev/gpt/sys1' whole_disk: 1 create_txg: 4 [root@rescue ~]# zpool get bootfs sys NAME PROPERTY VALUE SOURCE sys bootfs sys/default/root local [root@rescue ~]# gmirror status Name Status Components mirror/swap COMPLETE ada1p2 (ACTIVE) ada0p2 (ACTIVE) The problem is that while I do not load geom_mirror from loader.conf, the machine boots fine, however as soon as I enable gmirror in loader.conf the machine doesn't boot and errors with /Trying to mount root from zfs:sys/default/root [].../ /Mounting from zfs:sys/default/root failed with error 22. / and it hangs in the prompt asking me to enter device to mount root from. I found only this http://lists.freebsd.org/pipermail/freebsd-current/2012-November/037910.html email where avg@ mentions that it might be a bug in his code, but no further followups. However that is almost a year ago and I got trapped by this on 9.2-RC4. Could anyone possibly give me some hints? (Please keep in in cc: as I am not subscribed to fs@) Thank you in advance! Kind regards, Daniel