From owner-freebsd-fs@FreeBSD.ORG Mon Dec 7 20:40:22 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C8931065670 for ; Mon, 7 Dec 2009 20:40:22 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id 593518FC0C for ; Mon, 7 Dec 2009 20:40:20 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 4298D45F18; Mon, 7 Dec 2009 21:40:19 +0100 (CET) Received: from localhost (chello089077043238.chello.pl [89.77.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 0A90645C9C; Mon, 7 Dec 2009 21:40:12 +0100 (CET) Date: Mon, 7 Dec 2009 21:40:12 +0100 From: Pawel Jakub Dawidek To: Kurt Touet Message-ID: <20091207204012.GD1795@garage.freebsd.pl> References: <2a5e326f0912061134s79c05e75td77e6874d409c675@mail.gmail.com> <20091207191048.GB1795@garage.freebsd.pl> <2a5e326f0912071203y35d45205n4566c1bb3260166d@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ieNMXl1Fr3cevapt" Content-Disposition: inline In-Reply-To: <2a5e326f0912071203y35d45205n4566c1bb3260166d@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: zpool create fails on gpart device X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2009 20:40:22 -0000 --ieNMXl1Fr3cevapt Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 07, 2009 at 02:03:09PM -0600, Kurt Touet wrote: > On Mon, Dec 7, 2009 at 1:10 PM, Pawel Jakub Dawidek wro= te: > > On Sun, Dec 06, 2009 at 01:34:13PM -0600, Kurt Touet wrote: > >> I've been interested in using a gptzfsboot setup on a few of my > >> systems, and thought I'd try it out in a VM first, but I'm blocked at > >> creating a zpool. =A0Here's what I did: > >> > >> - create a new VM with 2 drives (da0 & da1) > >> - install 8.0R amd64 > >> - install subversion from sysinstall & checkout base/head > >> - build & install -current > >> > >> Instead of creating a gptzfsboot install disc, I thought I'd just > >> create the zpool on the second drive, install things to there, and > >> then make the VM boot off the second drive afterwards (and remove the > >> first). =A0I was following the > >> http://blogs.freebsdish.org/lulf/2008/12/16/setting-up-a-zfs-only-syst= em/ > >> guide, and got to this stage: > >> > >> # gpart create -s GPT da1 > >> # gpart add -b 34 -s 128 -t freebsd-boot da1 > >> # gpart add -b 162 -s 5242880 -t freebsd-swap da1 > >> # gpart add -b 5243042 -s 57671485 -t freebsd-zfs da1 > >> # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da1 > >> > >> # gpart show da1 > >> =3D> =A0 =A0 =A034 =A062914493 =A0da1 =A0GPT =A0(30G) > >> =A0 =A0 =A0 =A0 34 =A0 =A0 =A0 128 =A0 =A01 =A0freebsd-boot =A0(64K) > >> =A0 =A0 =A0 =A0162 =A0 5242880 =A0 =A02 =A0freebsd-swap =A0(2.5G) > >> =A0 =A05243042 =A057671485 =A0 =A03 =A0freebsd-zfs =A0(27G) > >> > >> # zpool create data /dev/da1p3 > >> cannot create 'data': permission denied Ok, I guess this is HEAD, right? I think you just had bad luck. I break this here: Date: Sat Dec 5 14:24:22 2009 New Revision: 200125 And fixed here: Date: Sat Dec 5 20:16:28 2009 New Revision: 200158 It looks like you get the source from this window. Please rebuild with r200158 in place and retry. Sorry for the breakage. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --ieNMXl1Fr3cevapt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFLHWgsForvXbEpPzQRAsI9AKDql37PlIaWLR/FpJoNSkhtWrImSwCg0uMg eayiOqtEl+3MAkLvvlWdQLM= =YJJ0 -----END PGP SIGNATURE----- --ieNMXl1Fr3cevapt--