Go Back   openSUSE Forums > New User How To/FAQ (read only) > Unreviewed How To and FAQ
Forums FAQ Members List Search Today's Posts Mark Forums Read


Unreviewed How To and FAQ POST HERE: Tips and solutions for SUSE Linux from the community. (Please do not post questions)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-May-2009, 10:05
FeatherMonkey's Avatar
Wise Penguin
 
Join Date: Mar 2008
Posts: 1,545
FeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura about
Default How to EXT4

Now I've only tested this in a virtual environment I take no blame if you decide to try something experimental and it breaks. So I wouldn't try it if you care about the data and don't have a backup, Ideally a clone of ext3 as AFAIK it can't be undone, though who know perhaps someone will correct me.
How to Ext4

For 11.1

1st we change the options and flags

tune2fs -O extents,uninit_bg /dev/ROOT
tune2fs -O extents,uninit_bg /dev/HOME

2nd open /etc/fstab with the editor of your choice and change ext3 to ext4dev

Quick way
sed -i 's/ext3/ext4dev/g' /etc/fstab
check
cat /etc/fstab

3rd
Add ex4dev to INITRD_MODULES in /etc/sysconfig/kernel

4th now to make the the initrd support it..
sudo mkinitrd

5th We now need to run e2fsck
You can either go to single user mode
init 1
Or a reboot I tried a reboot seemed fine grumbled a little but did it fine.


How to Ext4

For 11.2


1st we change the options and flags

tune2fs -O extents,uninit_bg /dev/ROOT
tune2fs -O extents,uninit_bg /dev/HOME

2nd open /etc/fstab with the editor of your choice and change ext3 to ext4

Quick way
sed -i 's/ext3/ext4/g' /etc/fstab
check
cat /etc/fstab

3rd
Add ex4 to INITRD_MODULES in /etc/sysconfig/kernel

4th now to make the the initrd support it..
sudo mkinitrd

5th We now need to run e2fsck
You can either go to single user mode
init 1
Or a reboot I tried a reboot seemed fine grumbled a little but did it fine.

If you do get it failing on a system either / or /home as long as mkinitrd run properly then you should have fsck.ext4/dev I had the 11.2 not do /home and 11.1 not do root.

