From owner-freebsd-stable@FreeBSD.ORG Wed Sep 2 14:10:27 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 348761065780 for ; Wed, 2 Sep 2009 14:10:27 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id DEF3A8FC18 for ; Wed, 2 Sep 2009 14:10:26 +0000 (UTC) Received: by megatron.madpilot.net (Postfix, from userid 1000) id C2324168C; Wed, 2 Sep 2009 15:54:13 +0200 (CEST) Date: Wed, 2 Sep 2009 15:54:13 +0200 From: Guido Falsi To: Ed Jobs Message-ID: <20090902135413.GA29201@megatron.madpilot.net> References: <4A9E48F1.60606@quip.cz> <200909021350.25025.oloringr@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200909021350.25025.oloringr@gmail.com> X-Operating-System: FreeBSD 8.0-BETA3 User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-stable@freebsd.org Subject: Re: zfs on gmirror slice X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2009 14:10:27 -0000 On Wed, Sep 02, 2009 at 01:50:24PM +0300, Ed Jobs wrote: > On Wednesday 02 September 2009 13:29, Miroslav Lachman wrote: > > > > I think zpool export and then zpool import should fix it. See the manpage. > > > > a simple zpool import will list all the pools available that you can import, > then you can use > zpool import -f to import it. > > the only problem i found with that, is that on a fixit environment, i had a > zroot pool mounted as legacy and when i imported it with -f it broke the whole > thing. some libraries went missing and i couldn't even ls. Most probably you had mountpoint set to system paths (/usr, for example). The -R option could help ypu there, so all zfses will be mounted relative to an alternative root and not overwrite the fixit system paths. That is a proprietary property and will not be saved to the pool anyway. I evn usually set mountpoint=/ for the root zfs when I make zfs boot systems, works like a charm. -- Guido Falsi