From owner-freebsd-questions@FreeBSD.ORG Thu May 23 06:36:52 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 C3AB537C for ; Thu, 23 May 2013 06:36:52 +0000 (UTC) (envelope-from sam.gh1986@gmail.com) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) by mx1.freebsd.org (Postfix) with ESMTP id 45C9B80E for ; Thu, 23 May 2013 06:36:52 +0000 (UTC) Received: by mail-la0-f41.google.com with SMTP id ee20so2853214lab.28 for ; Wed, 22 May 2013 23:36:51 -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=19QSjTKgjpBFh4UaS2E2BF0Lv1JHJUJIiEDa4SBHmbs=; b=Tzf8AJcXsahLozf1BL9ZdvAkGWOLjnegVCJbD/vyTW31BmPzHLtQeWvNI4+dHYQc0A r+Iyg7V9h77XQ/AhLscxjMttqEd/GafnHRaNjm+bWvJdLzGACxcg4LQDXlMWCPxokTsD rgd7rygchh00D2+kQGhmZM9B24Mkfduftp0G2HWsniRVbTvKAWFGLbZjah9BiJihycZ+ hGwP6pvvjeXNQZ6sZ6IwOZa5486TMUpwkMadjuxlGjX3zY4QMm6aKUE8Cj0QuI1Eu5ur pjCpD97+Phr/s26XRiw/W4Ui434KoQQgHnlZBuRcjdMXj8pu6QElIycbkCEXsL9SPAPO Y09g== MIME-Version: 1.0 X-Received: by 10.152.26.225 with SMTP id o1mr5670880lag.43.1369291011241; Wed, 22 May 2013 23:36:51 -0700 (PDT) Received: by 10.112.2.70 with HTTP; Wed, 22 May 2013 23:36:51 -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 11:06:51 +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 06:36:52 -0000 thanks, i do as you said, but after loading gjournal, dd says "operation not permitted". gjournal clear says "operation not permitted" too and therefore "gjournal label" is not done and say previous error (gjournal cannot clear metadata on ad3s1a: operation not permitted). and -v return no extra log. i don't know why i can not do any thing in fixit mode:( is this a true procedure? i mean maybe i should do any thing else because freebsd handbook set journaling for user partition in single user mode not in fixit mode. i test it and it works well, but for root partition i can not do the same because root partition can not be unmount in single user mode. any hints or comments are really appreciated. thanks in advance On Thu, May 23, 2013 at 10:41 AM, Michael Sierchio wrote: > > On Wed, May 22, 2013 at 10:53 PM, s m wrote: > >> 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:(((( >> > > Try using -v to get more verbose output. I am at a loss here, too. > Perhaps you can try > > gjournal load > dd if=/dev/zero of=/dev/ad3s1g bs=1m > gjournal clear -v ad3s1a > gjournal label -vf ad3s1a ad3s1g > > and see what it says, if anything. > >