From owner-freebsd-questions@FreeBSD.ORG Tue Oct 8 22:31:13 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 B826F113 for ; Tue, 8 Oct 2013 22:31:13 +0000 (UTC) (envelope-from andyzammy@googlemail.com) Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8685B2743 for ; Tue, 8 Oct 2013 22:31:13 +0000 (UTC) Received: by mail-ie0-f178.google.com with SMTP id to1so21061671ieb.37 for ; Tue, 08 Oct 2013 15:31:12 -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=aXJWQDU5JcbI+IA4mNoraDKS7ZPciMfwkT2Ae0TSdH8=; b=Nhdf0IZXliwO+riJoz7XzVZHvzOTj+DxwzRwTpMaQjD2Q/duebsp5vpyApKldh2lZl PYzMOciHXS88RYaU6eYFka53l8feG462juzTLkx+ho4yXPP2QeoPV14f5+Cj+gTqCPbT OLDa0sWU+1Y/Yt2UMyV8Gl861EZOu93gFEasfomjA8kw+dlbVcaInbfPR0SX39m25hsU FT/qVZUZLEhL/zti9okI3jp5NljqlMP+uGk7aYff2mmDH3a/K4FgxxV7VSP8e/ibXfCA vfjRC/VSDEfIR/5zelgHRuj+fkUU5KaHiETfMWpeDZluDGe8pX8zK7fObmp/wgjigSyb R/Qg== MIME-Version: 1.0 X-Received: by 10.50.6.71 with SMTP id y7mr22880394igy.8.1381271472507; Tue, 08 Oct 2013 15:31:12 -0700 (PDT) Received: by 10.50.20.232 with HTTP; Tue, 8 Oct 2013 15:31:12 -0700 (PDT) In-Reply-To: References: Date: Tue, 8 Oct 2013 23:31:12 +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: Tue, 08 Oct 2013 22:31:13 -0000 # 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?)? On 8 October 2013 22:59, Warren Block wrote: > On Tue, 8 Oct 2013, Andy Zammy wrote: > > This is actually trickier than it first looked. First I got into single >> user mode by supplying 'shutdown now', but the tunefs commands all failed >> with the following: >> #tunefs -j disable /dev/ada0s1a >> Clearing journal flags from inode 4 >> tunefs: Failed to write journal inode: Operation not permitted >> tunefs: soft updates journalling cleared but soft updates still set. >> tunefs: remove .sujournal to reclaim space >> tunefs: /dev/ada0s1a: failed to write superblock >> >> I tried the dump command on the off-chance, and it failed with the >> original errors. Is there anything you can recommend? >> >> I then noticed you specified to boot into single user more, so I >> restarted the machine, with only ada0 attached. Because the handbook wants >> me to use the mirror/gm0sX devices, I swapped >> my fstab file back to the original. The boot loader now only seems to >> recognise the mirror/gm0 nodes, the original ada0sX are gone (though ada0 >> still shows up). >> > > I don't know what would do that. The device nodes on the original drive > should be untouched until it is added back to the mirror. What does > gpart show ada0s1 > show? Did you make a backup of the original drive first? Is there an > entry for vfs.root.mountfrom in /boot/loader.conf? > > I'm not sure if it's acceptable to do the dump by booting the 1st hard >> drive using the mirror/gm0, and then dump to the 2nd hard drive by mounting >> what will be ada1sX. Is this okay to do? >> > > Sorry, I don't quite understand the question. The mirror will not be > usable until a good copy of the original drive is made to it. >