Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2013 10:23:47 +0430
From:      s m <sam.gh1986@gmail.com>
To:        Michael Sierchio <kudzu@tenebras.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: setup journaling for root partition
Message-ID:  <CAA_1SgEOeyBp=W1=e%2B2SeBn5SEdF4Bb76t9K9jgykGkUvK1oPw@mail.gmail.com>
In-Reply-To: <CAHu1Y73H7W386Yv0CRwPjtA=Uh_KBy-Dmk7%2BGDM2nQOYqBZbsQ@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> <CAHu1Y73H7W386Yv0CRwPjtA=Uh_KBy-Dmk7%2BGDM2nQOYqBZbsQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <kudzu@tenebras.com>wrote:

>
> 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?CAA_1SgEOeyBp=W1=e%2B2SeBn5SEdF4Bb76t9K9jgykGkUvK1oPw>