From owner-freebsd-questions@FreeBSD.ORG Wed Oct 9 00:28:30 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5D2169C6 for ; Wed, 9 Oct 2013 00:28:30 +0000 (UTC) (envelope-from andyzammy@googlemail.com) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C41BC2D2B for ; Wed, 9 Oct 2013 00:28:29 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id w7so151059lbi.36 for ; Tue, 08 Oct 2013 17:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TrQsmq5C5kfRkx+nyt0ltPGLPoqVlA+gz+isNA8FLs0=; b=JTUZ6eJ73w9msFq5kkNMEjPRB6JbcwasS1YGeFJLyRhGRb6ta96I13bw0L7hL8vcTo 78gT/XLzA8iNxP2J2lFVLB2ftUtDXJCosMxZJ6iQbDWhn7aaYA/Z0hDsfzAyxxg+h0xp aazi93izkicl/Qk01j2VFec2txDXWgauPcVWGTB+wseq45eer8ILhjli41I5op+xoxIB ynkcfyvpJVnMx9qYIHYUlB85tnqfQKwWPem5phXCGGy7eyuABPXhInlWla9/0AI9abBy /nJsrsowZSKuD2b/c1eW5bI9RrmH/9hYofcT236Oc7U+kBtgV1K6VtOSSXHaTunvuA7K 4AVw== MIME-Version: 1.0 X-Received: by 10.152.88.74 with SMTP id be10mr3765934lab.4.1381278507623; Tue, 08 Oct 2013 17:28:27 -0700 (PDT) Received: by 10.114.79.70 with HTTP; Tue, 8 Oct 2013 17:28:27 -0700 (PDT) In-Reply-To: References: Date: Wed, 9 Oct 2013 01:28:27 +0100 Message-ID: Subject: Re: failed to create gmirror with the handbook instructions From: Andy Zammy To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2013 00:28:30 -0000 I tried creating the mirror before the install. As the drives are now mirrored, the installer picked up on the face that there are two gm0 nodes - one on each hard drive. I installed onto ada0's gm0 node. After it reboots, the bootloader stops at the manual prompt. From what I can see that's not dissapeared up the screen, it tried and failed to mount from mirror/gm0s1a with error 19. I had to mount from ada0s1a in order for the boot to get further, but as it's been installed to boot from gm0s1x, it stops after it mounts /. After having checked my partition setup many times at this point, I know for a fact there's a rather large 500MB section free at the end of my hard drives with this partition set up. Is there any reason I can't just install as normal, do a 'gmirror label gm0 ada0', and then do a 'gmirror insert gm0 ada1', before changing my fstab to use mirror/gm0? I can't see why dumping and restoring is necessary, it's just manually doing what gmirror is there for in the first place. Correct me if I'm wrong :) On 9 October 2013 00:11, Warren Block wrote: > On Tue, 8 Oct 2013, Andy Zammy wrote: > > # gpart show ada0s1 >> gpart: No such geom: ada0s1 >> >> By the way, this is after a restart of the machine. >> >> There's nothing to back up, I'm installing a fresh os, so I just install >> on one drive, plug the other in, and start following the handbook >> instructions for this method. So the only >> thing in loader.conf is geom_mirror_load="YES". >> >> I'll rephrase the question: given that the handbook originally wanted me >> to dump from ada0s1 to the mounted mirror/gm0s1 (which was ada1 at the >> time), and I cannot do this, would it be >> enough to dump from mirror/gm0s1 (which is what ada0 is now mounted as), >> to ada1s1 (even though this *should* be the other way around, it's >> equivalent as far as i can see, isn't it?)? >> > > There is not much point in dumping from the mirror to another drive. The > dump/restore is how the single drive is copied to the mirror. > > On a fresh install, use the Shell mode of the installer to set up the > mirror, then install directly to it. There are some instructions on > mountpoints in the bsdinstall man page. This will avoid the lag of waiting > for the second drive to sync. >