Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2011 21:34:20 +0200
From:      Nikos Vassiliadis <nvass@gmx.com>
To:        Vincent Hoffman <vince@unsane.co.uk>
Cc:        questions@freebsd.org
Subject:   Re: Disabling geom_journal
Message-ID:  <4EE7A8BC.1080402@gmx.com>
In-Reply-To: <4EE77667.9060501@unsane.co.uk>
References:  <4EE77667.9060501@unsane.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/13/2011 5:59 PM, Vincent Hoffman wrote:
> Hi all,
>          I'm sure I have seen this come up before but a google doesnt
> help. I am trying to disable gjournal on a disk so i can move to suj as
> part of moving on to the 9.x series, I have umounted the FS but when i
> try to stop the journal it automatically starts it on the gtpid of the
> device and if i stop that it goes back to the original device name.
>
> [root@ostracod ~/doc]# gjournal list
> Geom name: gjournal 2909580316
> ID: 2909580316
> Providers:
> 1. Name: ada1p2.journal
>     Mediasize: 494739118080 (460G)
>     Sectorsize: 512
>     Mode: r0w0e0
> Consumers:
> 1. Name: ada1p2
>     Mediasize: 495812860416 (461G)
>     Sectorsize: 512
>     Stripesize: 0
>     Stripeoffset: 17408
>     Mode: r1w1e1
>     Jend: 495812859904
>     Jstart: 494739118080
>     Role: Data,Journal
>
> [root@ostracod ~/doc]# gjournal stop ada1p2.journal
> [root@ostracod ~/doc]# gjournal list
> Geom name: gjournal 2909580316
> ID: 2909580316
> Providers:
> 1. Name: gptid/9e1798be-b5f3-11de-a1eb-00012e273257.journal
>     Mediasize: 494739118080 (460G)
>     Sectorsize: 512
>     Mode: r0w0e0
> Consumers:
> 1. Name: gptid/9e1798be-b5f3-11de-a1eb-00012e273257
>     Mediasize: 495812860416 (461G)
>     Sectorsize: 512
>     Stripesize: 0
>     Stripeoffset: 17408
>     Mode: r1w1e1
>     Jend: 495812859904
>     Jstart: 494739118080
>     Role: Data,Journal
>
>
> Any idea how to stop this without setting kern.geom.label.gptid.enable=0
> in my loader.conf and rebooting?

You don't have to reboot, just set kern.geom.label.gptid.enable to zero,
gjournal stop ada1p2, gjournal clear ada1p2 and re-enable gptid labels.

HTH, Nikos



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EE7A8BC.1080402>