Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Journaling in OS X...yea or nay

Journaling in OS X...yea or nay
Thread Tools
Junior Member
Join Date: Apr 2002
Location: Indianapolis, IN
Status: Offline
Reply With Quote
Jan 22, 2003, 11:51 PM
 
Journaling has been available in OS X for a few months now. I was wondering if a general consensus has formed as to whether or not it is a good idea to enable journaling on an OS X client machine? Is there an obvious performance penalty? On the other hand, is there an increase in stability or data integrity?
     
Dedicated MacNNer
Join Date: Oct 2000
Location: WI, USA
Status: Offline
Reply With Quote
Jan 22, 2003, 11:59 PM
 
I 've been running it since introduction on 3 machines....no problems. OS X seems more stable to me since I have been using journaling. As far as performance is concerned, I haven't noticed a significant decrease. For me, stability was more impt.

Y
     
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
Jan 23, 2003, 12:24 AM
 
There's no reason not to use it, unless you're worried about a few K of disk space... it won't speed things up, it won't slow things down (noticeably), it won't make your system more stable, it won't cure cancer, but hey. It sounds cool.

You'll only really notice it in the event of a HD problem (soft prob, not hard). I mean by that... well, you won't really notice it, because if it does it's job, you'll not lose data
     
Professional Poster
Join Date: Jul 2002
Location: Hanging on the wall at Jabba's Palace
Status: Offline
Reply With Quote
Jan 23, 2003, 12:35 AM
 
Originally posted by Cipher13:
There's no reason not to use it, unless you're worried about a few K of disk space... it won't speed things up, it won't slow things down (noticeably),
It actually does slow things down on a laptop.

"Laugh it up, fuzz ball!"
     
Mac Elite
Join Date: Sep 2001
Location: Chile
Status: Offline
Reply With Quote
Jan 23, 2003, 01:03 AM
 
use it since introduction ... no problems here
:: frankenstein / lcd-less TiBook / 1GHz / radeon 9000 64MB / 1GB RAM / w/ext. 250GB fw drive / noname usb bluetooth dongle / d-link usb 2.0 pcmcia card / X.5.8
:: unibody macbook pro / 2.4 Ghz C2D / 6GB RAM / dell 2407wfp - X.6.3
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Jan 23, 2003, 02:33 AM
 
Originally posted by Socially Awkward Solo:
It actually does slow things down on a laptop.
One crash and all those lost performance is ?regained' by avoiding serious problems. (E. g. a crash with 10.1.5 cost me a license of DiskWarrior (that couldn't recover the important files that I was hoping it would recover) and about three days of work ...)

I'd definitely suggest that you'd use it.
I don't suffer from insanity, I enjoy every minute of it.
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jan 23, 2003, 03:53 AM
 
I use it on my tower (G4/400), but not on my laptop (iBook 800) - with a slow laptop harddrive, the performance loss is just too drastic.
[vash:~] banana% killall killall
Terminated
     
as2
Mac Elite
Join Date: Oct 2000
Location: Northants, UK
Status: Offline
Reply With Quote
Jan 23, 2003, 05:41 AM
 
how do I switch it on?

Adam
[img=http://img192.imageshack.us/img192/1300/desktj.jpg]
     
-Q-
Moderator
Join Date: Jan 2001
Location: Atlanta, GA
Status: Offline
Reply With Quote
Jan 23, 2003, 08:49 AM
 
Originally posted by as2:
how do I switch it on?

Adam
Here's the instructions on Mac OS X Hints. But essentially it's:

From Mac OS X Hints:
To enable journaling on OS X Client, use the Terminal command:
% sudo diskutil enableJournal /
     
Grizzled Veteran
Join Date: May 2002
Location: On the moon
Status: Offline
Reply With Quote
Jan 23, 2003, 09:01 AM
 
can journaling safely be turned off once its turned on? if so whats the command. i dont like trying something new unless i can back out of it if it sux.
24" iMac 2.13ghz C2D | 15" MBP 2ghz CD | "Soundwave" 60GB 5G iPod
     
Addicted to MacNN
Join Date: Apr 2001
Location: europe
Status: Offline
Reply With Quote
Jan 23, 2003, 09:05 AM
 
Originally posted by Hoosier_1701:
Journaling has been available in OS X for a few months now. I was wondering if a general consensus has formed as to whether or not it is a good idea to enable journaling on an OS X client machine? Is there an obvious performance penalty? On the other hand, is there an increase in stability or data integrity?
There is no reason to use it. The only advantage is that it saves you from scanning the disk for inconsistencies on startup after a system crash. Since OS X rarely crashes anyway, and then you could bear the one minute of scanning, it's not worth to take the general perfomance penalty for it.
Now on a server, where scanning large disks with lots of files takes a significant amount of time, and downtime is important, it's something else.
Nasrudin sat on a river bank when someone shouted to him from the opposite side: "Hey! how do I get across?" "You are across!" Nasrudin shouted back.
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jan 23, 2003, 09:25 AM
 
If your system has stability issues, then you definitely want to use journaling. Even if you don't, it's a good idea just to be on the safe side, since crashes are not the only cause of sudden reboots. I haven't noticed any significant slowdown on my laptop, but I've had to do some rather... interesting... things since upgrading to 10.2.3, and it's helped me out there tremendously.

Contrary to what Developer has said, there is no "general performance penalty" that you'll be taking. The only thing even said to be affected adversely is disk access, and very few people have experienced a performance penalty even in that area.

Note that checking the disk is likely to involve turning journaling off; some software (like Disk Utility) makes you do it before it'll work, and other software (like DiskWarrior) will turn it off automatically. In that case, you'll have to turn it on again when you're done.

Tu turn journaling off, just use the same command as to turn it on, but swap out "enableJournal" for "disableJournal". So...
Code:
sudo diskutil disableJournal /
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
as2
Mac Elite
Join Date: Oct 2000
Location: Northants, UK
Status: Offline
Reply With Quote
Jan 23, 2003, 11:43 AM
 
Code:
% sudo diskutil enableJournal /
Does this enable it for the boot drive only, and can it be enabled on other partitions?

Adam
[img=http://img192.imageshack.us/img192/1300/desktj.jpg]
     
Grizzled Veteran
Join Date: May 2002
Location: On the moon
Status: Offline
Reply With Quote
Jan 23, 2003, 12:00 PM
 
Originally posted by Millennium:

Tu turn journaling off, just use the same command as to turn it on, but swap out "enableJournal" for "disableJournal". So...
Code:
sudo diskutil disableJournal /
i figured thats all it was.
good question though...does this enable journaling for all? looks like it would only do it for root.
how would i do it for, lets say, an external 120GB HD?
24" iMac 2.13ghz C2D | 15" MBP 2ghz CD | "Soundwave" 60GB 5G iPod
     
Junior Member
Join Date: Nov 2002
Status: Offline
Reply With Quote
Jan 23, 2003, 12:10 PM
 
For external, or internal non-root partitions (with one or more logical partitions to a physical drive):

sudo diskutil enableJournal /Volumes/<nameOfYourPartition>

/cincinnatus
     
Grizzled Veteran
Join Date: May 2002
Location: On the moon
Status: Offline
Reply With Quote
Jan 23, 2003, 12:25 PM
 
thanks. wonder what it would be like to journal an iPod :-)
24" iMac 2.13ghz C2D | 15" MBP 2ghz CD | "Soundwave" 60GB 5G iPod
     
as2
Mac Elite
Join Date: Oct 2000
Location: Northants, UK
Status: Offline
Reply With Quote
Jan 23, 2003, 12:55 PM
 
Originally posted by dwishbone:
thanks. wonder what it would be like to journal an iPod :-)
Well I've enabled it so I'll see if it makes much difference!

