From owner-freebsd-fs@FreeBSD.ORG Sat Jan 15 00:44:38 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 5224A106566C for ; Sat, 15 Jan 2011 00:44:38 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from fep28.mx.upcmail.net (fep28.mx.upcmail.net [62.179.121.48]) by mx1.freebsd.org (Postfix) with ESMTP id 8D0258FC1A for ; Sat, 15 Jan 2011 00:44:37 +0000 (UTC) Received: from edge02.upcmail.net ([192.168.13.237]) by viefep16-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110115002656.IFNR9043.viefep16-int.chello.at@edge02.upcmail.net> for ; Sat, 15 Jan 2011 01:26:56 +0100 Received: from pinky ([213.46.23.80]) by edge02.upcmail.net with edge id vcSu1f01o1jgp3H02cSwGK; Sat, 15 Jan 2011 01:26:56 +0100 X-SourceIP: 213.46.23.80 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-fs@freebsd.org References: <37C1E643-C7A9-4061-8316-281819AC947E@mulle-kybernetik.com> Date: Sat, 15 Jan 2011 01:26:55 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <37C1E643-C7A9-4061-8316-281819AC947E@mulle-kybernetik.com> User-Agent: Opera Mail/11.00 (Win32) X-Cloudmark-Analysis: v=1.1 cv=vUpxTctd+kpWCBtSXXIkt5ll4Z8E5Qu9nLREXC/hfIo= c=1 sm=0 a=sH-B-3ndls8A:10 a=bgpUlknNv7MA:10 a=IkcTkHD0fZMA:10 a=AHmt4OI5AAAA:8 a=99pkGPs_ccut02i47DwA:9 a=v1dAn5t6yF1ZFUAQ_OuF28B54i8A:4 a=QEXdDO2ut3YA:10 a=btb5l0_vzsgA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Subject: Re: Multiple ZFS pools and booting 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 00:44:38 -0000 Shouldn't you set the boot device in /boot/loader.conf? I have this line: vfs.root.mountfrom="zfs:zroot" Ronald. On Fri, 14 Jan 2011 14:31:11 +0100, Marcus Müller wrote: > Hi all, > > I have a single harddrive with GPT partitioning: > > root@muller:(~)# gpart show > => 34 234441581 ad10 GPT (112G) > 34 128 1 freebsd-boot (64K) > 162 8388608 2 freebsd-swap (4.0G) > 8388770 10485760 3 freebsd-zfs (5.0G) > 18874530 10485760 4 freebsd-zfs (5.0G) > 29360290 102540662 5 freebsd-zfs (49G) > 131900952 102540662 6 freebsd-zfs (49G) > 234441614 1 - free - (512B) > > ad10p3/ad10p4 (tank) and ad10p5/ad10p6 (muller) are two mirror zpools. > The root filesystem currently resides on tank. > > I wanted to migrate the root filesystem from tank to muller by changing > the mountpoints accordingly and resetting the bootfs zpool propery on > tank like this: > > root@muller:(~)# zpool get bootfs muller > NAME PROPERTY VALUE SOURCE > muller bootfs muller/roots/8-current local > root@muller:(~)# zpool set bootfs= tank > root@muller:(~)# zpool get bootfs tank > NAME PROPERTY VALUE SOURCE > tank bootfs - default > > But when I reboot, BTX loader tries to access tank:/boot/kernel/kernel. > > Why does the loader care about tank at all, after I "removed" the bootfs > property? > Do I have to export tank before I reboot? > How do I tell the loader to just care about muller for booting? > > Thanks for any help in advance, > > Marcus