Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Sep 21, 2013 4:02 am 
Offline
Junior Member
User avatar

Joined: Sat Jan 12, 2013 8:04 am
Posts: 36
Website: http://www.paulthomson.me
Location: Global
Hello,

I'm currently experiencing high load on my linode caused by the kjournald process. I want to upgrade to the ext4 filesystem so that I can stop journalling.

I'm quite new to linux and not overly familiar with the mounting options.

I'm running Ubuntu 12.04.3 64-bit.

Is anyone able to confirm the following is the correct process? :

Code:
# sudo nano /etc/fstab

- change EXT3 to EXT4
- reboot the system
Code:
# tune2fs -o journal_data_writeback /dev/xvda
# sudo tune2fs -O extents,uninit_bg,dir_index /dev/xvda
# tune2fs -O ^has_journal /dev/xvda
# e2fsck -fDC0 /dev/xvda

- reboot the system
- configure options in /etc/fstab

Any help would be greatly appreciated.

Regards,
Paul

_________________
My Website: http://www.paulthomson.me


Top
   
PostPosted: Sat Sep 21, 2013 4:55 am 
Offline
Senior Member

Joined: Wed Jun 08, 2011 11:25 pm
Posts: 51
If your only goal is to disable journaling, why not just do that part? Not certain this requires converting to ext4.

If you do decide to convert to ext4 anyway, you should be aware that the Linode Manager may not be able to resize disks that were originally created as ext3 and then converted to ext4. You may want to take this into consideration. It might be a better idea to create a raw disk, create an ext4 filesystem on the raw disk, tune2fs it, then move your stuff from the old ext3 disk to the new ext4 disk. At least you'll be able to grow such a disk later (you still wouldn't be able to shrink it though).


Top
   
PostPosted: Sat Sep 21, 2013 5:18 am 
Offline
Junior Member
User avatar

Joined: Sat Jan 12, 2013 8:04 am
Posts: 36
Website: http://www.paulthomson.me
Location: Global
Thanks for the reply. From the research I've done there doesn't seem to be a way to disable journaling on ext3 (unless you know of one?).

The response from Linode staff:
Quote:
Our Backup Service can mount your Ext4 formatted disk image however, restores will be Ext3 due to limitations in that process. Resizing disk images may be handled properly via the Linode Manager but to be safe, I would suggest using the raw disk image type which means you will need to manually resize the filesystem if you do resize the disk image.


Thanks for your recommendation on creating a ext4 filesystem on the raw disk and tune2fs-ing it. I've created a raw disk image from the linode dashboard, what would be the easiest way to copy the data across to it?

Thanks,
Paul

_________________
My Website: http://www.paulthomson.me


Top
   
PostPosted: Sat Sep 21, 2013 6:28 am 
Offline
Junior Member
User avatar

Joined: Sat Jan 12, 2013 8:04 am
Posts: 36
Website: http://www.paulthomson.me
Location: Global
I can confirm that the steps I posted earlier work perfectly and successfully change the filesystem to ext3 to ext4. I've disabled the journalling and now don't experience any IO spikes - figured this would be helpful for some people out there.

Thanks for your help,
Paul

_________________
My Website: http://www.paulthomson.me


Top
   
PostPosted: Sat Sep 21, 2013 11:35 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 567
Website: http://www.mattnordhoff.com/
You... do know what journalling is, right? Why do you have a grudge against your data?

livefree wrote:
From the research I've done there doesn't seem to be a way to disable journaling on ext3 (unless you know of one?).

As ext3 is simply ext2 with a journal, I believe you can just mount the fs as ext2. I don't think "tune2fs -O ^has_journal" is even necessary.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
PostPosted: Mon Sep 23, 2013 11:14 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Running without journaling is a Bad Idea(tm). It makes data loss enormously more likely. If journaling is causing that much load, to me it would indicate some other problem...


Top
   
PostPosted: Thu Oct 10, 2013 5:09 pm 
Offline
Junior Member
User avatar

Joined: Sat Jan 12, 2013 8:04 am
Posts: 36
Website: http://www.paulthomson.me
Location: Global
Turns out it was a cache folder who's contents was being replaced far too often causing the journalling system to go nuts trying to keep up. My bad. Thanks for the input though.

_________________
My Website: http://www.paulthomson.me


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group