Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2009 20:10:48 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Kurt Touet <ktouet@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: zpool create fails on gpart device
Message-ID:  <20091207191048.GB1795@garage.freebsd.pl>
In-Reply-To: <2a5e326f0912061134s79c05e75td77e6874d409c675@mail.gmail.com>
References:  <2a5e326f0912061134s79c05e75td77e6874d409c675@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--K8nIJk4ghYZn606h
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.  Here's what I did:
>=20
> - create a new VM with 2 drives (da0 & da1)
> - install 8.0R amd64
> - install subversion from sysinstall & checkout base/head
> - build & install -current
>=20
> 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).  I was following the
> http://blogs.freebsdish.org/lulf/2008/12/16/setting-up-a-zfs-only-system/
> guide, and got to this stage:
>=20
> # 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
>=20
> # gpart show da1
> =3D>      34  62914493  da1  GPT  (30G)
>         34       128    1  freebsd-boot  (64K)
>        162   5242880    2  freebsd-swap  (2.5G)
>    5243042  57671485    3  freebsd-zfs  (27G)
>=20
> # zpool create data /dev/da1p3
> cannot create 'data': permission denied

Can you ktrace this?

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--K8nIJk4ghYZn606h
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFLHVM4ForvXbEpPzQRAiO0AKCF7x/5ewkZUTD3Nop4PnrebRicPgCglMPC
J2H1e3Uj6PSND5za7dp5ZW0=
=dj34
-----END PGP SIGNATURE-----

--K8nIJk4ghYZn606h--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091207191048.GB1795>