From owner-freebsd-questions@freebsd.org Fri Apr 29 08:25:37 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DFBBFB20E4C for ; Fri, 29 Apr 2016 08:25:37 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [195.30.95.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9FB7A1820 for ; Fri, 29 Apr 2016 08:25:37 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from server.idefix.lan (aftr-185-17-205-20.dynamic.mnet-online.de [185.17.205.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: idefix@fechner.net) by anny.lostinspace.de (Postfix) with ESMTPSA id 525823D802B; Fri, 29 Apr 2016 10:25:27 +0200 (CEST) DMARC-Filter: OpenDMARC Filter v1.3.1 anny.lostinspace.de 525823D802B Authentication-Results: anny.lostinspace.de; dmarc=none header.from=fechner.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fechner.net; s=default; t=1461918327; bh=PYFavkM80ba31/gRwbEdDKtwCqu4AQKrF4JfLMwZHCU=; h=Subject:To:References:From:Date:In-Reply-To; b=SMmQFUYBmcUt2IdzAD8P98dIORVzTr+zdDIO0SxivVf48TgzCThsYT2LhZANlza2o eQuPdPZhjF4P3svoyOhp783YSE2LTvSu+5A3BNZoGOByoeY0acH93R9dJODugtoDfi 2Rb9N60gJgoIjacHe/JCCgCkRLBI/3MfcB934vO4= Received: from [192.168.0.151] (aftr-185-17-205-20.dynamic.mnet-online.de [185.17.205.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by server.idefix.lan (Postfix) with ESMTPSA id A341929B4A8; Fri, 29 Apr 2016 10:25:26 +0200 (CEST) Subject: Re: ZFS migration - New pool lost after reboot To: Sebastian Wolfgarten , freebsd-questions@freebsd.org References: <0A383C91-FCBA-4B9E-A95A-157A13708125@wolfgarten.com> From: Matthias Fechner Message-ID: <72087b33-53f9-e298-1441-4988c2a5ecb3@fechner.net> Date: Fri, 29 Apr 2016 10:25:24 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <0A383C91-FCBA-4B9E-A95A-157A13708125@wolfgarten.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2016 08:25:38 -0000 Am 28.04.2016 um 23:14 schrieb Sebastian Wolfgarten: > 5) Mount new pool and prepare for reboot > > cp /tmp/zpool.cache /tmp/newpool.cache > zpool export newpool > zpool import -c /tmp/newpool.cache -R /mnt newpool > cp /tmp/newpool.cache /mnt/boot/zfs/zpool.cache > zfs set mountpoint=/ newpool/ROOT > reboot I think you forgot to adapt vfs.zfs.mountfrom= in /boot/loader.conf on the new pool? Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook