From owner-freebsd-questions@FreeBSD.ORG Thu May 23 05:42:26 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B35557B3 for ; Thu, 23 May 2013 05:42:26 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52]) by mx1.freebsd.org (Postfix) with ESMTP id 7BE2C2D0 for ; Thu, 23 May 2013 05:42:26 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id h1so3767537oag.25 for ; Wed, 22 May 2013 22:42:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=INpwQ5lzrYxnxouzp9sAOJ1YhRWogLX1Xhzf7DqdmtA=; b=pnRfG4uyX+j6y5O8T/ICxIart93X5VD016OuM+2t2LPVY3+VjVeNcZM8UQeRXGbRDF H2GfB21CSE9Wq150o7fiO1X5KKLW0HIs1Yex3TW96DbdaMVNdGblhrpOO0rC1QWZ4H0A j3Yu7AnV+Afl5RWzXPpDy+hAch3HrqE/VEW3HnpInYWYo9o9CLWca/XOrBZTZdt97++p kBU6G92Q28tjTpL3fiE+a2XlFcR63jUzgqx6iYEKbVEdPdXMyO+PgYqF9X0Yop39AaoJ hpfNYFc4WthytiPqPUCVHKSIdzzS+yKdbOKnzzquae6wLTNTJ0LQM87teKVcVmw0+U9i jZoA== MIME-Version: 1.0 X-Received: by 10.60.79.231 with SMTP id m7mr7420408oex.105.1369287739755; Wed, 22 May 2013 22:42:19 -0700 (PDT) Received: by 10.60.137.130 with HTTP; Wed, 22 May 2013 22:42:19 -0700 (PDT) In-Reply-To: References: <519B40D8.2090809@ulb.ac.be> <519B4F11.9030309@ulb.ac.be> <519B87BC.1010301@qeng-ho.org> <519B9042.5050704@qeng-ho.org> Date: Wed, 22 May 2013 22:42:19 -0700 Message-ID: Subject: Re: setup journaling for root partition From: Michael Sierchio To: s m X-Gm-Message-State: ALoCoQnPGEu76Rk0fZfVu2jvnRuW0Qw9KPpktfV4FUdgcEBD+U9rvM3d4PKXx9otsHgAti7s3uin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-questions 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: Thu, 23 May 2013 05:42:26 -0000 On Wed, May 22, 2013 at 10:27 PM, s m wrote: > thanks Michael, but in all documentation about journaling, tunefs is used > as below: "tunefs -J enable ad3s1X.journal". ad3s1X.journal is created by > gjournal command: "gjournal label ad3s1a ad3s1g" that assign ad3s1g as > journal provider for ad3s1a and create ad3s1a.journal which contains ad3s1a > as data provider and ad3s1g as journal provider. > > my problem is, i can not run gjournal command for root partition in fixit > mode nor single user mode. you mean, i should just use tunefs command on > ad3s1X (root partition)? if yes, then where journal provider for root > partition is located? in root partition? > > Ah, sorry - lack of careful reading on my part. Can you boot from installation media and use the fixit mode? This still won't work if the last sector of the partition is in use by the filesystem.... You'll need a spare partition of some size to be the journal provider, as in the example. The very best approach is to create a gjournal and then newfs. How is your disk organized? One big root partition with everything on it? - M