Adam
[img=http://img192.imageshack.us/img192/1300/desktj.jpg]
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jan 23, 2003, 01:50 PM
 
Originally posted by as2:
Well I've enabled it so I'll see if it makes much difference!
It's doubtful that it would make any difference. I don't think the iPod actually supports journaling, so while it will still work, it won't actually do anything with the journal.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Professional Poster
Join Date: Jul 2002
Location: Hanging on the wall at Jabba's Palace
Status: Offline
Reply With Quote
Jan 23, 2003, 02:07 PM
 
Originally posted by OreoCookie:
One crash and all those lost performance is ?regained' by avoiding serious problems. (E. g. a crash with 10.1.5 cost me a license of DiskWarrior (that couldn't recover the important files that I was hoping it would recover) and about three days of work ...)

I'd definitely suggest that you'd use it.
Not quite. Just because journaling is on does not mean your drive will not become curruprt or crash less. I have had it on since day one and I still have strange crashes AND when I run FSCK -f at startup it still finds a bunch of errors.

"Laugh it up, fuzz ball!"
     
Mac Enthusiast
Join Date: Sep 2000
Location: Bayonne, NJ USA
Status: Offline
Reply With Quote
Jan 23, 2003, 03:54 PM
 
Originally posted by Socially Awkward Solo:
Not quite. Just because journaling is on does not mean your drive will not become curruprt or crash less. I have had it on since day one and I still have strange crashes AND when I run FSCK -f at startup it still finds a bunch of errors.
Yes it does not mean that one will have fewer errors; however, I have noticed far far fewer errors with it on. Most importantly, one must start out with an error free disk and run fsck every once in a while and they will stand a better chance than if you were not using journaling. Every file system out has been using journaling for a long long time and that shows its value.

Likewise, I have noticed a considerable reduction in errors since I turned it on. And it puts the amount of errors on the same level that one gets with other operating systems. There is really no reason not to have it on. I think when Apple is happy with performance it will be turned on by default. I user PhotoShop and large database’s and haven’t really noticed a penalty.
Dan
     
Mac Elite
Join Date: Dec 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Jan 23, 2003, 08:58 PM
 
Originally posted by Cincinnatus:
For external, or internal non-root partitions (with one or more logical partitions to a physical drive):

sudo diskutil enableJournal /Volumes/<nameOfYourPartition>

/cincinnatus
Hm...if I can do it on an external HD, how could I run fsck on the external drive first? Does it require single used mode boot, or could it be done from just OSX?
     
as2
Mac Elite
Join Date: Oct 2000
Location: Northants, UK
Status: Offline
Reply With Quote
Jan 23, 2003, 09:19 PM
 
Enabled journaling on my iMac 400mhz, and promptly turned it off again...

I found it made a huge difference to the performance of my machine.

I'll just have to make sure I keep my backups up to date.

