From owner-freebsd-questions@FreeBSD.ORG Sat Jun 4 20:54:40 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A32C106566B for ; Sat, 4 Jun 2011 20:54:40 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 52EE08FC21 for ; Sat, 4 Jun 2011 20:54:40 +0000 (UTC) Received: by yie12 with SMTP id 12so1731645yie.13 for ; Sat, 04 Jun 2011 13:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=pB9Y1AgMLl5l1PYu1P+r1O75nVTEjRcnrwqMZEeFgnM=; b=tX+t1ATyiZzWnN7V301SQpNwCFnGDPnPAz6bDDaeozKZTCg0m/5EUSgxvEXZ263fPm 8VR7JV6uTlbCvAgYyYK/YkF2N5S58cYeXjoYAhLXZv1lWmg91OoX5jr7d/6fMfaaJOOd dhMTjXzRWE55jjT0jM3rS09jhcxZaGsJEm9Us= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=qIIvQN00p1AQwg4S6NAgPnZLPxoccULKLgKnA0ThV4i6UsOewAo/vTvkxc5GuTVite 6BzQvdmDtfE2oRBCH9BlXrGWHBeqCPUmqCWqRxtJSm8Ngoss1fnne2111pL8i80a0V6Q gqgaaCCWJqS5qAgfuotslp5b2/QSnwsJHO3hs= MIME-Version: 1.0 Received: by 10.236.153.130 with SMTP id f2mr4290727yhk.281.1307220879399; Sat, 04 Jun 2011 13:54:39 -0700 (PDT) Received: by 10.236.155.67 with HTTP; Sat, 4 Jun 2011 13:54:39 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Jun 2011 21:54:39 +0100 Message-ID: From: krad To: Darrel Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: failure to create zfs storage 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: Sat, 04 Jun 2011 20:54:40 -0000 On 4 June 2011 11:44, Darrel wrote: > > After getting a couple of Hitachi 1T 7200 rpm drives, it seemed >>> like time for ZFS on FreeBSD82, having not had Z file system >>> subsequent to retiring whatever OpenSolaris was around. >>> >>> Basically, I followed this article: >>> >>> /doc/en_US.ISO8859-1/articles/remote-install/installation.html >>> >>> Previous to this, I had been using sysinstall. >>> >>> dd if=/dev/zero of=/dev/ad4 count=2 >>> dd if=/dev/zero of=/dev/ad6 count=2 >>> >>> fdisk -BI ad4 >>> fdisk -BI ad6 >>> >>> bsdlabel -wB /dev/ad4s1 >>> bsdlabel -wB /dev/ad6s1 >>> >>> ------------------------------------------------- >>> bsdlabel -e /dev/ad4s1 >>> >>> a: 1G 16 4.2BSD 1024 8192 0 >>> b: 5G * swap >>> c: blah,blah >>> d: 20G * 4.2BSD 2048 16384 0 >>> e: 20G * 4.2BSD 2048 16384 0 >>> f: * * unused 0 0 >>> ------------------------------------------------- >>> >>> bsdlabel /dev/ad4s1 > /tmp/bsdlabel.txt && bsdlabel -R \ >>> /dev/ad6s1 /tmp/bsdlabel.txt >>> >>> Now it was way past midnight, I cannot recall but might have run >>> this: >>> >>> gmirror label -nb round-robin gm0 ad4s1 ad6s1 >>> >>> I ran these: >>> >>> gmirror label root ad4s1a ad6s1a >>> gmirror label var ad4s1d ad6s1d >>> gmirror label usr ad4s1e ad6s1e >>> gmirror label -F swap ad4s1b ad6s1b >>> gmirror load >>> >>> newfs -b 8192 -f 1024 /dev/mirror/root >>> newfs /dev/mirror/var >>> newfs /dev/mirror/usr >>> >>> mount /dev/mirror/root /mnt >>> mkdir /mnt/var /mnt/usr >>> mount /dev/mirror/var /mnt/var >>> mount /dev/mirror/usr /mnt/usr >>> >>> So I got the files with 'ftp passive' and followed the article all >>> to the 'reboot' command. Seemed okay. >>> >>> Now at the next page of the article: >>> >>> /doc/en_US.ISO8859-1/articles/remote-install/zfs.html >>> >>> Having read several articles and the zpool manual page, I still >>> have failed to create any kind of ZFS storage pool. >>> >>> >> >> are you trying to do zfs root or just have a freebsd system with a zpool? >> >> You could take the real easy way of getting zfsroot, and install freebsd >> via >> pc-bsd install cd and that would do all the hard work >> >> > Having mirrored SATA disks with a simple zpool on FreeBSD was the > original goal. Thank you for the idea. I can not think of any > reason not to have zfs root. > > What is a drag is that I have already built a new kernel and just > this morning already ran portsnap fetch and extract. > > Perhaps this might also be an opportunity to learn gpart and geom > as well, limiting usage of fdisk, bsdlabel, and sysinstall moving > forward. > > Darrel > well you have 2x disks dont you. Break the mirrors and then you have a free drive. Setup the pool how you want on this then rsync all your os build over onto it. Make any zfs root tweaks you want then boot onto the drive. If all is good then copy across the partition table from the zfs drive to the new one (gpart backup/restore) and attach the relevent slice/partition to pool. Finally put the boot blocks onto the drive, job done no work lost