From owner-freebsd-questions@FreeBSD.ORG Tue May 21 11:44:16 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 BB8FADDD for ; Tue, 21 May 2013 11:44:16 +0000 (UTC) (envelope-from saeedeh.motlagh@gmail.com) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 29A3BA46 for ; Tue, 21 May 2013 11:44:15 +0000 (UTC) Received: by mail-lb0-f176.google.com with SMTP id x10so645853lbi.7 for ; Tue, 21 May 2013 04:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=H/ssb0NK4TJfBxE4Xb+WIQ2TnJPhrJcfEbHktfo7SiI=; b=gPuH8kYah8QDvlmAsDGXMXlujIRZp00LdSnYX27SKYeho2YJTUX/NSt4tSChdkJl4D MmcJcLFRLQm8DnGiI9ySj1vHKGlUpXdVNB+N/vgTaNbuxBl0h2ARe++m6DLzLZjtBQfU eiqqxoBSBvveNTyhiWaYnwe2928EP1hVA0pKpaHIZxsxcNeeLQaCmU2iTN4aJEc87BCr 7HvA/S+j/JFPgzFlFuYiRsiD0VYXAU4PGjBRVw9KsFa5X8vTAwtbO27UOAeVe6t94JWk xtMy9AxhhBa9CSp8TIwNab/NebKN2IsF8ZnATnmD7mjqMy1OsRRJEs9cfaewgiHx5OSa CEQA== X-Received: by 10.112.141.38 with SMTP id rl6mr1309033lbb.101.1369136654867; Tue, 21 May 2013 04:44:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.13.226 with HTTP; Tue, 21 May 2013 04:43:34 -0700 (PDT) In-Reply-To: <519B4F11.9030309@ulb.ac.be> References: <519B40D8.2090809@ulb.ac.be> <519B4F11.9030309@ulb.ac.be> From: saeedeh motlagh Date: Tue, 21 May 2013 16:13:34 +0430 Message-ID: Subject: Re: setup journaling for root partition To: Julien Cigar Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: s m , 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: Tue, 21 May 2013 11:44:16 -0000 thanks Julien, but i think it's not true. man page for newfs seys that journaling is done via gjournal and in freebsd handbook it says do journaling with gjournal for UFS file system. you mean i should create a partition and just enable journaling for it with -J flag? i think my problem is, my gjournal can not act correctly in fixit mode because i can load it in single user mode and every thing is ok but in fixit mode, i can not load it and all commands return errors. please help me to make a journal for my root:((( On Tue, May 21, 2013 at 3:10 PM, Julien Cigar wrote: > On 05/21/2013 12:10, s m wrote: > >> you mean that journaling is enabled by default???? i don't think so. i >> think i misunderstanding. may i ask you to explain it more clear? >> >> > gjournal is journaling through GEOM. Since Freebsd 9 soft-updates > journaling has been implemented for UFS. So if you want journaling for an > UFS FS there is no reason to use gjournal anymore. (check manpages of newfs > and/or tunefs and the "-j" and the "-J" flags) > > >> On Tue, May 21, 2013 at 2:09 PM, Julien Cigar > jcigar@ulb.ac.be>> wrote: >> >> gjournal should not be used anymore as it has been implemented in >> the file system code ... >> >> >> On 05/21/2013 11:24, s m wrote: >> >> thanks Michael >> >> this is what i've done (based on the FreeBSD handbook): creating a >> partition for journal, go to single user mode, unmount desired >> partition >> (for example /usr), load gjournal, add journal partition to >> /usr partition. >> this procedure works well for user and other partitions except >> root because >> i can not unmount it. >> >> should i set up journaling in fixit mode with gpart? how? i >> try different >> ways but none of them work for me:(( >> >> >> >> On Tue, May 21, 2013 at 10:36 AM, Michael Sierchio >> >**wrote: >> >> >> On Mon, May 20, 2013 at 10:59 PM, s m >> > wrote: >> >> hello everybody >> >> i want to setup a journal partition for my root >> partition. but i do not >> know how to do that. in FreeBSD handbook, it is done >> in single user mode, >> unmount the desired partition and assign the journal >> partition to it. i >> test this procedure and it is done for /usr partition >> but for root >> partition, it can not be unmount in single user mode. >> >> >> See the man page on gjournal >> >> To configure journaling on the UFS file system using >> gjournal, one >> should >> first create a gjournal provider using the gjournal >> utility, then run >> newfs(8) or tunefs(8) on it with the -J flag which >> instructs UFS to >> coop- >> erate with the gjournal provider below. >> >> >> >> ______________________________**_________________ >> freebsd-questions@freebsd.org >> > >> mailing list >> >> http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions >> To unsubscribe, send any mail to >> "freebsd-questions-**unsubscribe@freebsd.org >> >> >" >> >> >> >> >> -- No trees were killed in the creation of this message. >> However, many electrons were terribly inconvenienced. >> >> ______________________________**_________________ >> freebsd-questions@freebsd.org >> > >> mailing list >> >> http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions >> To unsubscribe, send any mail to >> "freebsd-questions-**unsubscribe@freebsd.org >> >> >" >> >> >> > > -- > No trees were killed in the creation of this message. > However, many electrons were terribly inconvenienced. > > ______________________________**_________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions > To unsubscribe, send any mail to "freebsd-questions-** > unsubscribe@freebsd.org " > -- *Sa.M*