From owner-freebsd-questions@FreeBSD.ORG Thu May 23 05:53:49 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9CEE8CEE for ; Thu, 23 May 2013 05:53:49 +0000 (UTC) (envelope-from sam.gh1986@gmail.com) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) by mx1.freebsd.org (Postfix) with ESMTP id 20A84356 for ; Thu, 23 May 2013 05:53:48 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id fs12so2767652lab.7 for ; Wed, 22 May 2013 22:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=spl38qe38Uc+gpGEllXU2yIuOc0tpXTTIdVQzZcBhLE=; b=MSUd6Z9upoMu3+y7Bnk0eoU+XoPZ+ZPyD0cO0IGtWtOgitKT8YyzZLDGWS26ca5w/4 ieMZTB8UxeW+6xDwgTFgVKuGLd+zPAzPumfaFeG5QNgCntqbIh2NPfnaf/RHwIAn9GiL x1AMNEgkQDB3HP46zpWZ0G3MCq96Ks0qUiDapRfaqWVqxHDigQxMd3H78N6+tNjD4IK8 17ay4r65zOz0Pxx1g2MyLjJ+uF5URcfQ2k5ERm3FaAXT53/m9fkQGTSRxa+iky4NEbF5 a/X2S7v7mdcU3oHdpodTqh0sh9QJWTW7e1nc0KNV+K4KxVozd520LL+vqSKAZuxmRCg/ Shkg== MIME-Version: 1.0 X-Received: by 10.112.63.7 with SMTP id c7mr5567048lbs.5.1369288427992; Wed, 22 May 2013 22:53:47 -0700 (PDT) Received: by 10.112.2.70 with HTTP; Wed, 22 May 2013 22:53:47 -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: Thu, 23 May 2013 10:23:47 +0430 Message-ID: Subject: Re: setup journaling for root partition From: s m To: Michael Sierchio 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:53:49 -0000 thanks Michael for your quick reply:) yes, i can boot from usb freebsd flash and use fixit mode. i have root, var, tmp, usr and swap on my system. i create an extra swap partition to use it as journal provider for root partition. in fixit mode, first i run two below command in order to abel load gjournal: ln -s /dist/lib /lib ls -s /dist/boot/kernel /boot/modules then "gjournal load" and after that: "gjournal label -f ad3s1a ad3s1g" (ad3s1a is root partition and ad3s1g is swap partition for journal provider) but this error is shown: "gjournal cannot clear metadata on ad3s1a: operation not permitted" what is wrong here??? i really don't know how to fix it:(((( On Thu, May 23, 2013 at 10:12 AM, Michael Sierchio wrote: > > 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 >