From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 13:14:02 2007 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 959C816A41A for ; Wed, 12 Sep 2007 13:14:02 +0000 (UTC) (envelope-from nino80@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by mx1.freebsd.org (Postfix) with ESMTP id 6297613C442 for ; Wed, 12 Sep 2007 13:14:02 +0000 (UTC) (envelope-from nino80@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so160254rvb for ; Wed, 12 Sep 2007 06:14:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=y5WNtS7CYTJTwCFd00LUx3C/c7nDWtkUQlUSs268RGY=; b=h1xOkgCRVroC+Rn567Ms7K/AQ3x3C6M98HYzUMXq/d1iTz0c3GrW5lN5w0qbuuKBCQg4eZ+/8pipePz6i3mpZEfst6z7AmJUIU5o6fTPrpcbQWDB3bOS3HHn94Goff+WpUcSNlFgd/yQ0OUDcTbJFdczRYdfA49vqVxLdAowKS0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=jj270GRnVaXo/MjAkNzBL79XmCQp8iZSbh9LEE4leM+gppXU02wUODHGuvAxF2sp4yoOsXOk5kyCY8RGfffQQ16a3CNqW4pRKWrpEnf0mYyrkNqqchwTWtv71MiSR7rl6lwa4cLF4IA19KFEcI/wnna6z2dnmibWdUlmahekbpg= Received: by 10.141.42.10 with SMTP id u10mr331477rvj.1189602839904; Wed, 12 Sep 2007 06:13:59 -0700 (PDT) Received: by 10.141.77.8 with HTTP; Wed, 12 Sep 2007 06:13:59 -0700 (PDT) Message-ID: <92bcbda50709120613j775538f1la5da080b52c8f79c@mail.gmail.com> Date: Wed, 12 Sep 2007 15:13:59 +0200 From: "n j" To: "User Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Gmirror on a partition of a slice 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: Wed, 12 Sep 2007 13:14:02 -0000 Hello, this question is somewhat related to my earlier question regarding gstripe during install where the common conclusion was to gmirror the root partition and gstripe the rest as you can't boot from a gstripe'd volume (which I later confirmed in http://misc.allbsd.de//Flyer/FreeBSD/PDF/en/flyer-en-fbsd-geom.pdf). Using http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html and http://people.freebsd.org/~rse/mirror/ as pointers, as well as handbook and man pages, I tried to set up gmirror on a partition of a slice the following way (using identical 1Gb disks da0 & da1), but couldn't get the OS to boot from gmirror'ed partition. I'm probably doing something wrong here, but I've googled my a** off and haven't found any hints for gmirror'ing a partition, though the documentation states that either disks, slices or partitions should work just fine as gmirror consumers. The man and handbook pages cover examples using entire disks and when I use entire disk for gmirror, the setup works fine; when trying to gmirror a partition, it just won't boot. If anyone succeeded in gmirror'ing a partition, please tell me how. In short: 1) install FreeBSD on 1st disk /dev/da0s1a 2) create slice on 2nd disk fdisk -BI /dev/da1 3) bsdlabel -w -B /dev/da1s1 4) edit BSD label to create a partition for gmirror a: 1000000 16 4.2BSD 2048 16384 8 c: 2097120 0 unused 0 0 # "raw" part 5) gmirror label -h -n -b round-robin gm0 /dev/da1s1a to create mirror 6) fdisk -BI /dev/mirror/gm0 to create a slice in gm0 7) bsdlabel -w -B /dev/mirror/gm0s1 to create root partition a: 995951 16 4.2BSD 2048 16384 8 c: 995967 0 unused 0 0 # "raw" part 8) newfs, mount, dump/restore to /dev/mirror/gm0s1a, modify fstab, loader.conf, create boot.config to boot off mirror 9) reboot ... and at that point I get "Not ufs" and "No /boot/loader". Thanks for any input! -- Nino