I found one other snippet as to whether it works <shrug> but then I wouldn't be doing this to a system that I cared about.
Append this to the /boot/grub/menu.lst on the kernel line
rootflags=data=ordered
related to Ext4 data loss; explanations and workarounds - News - The H Open Source: News and Features fix found(Maybe, don't tell me if you get data loss) Ext4 - ArchWiki

All info extracted from Ext4 Howto - Ext4 after hint from microchip 11.2 Milestone1 Initial Comments & Issues - openSUSE Forums
__________________
Man first, have a try at Info, have a look at Wiki, if all that fails Scroogle!!!!!
If I've helped click on the Rep button I don't know what it does but it sounds cool.
Reply With Quote
  #2 (permalink)  
Old 29-May-2009, 16:27
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: How to EXT4

I do not recommend running 11.1 with the ext4dev. It was marked as experimental for a purpose. The chances to lose data are not worth the performance benefits.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #3 (permalink)  
Old 30-May-2009, 04:26
FeatherMonkey's Avatar
Wise Penguin
 
Join Date: Mar 2008
Posts: 1,545
FeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura about
Default Re: How to EXT4

I do not recommend running ext4 on either if you care about data loss, certainly not without a backup.
__________________
Man first, have a try at Info, have a look at Wiki, if all that fails Scroogle!!!!!
If I've helped click on the Rep button I don't know what it does but it sounds cool.
Reply With Quote
  #4 (permalink)  
Old 30-May-2009, 04:33
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: How to EXT4

I certainly disagree with You, i've been using ext4 with 11.2 M2 and didn't encounter any data loss. The problem of losing data is caused not by a BUG but by the programs, that has been talked about for months already. I guess the only data you can lose is the one that is actually opened and when you don't install any applications then you may only lose some settings in KDE.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #5 (permalink)  
Old 30-May-2009, 04:58
microchip8's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: /dev/belgium
Posts: 2,199
microchip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the rough
Default Re: How to EXT4

Quote:
Originally Posted by FeatherMonkey View Post
I do not recommend running ext4 on either if you care about data loss, certainly not without a backup.
The data loss problems have been fixed by Ted and fixes will be present in 2.6.30. There is no reason why not to use Ext4
__________________
My site: http://microchip.bplaced.net
My repo: http://download.opensuse.org/repositories/home:/microchip8
SUSE Unbound Forum: http://suseunbound.lefora.com


Do coders dream of sheep() ?
Reply With Quote
  #6 (permalink)  
Old 30-May-2009, 05:03
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: How to EXT4

While i agree it is fixed i disagree that this is a problem because delayed allocation is a feature and what Ted wrote is a "workaround" for applications that uselessly write small files so many times.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #7 (permalink)  
Old 30-May-2009, 05:22
FeatherMonkey's Avatar
Wise Penguin
 
Join Date: Mar 2008
Posts: 1,545
FeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura about
Default Re: How to EXT4

Well I can't comment but if you follow the link after the supposedly fix of appending to the kernel line, I don't see why it shouldn't work(Seems to be forcing some mode over a default). If my understanding is correct it was design and the fix is yet to be back ported, reading the article implies the fix has only just made the 2.6.30.

But I don't follow fs or kernel mailing lists.. and I certainly don't know what the Suse team are backporting. The changelog for the 11.1 source is still showing relatively recent ext4 patch fixing, so it seems it is still being debugged.
__________________
Man first, have a try at Info, have a look at Wiki, if all that fails Scroogle!!!!!
If I've helped click on the Rep button I don't know what it does but it sounds cool.
Reply With Quote
  #8 (permalink)  
Old 30-May-2009, 05:38
microchip8's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: /dev/belgium
Posts: 2,199
microchip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the rough
Default Re: How to EXT4

Quote:
Originally Posted by BenderBendingRodriguez View Post
While i agree it is fixed i disagree that this is a problem because delayed allocation is a feature and what Ted wrote is a "workaround" for applications that uselessly write small files so many times.
Not just the workaround. There were bugs present in the delayed allocation code itself which have been fixed now. Yes, programs are often coded bad, especially when it comes to fsync() calls for flushing data to disk
__________________
My site: http://microchip.bplaced.net
My repo: http://download.opensuse.org/repositories/home:/microchip8
SUSE Unbound Forum: http://suseunbound.lefora.com


Do coders dream of sheep() ?
Reply With Quote
  #9 (permalink)  
Old 30-May-2009, 05:59
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,655
BenderBendingRodriguez hasn't been rated much yet
Default Re: How to EXT4

Yes, that's what she said

I just don't want everyone get on the ext4 wagon and then complain that they lost data etc. , only experienced users should attempt to do this or the ones that know what they are doing instead of simply following some instructions

By the way, that upgrade enables all those "new" features (specifically extents) only for new files so i recommend to make an unconditional update that will replace all the system files thus enabling extents for them.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #10 (permalink)  
Old 01-Jun-2009, 01:02
1michael1's Avatar
Parent Penguin
 
Join Date: Dec 2008
Location: (Canada)
Posts: 773
1michael1 hasn't been rated much yet
Default Re: How to EXT4

Quote:
Originally Posted by BenderBendingRodriguez View Post
Yes, that's what she said

I just don't want everyone get on the ext4 wagon and then complain that they lost data etc. , only experienced users should attempt to do this or the ones that know what they are doing instead of simply following some instructions

By the way, that upgrade enables all those "new" features (specifically extents) only for new files so i recommend to make an unconditional update that will replace all the system files thus enabling extents for them.
BenderBendingRodriguez,
I agree with you
__________________
Motherboard MSI X58 Eclipse,320GB intern.HD,400GB Ext.HD,1.5TB intern.HD,6GB ram.Dual ViewSonic VX1962WM Monitor,Zip drive 250MB,HPpsc 2410 printer and Logitech G51 speakers
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting 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




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2