Re: Enabling gjournal without destroying a filesystem?

2011-08-20 Thread Conrad J. Sabatier
On Fri, 19 Aug 2011 20:48:33 +0200
Patrick Lamaiziere patf...@davenulle.org wrote:
 
 Anyway there was no other way to avoid a long fsck (until SU+Journal
 in 9.0).

Speaking of SU+J:

I do happen to be running 9.0-BETA1, and am seeing output from fsck
where it at first appears it's going to take advantage of journaling
and then dismisses it due to an out-of-date journal (which is why I
started investigating gjournal in the first place).

Am I doing something wrong here?  Can anyone recommend a fix?

-- 
Conrad J. Sabatier
conr...@cox.net
___
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: Enabling gjournal without destroying a filesystem?

2011-08-19 Thread Patrick Lamaiziere
Le Thu, 18 Aug 2011 17:43:41 -0500,
Conrad J. Sabatier conr...@cox.net a écrit :

Hello,

 I'm assuming there are definite advantages to using gjournal over
 softupdates?

If the file system is large, it avoids a very long fsck.
I use gjournal since 7.2 and never had any problem (and I always
shutdown my small soekris box by removing the power plug...)

Regards.
___
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: Enabling gjournal without destroying a filesystem?

2011-08-19 Thread Alejandro Imass
On Fri, Aug 19, 2011 at 1:30 PM, Patrick Lamaiziere
patf...@davenulle.org wrote:
 Le Thu, 18 Aug 2011 17:43:41 -0500,
 Conrad J. Sabatier conr...@cox.net a écrit :

 Hello,

 I'm assuming there are definite advantages to using gjournal over
 softupdates?


http://www.usenix.org/event/usenix2000/general/seltzer.html

 If the file system is large, it avoids a very long fsck.
 I use gjournal since 7.2 and never had any problem (and I always
 shutdown my small soekris box by removing the power plug...)

 Regards.
 ___
 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

___
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: Enabling gjournal without destroying a filesystem?

2011-08-19 Thread Patrick Lamaiziere
Le Fri, 19 Aug 2011 14:18:26 -0400,
Alejandro Imass a...@p2ee.org a écrit :

hello,

  I'm assuming there are definite advantages to using gjournal over
  softupdates?
 
 
 http://www.usenix.org/event/usenix2000/general/seltzer.html

gjournal can improve the performances in some cases (small files) :
http://osdir.com/ml/freebsd-geom/2006-06/msg00013.html

Anyway there was no other way to avoid a long fsck (until SU+Journal
in 9.0).

Regards.
___
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


Enabling gjournal without destroying a filesystem?

2011-08-18 Thread Conrad J. Sabatier
Is there any way to enable gjournal on an already existing filesystem
without destroying it?

I'm assuming there are definite advantages to using gjournal over
softupdates?

-- 
Conrad J. Sabatier
conr...@cox.net
___
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: Enabling gjournal without destroying a filesystem?

2011-08-18 Thread Adam Vande More
On Thu, Aug 18, 2011 at 5:43 PM, Conrad J. Sabatier conr...@cox.net wrote:

 Is there any way to enable gjournal on an already existing filesystem
 without destroying it?


You can't really(it can be done but requires exception circumstance).  If
you didn't take these steps during initial install you're best off starting
from scratch.  These is a guide on how to use sysinstall to create a system
gjournaled from the start:

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/gjournal-desktop/



 I'm assuming there are definite advantages to using gjournal over
 softupdates?


There are some positives and negatives to it.  It's importance is decreasing
in FreeBSD 9 as SU+J will be possible.

-- 
Adam Vande More
___
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: Enabling gjournal without destroying a filesystem?

2011-08-18 Thread perryh
Conrad J. Sabatier conr...@cox.net wrote:

 Is there any way to enable gjournal on an already existing
 filesystem without destroying it?

Yes, provided the existing filesystem is not using the last block
of its provider (partition), but you'll have to put the journal on
a separate provider from the data.  See the explanation of the -s
switch in gjournal(8) to determine the necessary size of the journal
provider, but don't specify -s in the gjournal label command
because the size of the journal is implicitly set by the the size
of its provider when separate from the data provider.  (-s is used
when a single provider is used for both journal and data.)  Also
read the explanation of the -f switch, but don't actually specify
-f unless you are sure you know what you're doing :)

Something like this [untested]:

  # umount [existing filesystem]
  # gjournal label [existing filesystem] [journal provider]
  # tunefs -J enable -n disable [existing filesystem].journal
  # mount -o async [existing filesystem].journal [mountpoint]

and edit /etc/fstab accordingly.
___
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