Linode Forum Index Linode Forum
Linode Community Forums
 


Linode kernel "Latest 3.0 [3.0.4-linode38]" + EXT4

Click here to go to the original topic

 
       Linode Forum Index -> Feature Request/Bug Report
Author Message
kaji



Joined: 03 Jan 2012
Posts: 6

Posted: Tue Jan 03, 2012 3:42 am    Post subject: Linode kernel "Latest 3.0 [3.0.4-linode38]" + EXT4  

I searched through linode forums but could not find my issue discussed there.

I needed latest kernel available(linode has "Latest 3.0 [3.0.4-linode38]), ext4 filesystem on ubuntu LTS 10.04 for a database server. Since EXT4 support is built in the kernel and linode does not yet support it via GUI, I converted ext3 FS to ext4 myself in following steps

1. Replaced "ext3" with "ext4" for my root filesystem in /etc/fstab
2. Rebooted into single user mode after setting proper single usermode switch from Linode Slice manager.
3. Ran tune2fs -O extents,uninit_bg,dir_index /dev/xvda
4. Rebooted again into single user mode
5. Ran e2fsck -y -fDC0 /dev/xvda to patch up the filesystem.
6. Finally rebooted normally.


Now, it seemed fine after first successful reboot

cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,noatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered 0 0

-----cropped

But it seems in every reboot, i get

EXT4-fs error (device xvda): ext4_journal_start_sb:296: Detected aborted journal
EXT4-fs (xvda): Remounting filesystem read-only

Subsequent reboot fixes this by forced run of fsck.


It works fine until next reboot and it happens again.

Any known issues sir ?

Is this related to following bug :

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637234


I changed the linode profile from latest 3 to latest 2.6.X , the system behaved normally. So this is only happening to 3.X line of kernel !!!!!
Back to top  
hoopycat



Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York

Posted: Tue Jan 03, 2012 8:37 am    Post subject:  

I'd say it sounds a lot like that bug.

Any particular reason for switching to ext4? Keep in mind that the hosts run pre-ext4 kernels and might not be able to resize or mount the filesystem now.
Back to top  
kaji



Joined: 03 Jan 2012
Posts: 6

Posted: Tue Jan 03, 2012 9:50 am    Post subject:  

I already have a mongodb instance running under 32 bit /ext3 system. After cross-examining few things, came to realize 64 bit + ext4 file system can push the performance especially since MongoDB works under the paradigm of memory-mapped files. Also it is mentioned under Production deployment tips @MongoDB site.
Back to top  
dbb



Joined: 12 Aug 2008
Posts: 55

Posted: Tue Jan 03, 2012 10:46 am    Post subject: Re: Linode kernel "Latest 3.0 [3.0.4-linode38]" +  

kaji wrote:
Is this related to following bug :

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637234

Yeah, a kernel bug. It also affects ext3 on 3.1 since barriers are now enabled by default. (I suspect this is why the 3.1 kernel is marked "broken" by Linode). You can work around it by disabling barriers until an updated kernel with a fix is released. You'll have to weigh the implications yourself. I'm not sure how barriers work in a virtualized environment anyway since the device the OS is writing to isn't a physical hard drive.
Back to top  
kaji



Joined: 03 Jan 2012
Posts: 6

Posted: Tue Jan 03, 2012 10:55 am    Post subject:  

I guess i will have to wait and see to get this fixed.

Thank you very much people
Back to top  
db3l



Joined: 13 May 2009
Posts: 556

Posted: Tue Jan 03, 2012 3:11 pm    Post subject:  

kaji wrote: I guess i will have to wait and see to get this fixed.
In the meantime you could also try disabling barriers on your ext4 mounts, since from the ticket that would seem to be a workaround.

Given the underlying disk subsystem (BBU-backed RAID array), I'm not sure barriers really buy that much in a Linode VPS anyway. Once the data is handed to the I/O subsystem it really ought to (eventually) get to the physical media even if some reordering takes place.

-- David
Back to top  
isaacwhanson



Joined: 20 Jan 2012
Posts: 3

Posted: Fri Jan 20, 2012 3:26 pm    Post subject:  

I added the barrier=0 option to my fstab for my ext3 partitions, and am able to boot the "broken" 3.1 kernel just fine. Time will tell if there is any impact on fault tolerance. :)
Back to top  
dbb



Joined: 12 Aug 2008
Posts: 55

Posted: Mon Jan 23, 2012 10:10 pm    Post subject:  

3.2.1 boots just fine with barriers enabled.
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2907
Location: Galloway, NJ

Posted: Mon Jan 23, 2012 10:23 pm    Post subject:  

dbb wrote: 3.2.1 boots just fine with barriers enabled.
I disabled barriers in our kernels by default.

-Chris
Back to top  
 
       Linode Forum Index -> Feature Request/Bug Report
Page 1 of 1