From owner-freebsd-questions@FreeBSD.ORG Tue Jul 27 16:41:52 2010 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 64AC7106566C for ; Tue, 27 Jul 2010 16:41:52 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1E8988FC08 for ; Tue, 27 Jul 2010 16:41:51 +0000 (UTC) Received: by yxe42 with SMTP id 42so686962yxe.13 for ; Tue, 27 Jul 2010 09:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=CsEGQukboDeVPxvk9/+tDVMaHouKyH/xmrVrmDwUTTY=; b=nLukjrUo1FyiXFJmNqv9eVtOh3M7X764l0v1u1LEUcbjG0+MHe94SWnW3hIB3pTNlR pV8D3ouiZHDVAWwYVdXnJQIRda6KVKfQMty1UKqJCTpZssSh1P3rUP+XBiS3QCxtzvwN dMR9lDTz1mB6O15UronQrHxfjLPl+98Vwxa7w= 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=x88ku0FFyZp/ggIyFh+irX77iNO3Yl5J2ArNJ6kDwGTbdamJPgln5tI+qqQm7oIbGE u6I7DJDayBvb6P+cd+X/ZJ5ru2w90jB112Oh9y4HYJexw2gBGTzpPxj0nRkcV/umnQNH ZcMeVcaSFAw/ntuMqTfPAikKwKgYYVO9Q4Df4= MIME-Version: 1.0 Received: by 10.150.48.32 with SMTP id v32mr8073140ybv.115.1280248911109; Tue, 27 Jul 2010 09:41:51 -0700 (PDT) Received: by 10.151.107.12 with HTTP; Tue, 27 Jul 2010 09:41:51 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Jul 2010 11:41:51 -0500 Message-ID: From: Adam Vande More To: Joey Mingrone Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: GEOM: mirroring and journaling 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: Tue, 27 Jul 2010 16:41:52 -0000 On Tue, Jul 27, 2010 at 11:10 AM, Joey Mingrone wrote: > Hello, > > I'm attempting to set up a storage server with mirrored and journaled > filesystems. Initially I did the following: > > sysctl kern.geom.debugflags=17 > dd if=/dev/zero of=/dev/ad8 bs=1k count=1 > dd if=/dev/zero of=/dev/ad10 bs=1k count=1 > gmirror label -vb round-robin gm0 /dev/ad8 > gmirror load > gjournal label /dev/mirror/gm0 > gjournal load > newfs -O 2 -J /dev/mirror/gm0.journal > mount /dev/mirror/gm0.journal /mnt/mirror2 > gmirror insert gm0 /dev/ad10 > > ,but I read in the archives there are potential issues with the > labelling. Does anyone have any suggestions (or references to > documentation) describing how this could be done? > > Are the GEOM parts for doing this sufficiently mature to consider this > safe? This did seem to be working, but when I did a dump I got kernel > panics like others who have posted recently. > Sure it's safe, but you should hardcode the metadata, see man gjournal(8) You should also read the section on the size of the journal, I'd guess yours is too small and the source of your panics. -- Adam Vande More