From owner-freebsd-questions@FreeBSD.ORG Mon Jan 4 09:38:07 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1289A1065670 for ; Mon, 4 Jan 2010 09:38:07 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 9298B8FC18 for ; Mon, 4 Jan 2010 09:38:06 +0000 (UTC) Received: by fxm27 with SMTP id 27so549510fxm.3 for ; Mon, 04 Jan 2010 01:38:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=mE+nH47W5+BW/4JEVaO4rJQGwvJIqUYcJmcLm7Z7pJ0=; b=ojAm1DtNgL3Jm+KQSahRn5vF5bFb1lkmfJBepNB7coAmkS2MP6nQAM7aHh4X/DzEfE NIbdC5AOlM7uSgDdK2bQRT7XGherFZ5zckrdpoWqiGdOtqv4IbtWacvQ2z6yCaUxHaN+ VCPvpRrcNHWmhEtFHbjecirf3nT8nKHgr0ByI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tkzSQNP6O+rs2quRI0s6OqwGJ6LeU0/6OzKafqh16946MPm0dXeuaMYJPJ6O/NKb66 SDRmXd0A001xkUBfTHKI02jN8rbpsEmM/lsWftKyqWdi5CqRlkFAKDoCRpT8sLJLb2Gv ux2Ycq+pjdChbJOX9u9vhkNJbjkK/WU7nLeMs= MIME-Version: 1.0 Received: by 10.239.170.28 with SMTP id q28mr606797hbe.149.1262597880968; Mon, 04 Jan 2010 01:38:00 -0800 (PST) In-Reply-To: <86y6ke1lw2.fsf@blue.stonehenge.com> References: <863a2n3yst.fsf@blue.stonehenge.com> <4B40E3B9.4020505@otenet.gr> <86y6kf2ful.fsf@blue.stonehenge.com> <4B40E9EA.1090204@otenet.gr> <86tyv32ek6.fsf@blue.stonehenge.com> <86k4vy3ja8.fsf@blue.stonehenge.com> <86y6ke1lw2.fsf@blue.stonehenge.com> Date: Mon, 4 Jan 2010 09:38:00 +0000 Message-ID: From: krad To: "Randal L. Schwartz" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Manolis Kiagias , freebsd-questions@freebsd.org Subject: Re: Can't get "ZFS on GPT Root" to work. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2010 09:38:07 -0000 2010/1/4 Randal L. Schwartz > >>>>> "Randal" == Randal L Schwartz writes: > > >>>>> "krad" == krad writes: > krad> make sure you dont export the pool after you have copied the zpool > cache > krad> onto the zfs root fs, as that will break everything. > > Randal> Hmm. But doesn't executing a shutdown automatically export > everythign? > > Randal> if not, how is there ever a clean shutdown? :) > > But in fact, that was the problem. > > Once I followed *exactly* the instructions on the page, > not trying to "tidy up before reboot", it works just fine. > > Thanks everyone for your help. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > > Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. > See http://methodsandmessages.vox.com/ for Smalltalk and Seaside > discussion > it caught me out that. I think the issue is that export a zpool isnt analogous to unmounting a file system. After all you can unmount a zfs fs without exporting the pool. The fact that the zfs is copy on write and has the zil should mean it wont loose its integrity. Also every pool has the hostid of the current system that has imported it, embedded in it somewhere. eg if you try to import a pool that was previously mounted on another system and not exported, you have to import it with the -f flag. Exporting the pool clears this faild an alters the state of the pool.