From owner-freebsd-questions@FreeBSD.ORG Tue Oct 8 18:49:34 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 6C172B51 for ; Tue, 8 Oct 2013 18:49:34 +0000 (UTC) (envelope-from andyzammy@googlemail.com) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3D4FE27EC for ; Tue, 8 Oct 2013 18:49:34 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id x13so20423516ief.31 for ; Tue, 08 Oct 2013 11:49:33 -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=pJ5XvfVPGgYwg9RtEsEpUFUY5fedufuYv8GjYbfs7WU=; b=B8nDI4ipkWiBXF9A+uFCJvRUrHO2tnXbGaVWrhEB3pvpN2rS7WTyNBKyB5AiooW2h2 Crp5uT3PyPOIA0Hze+7CK8KTohE2Ee8aGDPT9QK7che5KcdT3XTpuABjUmT69N7ig4R4 MMG9VkfnN+Rm8UwbMf+Lq0pj0894+Ugb+lm0OPF4OhH+bRbvxGTHAG0FlLRZBvL0aht7 WDhFQ7yaBr6zy//WG8x1twHr4sO8Yn7QL3ABIZAyKjzbkZi0UeNU3MFeU2VJSevN4LX7 25XwMkCcmSLrNJezG9qEC9i9TtSrJOH2PDD3h+A/ZSWivjYrawvXZklrcMhUw0je5Oiz aEeA== MIME-Version: 1.0 X-Received: by 10.50.126.74 with SMTP id mw10mr22808238igb.24.1381258173626; Tue, 08 Oct 2013 11:49:33 -0700 (PDT) Received: by 10.50.20.232 with HTTP; Tue, 8 Oct 2013 11:49:33 -0700 (PDT) In-Reply-To: References: Date: Tue, 8 Oct 2013 19:49:33 +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 18:49:34 -0000 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'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? On 8 October 2013 01:31, Warren Block wrote: > On Tue, 8 Oct 2013, Andy Zammy wrote: > > Hi, >> >> I used the second section of the handbook (20.4) to create a gmirror. In >> my >> particular setup I had a 1GB /, 6GB swap, 1GB /tmp and the rest of the 1TB >> drive was left for /usr >> >> I had to deviate from the handbook when it came to running the dump + >> restore commands, as the dump failed due to an issue with the journalling. >> To get around this problem, I dropped into single user mode, so I could >> remount root as read-only. The dump commands then worked. It specified in >> the handbook to restart the machine, and boot from ada1. >> >> It was at this point that I noticed something wasn't quite right. There >> was >> a spew of 'not found/no such file or directory' messages. These were all >> trying to reference libs and binaries that live in /usr. >> >> I boot into single user mode, and upon checking the other partitions, I >> notice that /tmp and /usr are empty, apart from a .snap file, and the >> restoresymtable file. >> >> Please could someone help me troubleshoot this problem? Let me know if you >> need any more info, and I'll post it up asap. >> > > dump does not work reliably on filesystems with SUJ enabled. Turn off SUJ > on the filesystems to be dumped by booting in single-user mode and running > tunefs -j disable /dev/ada0whatever > > Do each filesystem, then use dump. >