From owner-freebsd-current@FreeBSD.ORG Thu Apr 12 18:30:33 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD04516A407 for ; Thu, 12 Apr 2007 18:30:33 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.230]) by mx1.freebsd.org (Postfix) with ESMTP id 5243A13C44C for ; Thu, 12 Apr 2007 18:30:33 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so587975wra for ; Thu, 12 Apr 2007 11:30:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uq8AAJMp9yIxulSn5LyTDq5WLiP9DDBRK/iErQ8lmFtU1I1HeekI/qrV9WlOMHrTgy/OPcbR6QJvN3qnlub9MQzYIEbtB3jtjlqvEG1YbXWLlWZvGVKK1Dv+AX35EJctlleeuXyr8RxMtY/jI2v/tZwh/Wc5LDjy4ep+WUtrJDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KqHdSjejCzY9wQCu3mkWWbFo8bHXDmE08vygQJTJbDyzZoLxo/jQ7sLqg3y1Yg300kpabxEn+2Te3JnXfqbwUuMFdxelOs7l0yH43hd81ufLw4KNKlBog55Ayxn9nNGuFP4cP1a20ALoFZK/SBNBIsXVQw2CYXAsKbvJU7fd5h4= Received: by 10.78.151.3 with SMTP id y3mr490830hud.1176402631742; Thu, 12 Apr 2007 11:30:31 -0700 (PDT) Received: by 10.78.188.9 with HTTP; Thu, 12 Apr 2007 11:30:31 -0700 (PDT) Message-ID: <70e8236f0704121130u1262ccb6r571e18ad1a491dd3@mail.gmail.com> Date: Thu, 12 Apr 2007 19:30:31 +0100 From: "Joao Barros" To: "Pawel Jakub Dawidek" In-Reply-To: <70e8236f0704100852y214dad89g1291bb525f4efc74@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20070409011723.GB74547@garage.freebsd.pl> <20070409094319.GB76673@garage.freebsd.pl> <70e8236f0704090808y5d305175wdc3cee5be1a26a9@mail.gmail.com> <20070409153338.GH76673@garage.freebsd.pl> <70e8236f0704090931v3d62d067kfa25993da10fb331@mail.gmail.com> <86bqhxcifq.fsf@dwp.des.no> <70e8236f0704100852y214dad89g1291bb525f4efc74@mail.gmail.com> Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org Subject: Re: ZFS: amd64, devd, root file system. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2007 18:30:33 -0000 I have a dilemma... This is my system as is: # atacontrol list ATA channel 0: Master: ad0 ATA/ATAPI revision 6 Slave: no device present ATA channel 1: Master: ad2 Serial ATA II Slave: ad3 Serial ATA II ATA channel 2: Master: ad4 Serial ATA II Slave: no device present ATA channel 3: Master: ad6 Serial ATA II Slave: no device present FreeBSD CURRENT is installed on ad0 and I fdisk'd label'd and created a /boot on ad2 (300MB ad2s1a). All is fine, boots the kernel. I created the zpool like this: # zpool create r4x320 raidz ad2s1d ad3s1d ad4 ad6 Then copied everything to the new zfs fs that will be the new root fs The aim is to disconnect the ATA ad0 thus rendering the SATA ad2 to ad0, something like this: ATA channel 0: Master: ad0 Serial ATA II Slave: ad1 Serial ATA II ATA channel 1: Master: ad2 Serial ATA II Slave: no device present ATA channel 2: Master: ad4 Serial ATA II Slave: no device present The problem is that the info in zpool.cache is diferent from the new disk order and zfs doesn't pick the volume thus no root fs. I jumped on my "let's go for anything" suit and even tried to edit zpool.cache by hand with the new disk order, sadly with no luck. If I keep the ATA ad0 attached and boot from SATA ad2, zfs picks up the zpool and FreeBSD boots, which proves it works :D Now, my real question is: without having to boot from a device that doesn't change the disk configuration is there a way to force zfs to import zpools during boot in the way that zpool import does? On 4/10/07, Joao Barros wrote: > I managed to sell the 200GB boot disk so now I'm going for a 4x320GB > raid-z with a gmirror partition for boot. > If everything goes well I'll make up a recipe for this setup and share :) > > PS: DES, without checking any data, I'd say the minimum wage in Norway > is 3x the Portuguese one ;) > > On 4/9/07, Dag-Erling Sm=F8rgrav wrote: > > "Joao Barros" writes: > > > Btw, I hold you personally responsible for my acquisition of two extr= a > > > 320GB drives ;) > > > > Pffft. I have 3 TB under my desk right now, half of it ZFS :) > > > > DES > > -- > > Dag-Erling Sm=F8rgrav - des@des.no > > > > > -- > Joao Barros > --=20 Joao Barros