From owner-freebsd-fs@FreeBSD.ORG Sat Jan 15 12:47:20 2011 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 3FAD11065674; Sat, 15 Jan 2011 12:47:20 +0000 (UTC) (envelope-from kvsbinsol@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id DB98E8FC0A; Sat, 15 Jan 2011 12:47:19 +0000 (UTC) Received: by gwj21 with SMTP id 21so1492358gwj.13 for ; Sat, 15 Jan 2011 04:47:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Ju9aa/Ex7CdQ0Z4AEeH2qUBWcWiifLVNnQaHVjg2bTc=; b=h2C0db8HSKdPJ8AZJrNja3jhfJvzcMWvMG/TY36IemHj0DI/t3b51x2w9e+nSF/Kw3 le0BugXsBYyjE4Cbl+LLnwvD54/y3ghIrkIVOR0Rrw08dKFlSS7mdsRYA7gHPm/1kh8/ 0UGdtuBdO+1wGutUIg1W1qRVH3CnpOXs1JbY8= 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=Lq+SEx+FaTB+IMe9e4dxR+Kv1rILl69jhguqwOwFXOYX/kRE0LpzTcIj0bM5LCC4tr ARB+FbrTvYCSWr3SY0wwdpffFbynyx6qtd5xzJFbSldCcjUhfHjDD4wolAnsT1cC5hwd N8H+Lqi07CuOBcRMWx1CokKIMQ5/NtHMUgsO0= MIME-Version: 1.0 Received: by 10.151.147.9 with SMTP id z9mr2540143ybn.247.1295095638944; Sat, 15 Jan 2011 04:47:18 -0800 (PST) Received: by 10.151.82.17 with HTTP; Sat, 15 Jan 2011 04:47:18 -0800 (PST) In-Reply-To: <20110115092729.GB5335@garage.freebsd.pl> References: <20110115092729.GB5335@garage.freebsd.pl> Date: Sat, 15 Jan 2011 13:47:18 +0100 Message-ID: From: Kenneth Vestergaard To: Pawel Jakub Dawidek Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: Booting from a ZFS pool exported on another system. 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: Sat, 15 Jan 2011 12:47:20 -0000 On Sat, Jan 15, 2011 at 10:27 AM, Pawel Jakub Dawidek wro= te: >> Is this a bug in zfsboot, or simply just the way things work? > > This was implemented that way, but I don't like this behaviour too. > I was beaten by this in the past myself. I just looked at OpenSolaris > code and they only skip destroyed pools, which is better than what we > do. Could you try the following patch: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0http://people.freebsd.org/~pjd/patches/zfsimpl= .c.patch How'd that work when it comes to mounting the root pool? At that point, it'= d still be exported, so I'm guessing something would barf? I got my image booting by simply creating the image before exporting the po= ol. I did a 'zfs unmount imgroot' first, but I don't know if I can be sure that= all buffers are synced. Nonetheless, it worked. --=20 Kenneth Vestergaard