From owner-freebsd-questions@FreeBSD.ORG Tue Jan 19 17:07:57 2010 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A01C1065670 for ; Tue, 19 Jan 2010 17:07:57 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-bw0-f209.google.com (mail-bw0-f209.google.com [209.85.218.209]) by mx1.freebsd.org (Postfix) with ESMTP id 9E6328FC1E for ; Tue, 19 Jan 2010 17:07:56 +0000 (UTC) Received: by bwz1 with SMTP id 1so1715113bwz.13 for ; Tue, 19 Jan 2010 09:07:55 -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=JlKCedw1cNsBIzq60OckabkNYCFYyIojjANoDI4JdP8=; b=YJx/fI+Si7a7RIIyT6J58X/cautJ9gKnwqzhk/vN5rx3wuSLCCvJWyp/uMSW6yj2Sr Nq/aZcUASAR9Z0FjoVThdUfsV3uUCEA28wlLZe/a2fbGc2gNonHb1n1CX50FoZkRVpiQ sv5spMbSA9amViyHaoC+hMkvGRMV/t8MkH+fA= 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=ONMmBo3aMV4De1Mz1hBNtQVw304gEdAjDg2070pl15G8Hz+mylUu8VCULhbUGL8CFH wv2z5RJNsGW2LQb92bLbWX1s26lOhCCf1PIWXkNI/6W/hWtUc5ihkftVUVPDSxLUTqVi O/AlHJLRHBhRheuYSCB26HHhb8AnrkUBHv17U= MIME-Version: 1.0 Received: by 10.239.159.148 with SMTP id y20mr813205hbc.58.1263920875181; Tue, 19 Jan 2010 09:07:55 -0800 (PST) In-Reply-To: <4B55D3E3.20502@ibctech.ca> References: <4B4BBB4F.5020805@ibctech.ca> <4B55D3E3.20502@ibctech.ca> Date: Tue, 19 Jan 2010 17:07:55 +0000 Message-ID: From: krad To: Steve Bertrand Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "questions@freebsd.org" Subject: Re: Can't mountroot from ZFS pool 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: Tue, 19 Jan 2010 17:07:57 -0000 2010/1/19 Steve Bertrand > krad wrote: > > > > > > 2010/1/11 Steve Bertrand > > > > > All, > > > > I've successfully upgraded the disks in my ZFS backup server, and can > > import/mount the pool properly. > > > > However, I designed this box originally so that it mounts / from > > zfs:storage after booting from a USB stick. > > > > After the upgrade of the disks, I'm stuck at a mountroot prompt when > I > > attempt to boot the system with the original USB /boot key. > > > > Can someone inform me how to find the / filesystem at the mountroot > > prompt? If not, is there *any* way to boot the system normally from > > another medium, and then 'reload' the system with the ZFS / after its > > been mounted so that the system functions as designed (ie. cron > > works etc)? > > > did you export the pool at all before rebooting it? > > Yes, I did. > > I just finally got it resolved :) > > It appears as though by importing the zpool onto another system > obsoleted the cache file on the original USB /boot disk. > > I exported, then imported the pool on the secondary system, then copied > the cache file into the /boot/zfs directory on my original boot medium. > > Things are now working again, and I have all of my new storage and > original data in place! > > Thanks for all the help! > > Steve > Its an easy mistake to make. People think exporting a pool is the same as unmounting but it isn't really, and its kind of difficult to explain why (unless ur an uber guru) One thing for sure is that the hostid of the system is stored in to the zpool somewhere as is the state of it. This also has to match the zpool.cache files details. The reason for this is probably largely to do with sun clustering, where a pool on a particular lun may be visible to many nodes in the cluster, but only one having it currently imported and the subsequent file systems mounted. Hmm, why does it always sound so clunky when I try to explain it 8/