Adam
[img=http://img192.imageshack.us/img192/1300/desktj.jpg]
     
Fresh-Faced Recruit
Join Date: Apr 2001
Location: Annapolis, MD
Status: Offline
Reply With Quote
Jan 23, 2003, 09:39 PM
 
Originally posted by as2:
Enabled journaling on my iMac 400mhz, and promptly turned it off again...

I found it made a huge difference to the performance of my machine.

I'll just have to make sure I keep my backups up to date.

Adam
I used journaling on my iMac 400 from the time it was introduced with no noticable change in preformance. I did have an additional 256mb of RAM on top of the stock 128, and and the factory HD on this machine was replaced with a 20gig drive after it failed. That could explain our differing experences.

With no reports of journaling damaging peoples data or drives, i would suggest giving it a try it is just as easy to turn off it you have a noticeable change in preformance.
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Jan 24, 2003, 01:14 AM
 
I haven't noticed a performance difference on any machine I've enabled it on. That includes 3 laptops.
     
Banned
Join Date: Mar 2002
Location: Currently trying to escape the Death Star
Status: Offline
Reply With Quote
Jan 24, 2003, 01:40 AM
 
Damn thing won't let me turn it off. Says I need to enable root.
     
Junior Member
Join Date: May 2002
Status: Offline
Reply With Quote
Jan 24, 2003, 01:54 AM
 
Where is the file that contains the journal?
     
Mac Elite
Join Date: May 2002
Status: Offline
Reply With Quote
Jan 24, 2003, 03:42 AM
 
It's not something you can access with a pathname - just a block of sectors set aside for the purpose of journal.
[vash:~] banana% killall killall
Terminated
     
eno
Banned
Join Date: Sep 2000
Location: Fightclub
Status: Offline
Reply With Quote
Jan 24, 2003, 07:24 AM
 
Originally posted by Developer:
There is no reason to use it.
What kind of nonsense is this?

I *sincerely* hope that you run into the poo over this. That will teach you.

People like you shouldn't have the privilege of free speech.
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Jan 24, 2003, 11:19 AM
 
Originally posted by Leia Shoots Like a Girl:
Damn thing won't let me turn it off. Says I need to enable root.
Type in

su [name of administrator]
enter password

sudo diskutil enableJournal /
enter password for admin user again

exit
exit

And you are done.
I don't suffer from insanity, I enjoy every minute of it.
     
Banned
Join Date: Mar 2002
Location: Currently trying to escape the Death Star
Status: Offline
Reply With Quote
Jan 24, 2003, 12:21 PM
 
Originally posted by OreoCookie:
Type in

su [name of administrator]
enter password

sudo diskutil enableJournal /
enter password for admin user again

exit
exit

And you are done.
Thanks, but you gotta love this:

"Journaling has been disabled on /"

Disabled is on?! Ha ha
     
Registered User
Join Date: Mar 2002
Location: Europe
Status: Offline
Reply With Quote
Jan 24, 2003, 01:38 PM
 
Thanks, but you gotta love this:

"Journaling has been disabled on /"

Disabled is on?! Ha ha


read it again
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Jan 24, 2003, 05:11 PM
 
Originally posted by eno:
What kind of nonsense is this?

I *sincerely* hope that you run into the poo over this. That will teach you.

People like you shouldn't have the privilege of free speech.
I think it's a good thing that people in these forums seldom overreact. Think what a horrible situation that would be, calling for the elimination of fundamental rights and stuff...

Journalling of the metadata, which is what we're talking about here, means that the disk check is faster. You can still lose data, because the actual contents of the files is not protected in any way. efs3, the journalling hack the Linux file system efs2, can optionally do full journalling, but that's _really_ slow and not very useful.

Journalling is a map to show where the hidden treasures are, but you can still find them anyway by digging up the entire island - if you get the metaphor.
     
Professional Poster
Join Date: Jun 2000
Status: Offline
Reply With Quote
Jan 24, 2003, 07:52 PM
 
I'd say nay. I enabled it today and was greeted by kernel panics every 5 minutes. Got it turned off and it's all good now.
     
Forum Regular
Join Date: Dec 2002
Location: canadia
Status: Offline
Reply With Quote
Jan 24, 2003, 09:15 PM
 
Originally posted by Leia Shoots Like a Girl:
Thanks, but you gotta love this:

"Journaling has been disabled on /"

Disabled is on?! Ha ha
/ means the boot disk.
= decursive =
     
rw
Mac Enthusiast
Join Date: Dec 2000
Location: Kirkland, WA, USA
Status: Offline
Reply With Quote
Jan 24, 2003, 11:33 PM
 
Originally posted by Socially Awkward Solo:
I have had it on since day one and I still have strange crashes AND when I run FSCK -f at startup it still finds a bunch of errors.
I don't know about the crashes, but according to Apple, it's expected that fsck will report errors when journaling is on: http://docs.info.apple.com/article.html?artnum=107250
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:38 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2