From owner-freebsd-fs@FreeBSD.ORG Tue Dec 8 05:06:20 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 4F2E6106566C; Tue, 8 Dec 2009 05:06:20 +0000 (UTC) (envelope-from ktouet@gmail.com) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id E9C438FC0A; Tue, 8 Dec 2009 05:06:19 +0000 (UTC) Received: by gxk10 with SMTP id 10so3930516gxk.3 for ; Mon, 07 Dec 2009 21:06:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=BpKGkon4sOgc48+cetkxnfNV6cYJH/TbTGEIiJ9EoK0=; b=kC9cNr7YHHQ9SVgpZeJ1jgBtWcJwfzsskdLTh+OMAr05hXCrsEerC3U6mHVpXOz5RO rsusSJRwz4PUrgq+1jTZSGBSyRgNNxdp9vewe3aMb2XxBzFjKJH4tVFMROqkKxSKMl5H y4YlXxvWevk+JLIJW1xd535Ga5ErzOYgU1SZ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=cynrRJ0fGPTr+qa5O04Q9T2kbnlG59l2h9dp0UQsVoNrRJjee9FVtGxhhtSJiY1vdk mRYtgXdiHwG+p6ZRe1Vf8hb6SO/mVFU45RuvlSOXFcWpjLRjEJFec8j0E91AgJ6DG6AV 90piUTNv7//lbmnHPc9wue+6WVd8Bct4/ojAQ= MIME-Version: 1.0 Received: by 10.91.21.25 with SMTP id y25mr2819602agi.66.1260248778129; Mon, 07 Dec 2009 21:06:18 -0800 (PST) In-Reply-To: <2a5e326f0912071259g840e88ejc9951137380d9f95@mail.gmail.com> References: <2a5e326f0912061134s79c05e75td77e6874d409c675@mail.gmail.com> <20091207191048.GB1795@garage.freebsd.pl> <2a5e326f0912071203y35d45205n4566c1bb3260166d@mail.gmail.com> <20091207204012.GD1795@garage.freebsd.pl> <2a5e326f0912071259g840e88ejc9951137380d9f95@mail.gmail.com> Date: Mon, 7 Dec 2009 23:06:18 -0600 Message-ID: <2a5e326f0912072106w58e31924ja8e22dc009665080@mail.gmail.com> From: Kurt Touet To: Pawel Jakub Dawidek Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 08 Dec 2009 05:06:20 -0000 On Mon, Dec 7, 2009 at 2:59 PM, Kurt Touet wrote: > On Mon, Dec 7, 2009 at 2:40 PM, Pawel Jakub Dawidek wro= te: >> 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 w= rote: >>> > 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 a= t >>> >> 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 th= e >>> >> first). =A0I was following the >>> >> http://blogs.freebsdish.org/lulf/2008/12/16/setting-up-a-zfs-only-sy= stem/ >>> >> 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: >> >> =A0 =A0 =A0 =A0Date: Sat Dec =A05 14:24:22 2009 >> =A0 =A0 =A0 =A0New Revision: 200125 >> >> And fixed here: >> >> =A0 =A0 =A0 =A0Date: Sat Dec =A05 20:16:28 2009 >> =A0 =A0 =A0 =A0New Revision: 200158 >> >> It looks like you get the source from this window. >> >> Please rebuild with r200158 in place and retry. Sorry for the breakage. >> >> -- >> Pawel Jakub Dawidek =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://w= ww.wheel.pl >> pjd@FreeBSD.org =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http= ://www.FreeBSD.org >> FreeBSD committer =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Am I E= vil? Yes, I Am! >> > > I think I managed to miss that -- I'm running FreeBSD 9.0-CURRENT #0 > r200177 amd64. =A0But, I will update again and see if that solves the > problem. > I've updated to r200237 and I am getting the same error. Is there another way that I can go about troubleshooting this? Thanks, -kurt