Disabling geom_journal

2011-12-13 Thread Vincent Hoffman
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?

Thanks,
Vince

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling geom_journal

2011-12-13 Thread Nikos Vassiliadis

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Disabling geom_journal

2011-12-13 Thread Vincent Hoffman
On 13/12/2011 19:34, Nikos Vassiliadis wrote:
 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.
 snip
 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
Thanks Nikos, I assumed it was a boot time only option for some reason.
That worked a treat.

Vince
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org