From owner-freebsd-current@FreeBSD.ORG Fri Jul 17 10:25:13 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3733A1065679 for ; Fri, 17 Jul 2009 10:25:13 +0000 (UTC) (envelope-from artis.caune@gmail.com) Received: from mail-bw0-f208.google.com (mail-bw0-f208.google.com [209.85.218.208]) by mx1.freebsd.org (Postfix) with ESMTP id B54F68FC22 for ; Fri, 17 Jul 2009 10:25:12 +0000 (UTC) (envelope-from artis.caune@gmail.com) Received: by bwz4 with SMTP id 4so563607bwz.43 for ; Fri, 17 Jul 2009 03:25:11 -0700 (PDT) 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:content-type :content-transfer-encoding; bh=zaDZte612nNNO3cFshAcRYoFobqA1WGWuMf4QVWx1pQ=; b=YUVv3dy/vuKwv/Cne23AIU7BgGL0PHWWKgqPvpQbY1jlmJDyg/Pm6xbrSExha2EIDm oYPMU0JbCBDWLEiWx4Caxr2xFmAhJb2JSke+ZolWQBpAIie59IMVSUaT1gGsV7nKB3l8 e7HhdJh5eg+Bj3h+UxwMSEcti3T40cT8MhDq0= 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 :content-type:content-transfer-encoding; b=h1AHvWBfdK4JXgyTXGl5LVkyiPvivs5QEY7tsVFmQss1pWXKWB3qXHb1yUf3PtDakI sBiCLpSM8DU2mBEp3KWKAc5ZXKJREfefERZLmSs1NelReAXXrfj1JY1IITitUkdpEmc+ DXn4F8bdka1GCXjrA5hRJ1PccCkKjxf1Mla6k= MIME-Version: 1.0 Received: by 10.103.193.13 with SMTP id v13mr427416mup.136.1247826311523; Fri, 17 Jul 2009 03:25:11 -0700 (PDT) In-Reply-To: <9e20d71e0907160627v57e9bbd3r6d305aaa5694711c@mail.gmail.com> References: <9e20d71e0907160627v57e9bbd3r6d305aaa5694711c@mail.gmail.com> Date: Fri, 17 Jul 2009 13:25:11 +0300 Message-ID: <9e20d71e0907170325t406e1beap34bcc0e9c351cbc8@mail.gmail.com> From: Artis Caune To: FreeBSD Current Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Panic when booting from USB+GPT and ZFS X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2009 10:25:13 -0000 2009/7/16 Artis Caune : > Hi, > > I'm booting from USB GPT flash disk (amd64, 8.0-BETA2, r195712) and > I'm getting panic when running command "zpool import": > > ZFS WARNING: Cannot open da0p2 for writting. > ZFS WARNING: Cannot open gptid/...... for writting. > > Fatal trap 12: page fault while in kernel mode > cpuid =3D 0; apic id =3D 00 > fault virtual address =C2=A0 =3D 0x48 > fault code =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D supervisor= read data, page not present > ... > current process =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D 2 (g_event) Sorry for noise, I was playing with ZFS on this usb stick and created zfs:builder pool on GPT partition. Then I created bootable instalation disk on this usb stick, but didn't properly destroyed zfs:builder pool. I tried to install BETA2 but got this panic. I plugged stick in another box, run zpool import and there was zfs:builder pool, faulty. I could not import it. I zeroed usb stick, created fresh installation image and no more panics. Lesson learned: always clean-up after yourself! :) I'll beter rewrite this script to s/dd/gpart delete/ --=20 Artis Caune Everything should be made as simple as possible, but not simpler.