Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2013 22:42:19 -0700
From:      Michael Sierchio <kudzu@tenebras.com>
To:        s m <sam.gh1986@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: setup journaling for root partition
Message-ID:  <CAHu1Y73H7W386Yv0CRwPjtA=Uh_KBy-Dmk7%2BGDM2nQOYqBZbsQ@mail.gmail.com>
In-Reply-To: <CAA_1SgHwNJgD=Ubt348WpkKJA9-ek4K4P%2Bz%2BrcfU-NuCiNTQYg@mail.gmail.com>
References:  <CAA_1SgH_RxFUXDj3VyvUN1Kzb6BPkJxFi8y8kjJn9Z=ytne=yw@mail.gmail.com> <CAHu1Y73T786EBowTtneSOqviKnkz7Be6cp2HKasvkqkSfYnHfw@mail.gmail.com> <CAA_1SgEi5eA%2Bc64q-Ui_Gzt=QZ7Lk5KV=mAVP%2BTE_Mk70jERAw@mail.gmail.com> <519B40D8.2090809@ulb.ac.be> <CAA_1SgF677vp7aRsUA376Mj-cuqc2MN2QPPAsbJD_sWZ_Y1wWA@mail.gmail.com> <519B4F11.9030309@ulb.ac.be> <CAN%2BS=WCAHB7_FDHQNAkTsd5qHqRcQ0b6-iT%2BMk0Cw4fMo45pdA@mail.gmail.com> <519B87BC.1010301@qeng-ho.org> <CAHu1Y71s9faAfGpGitQLPZ_9YmR4u%2B_0rPV5d%2BuF1CgKqsOOVQ@mail.gmail.com> <519B9042.5050704@qeng-ho.org> <alpine.BSF.2.00.1305210919560.79332@wonkity.com> <CAHu1Y72UOjt05sPyw%2B=mDA4tjPh2tZM1Z0PtkM7%2BiHfnB0q%2Bsg@mail.gmail.com> <CAA_1SgHp_NXXE8M1fAXvhcVihhxkhhdA75ACk_GHC3WfHJ4G9A@mail.gmail.com> <CAHu1Y72o=BOxCJ9GJzT-kJ06WsGB%2Bi8Q=OCRoRZeDCwny1hxfw@mail.gmail.com> <CAA_1SgHwNJgD=Ubt348WpkKJA9-ek4K4P%2Bz%2BrcfU-NuCiNTQYg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 22, 2013 at 10:27 PM, s m <sam.gh1986@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y73H7W386Yv0CRwPjtA=Uh_KBy-Dmk7%2BGDM2nQOYqBZbsQ>