From owner-freebsd-geom@freebsd.org Mon Aug 27 20:18:01 2018 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 897D11094E2C for ; Mon, 27 Aug 2018 20:18:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 10754819A9 for ; Mon, 27 Aug 2018 20:18:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C5C601094E2A; Mon, 27 Aug 2018 20:18:00 +0000 (UTC) Delivered-To: geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8B30F1094E29 for ; Mon, 27 Aug 2018 20:18:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1655C819A7 for ; Mon, 27 Aug 2018 20:18:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5AE221875C for ; Mon, 27 Aug 2018 20:17:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w7RKHxlh070585 for ; Mon, 27 Aug 2018 20:17:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7RKHxRP070584 for geom@FreeBSD.org; Mon, 27 Aug 2018 20:17:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: geom@FreeBSD.org Subject: [Bug 230910] zfs fails to mount root with error 22 when geom_mirror is loaded (possible regression) Date: Mon, 27 Aug 2018 20:17:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: arcade@b1t.name X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: geom@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2018 20:18:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230910 --- Comment #5 from Volodymyr Kostyrko --- Looks like I partially know whats going on here. First when I tried to partition drives they were just freebsd-boot, freebsd-swap and freebsd-zfs.= But when that failed to work I=C2=A0sliced out 1G=C2=A0out of last one into oth= er partition: # gpart show da0 =3D> 40 781422688 da0 GPT (373G) 40 256 1 freebsd-boot (128K) 296 67108864 2 freebsd-swap (32G) 67109160 2097152 3 freebsd-ufs (1.0G) 69206312 712216408 4 freebsd-zfs (340G) 781422720 8 - free - (4.0K) arcade@cis\/home/arcade# zpool status mycon pool: mycon state: ONLINE scan: scrub repaired 0 in 0h33m with 0 errors on Mon Aug 13 04:45:19 2018 config: NAME STATE READ WRITE CKSUM mycon ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 da0p4 ONLINE 0 0 0 da1p4 ONLINE 0 0 0 da2p4 ONLINE 0 0 0 errors: No known data errors Here what it shows during "good" boot: Reconstructed root pool config: version: 5000 name: mycon state: 0 txg: 19961181 pool_guid: 14318237666280658641 hostid: 2404943215 hostname: cis.mix101.info vdev_children: 1 features_for_read: com.delphix:hole_birth: false com.delphix:embedded_data: false vdev_tree: type: root id: 0 guid: 14318237666280658641 children: children[0]: type: raidz id: 0 guid: 17901688662798610243 nparity: 1 metaslab_array: 39 metaslab_shift: 33 ashift: 12 asize: 1093949718528 is_log: 0 create_txg: 4 children: children[0]: type: disk id: 0 guid: 3986367950682223964 path: /dev/da0p4 whole_disk: 1 DTL: 177 create_txg: 4 children[1]: type: disk id: 1 guid: 9245294472961478945 path: /dev/da1p4 whole_disk: 1 DTL: 176 create_txg: 4 children[2]: type: disk id: 2 guid: 5056913690226738568 path: /dev/da2p4 whole_disk: 1 DTL: 175 create_txg: 4 This means that ZFS finds correct pool marks on partition already grabbed by geom_mirror and fails when trying to construct pool because kernel would not allow rw access there. I'll go zero out my ufs partitions... --=20 You are receiving this mail because: You are the assignee for the bug.=