Re: Problems with gjournal or something else.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Artem Kuchin
Date: Wednesday, October 31, 2007 - 11:33 am

韓家標 Bill Hacker wrote:

osiris# tunefs -p
usage: tunefs [-A] [-a enable | disable] [-e maxbpg] [-f avgfilesize]
              [-J enable | disable ] [-L volname] [-l enable | disable]
              [-m minfree] [-n enable | disable] [-o space | time] [-p]
              [-s avgfpdir] special | filesystem

So either special or filesystem must be specified


note here.

The above example is related to ALRADY EXISTING filesystem.
And my point is that IT NEVER WORKS W/O LOOSING DATA!
The only was to create properly working journaled fs is to create
from scratch.

When i created partitions  (lables) using sysinstall i had to do then
cat /dev/zero > /dev/twed1s1f
in otder to erase the label.

The proper order seems to be:

1: do fdisk twed1
2: create labels (eg twed1s1f)
3: do cat /dev/zero > /dev/twed1sf into the partition which will be gjournaled
4: gjournal load
5: gjournal label -f /dev/twed1s1f
6: newfs -J /dev/twed1s1f.journal
7: tunefs -J enable -n disable  /dev/twed1s1f.journal - I think this one is NOT NEEDED AT ALL!
8: : mount -o noatime /dev/twed1s1f.journal /NEW/suit

After all these step journal fs works fine.
I wonder how i can check journal usage and if it is really journaled at all :)

--
Artem 

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Problems with gjournal or something else., Artem Kuchin, (Wed Oct 31, 11:33 am)