Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Tue Nov 21, 2017 4:46 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sun Mar 22, 2009 4:57 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
1. I'm curious if any of you out there have had a lot of experience (good or bad) w/ ext4 -- on our boxes.

2. Has anyone actually checked to see that UBoot can read ext4 partitions? It seems that it _should_ since there seems to be complete backward compatibility, but ... I'd like to hear this from someone who has actually tried it.

3. Also, does it really outperform jfs and xfs? I'm finding that, well, not hard to believe, but wondering if those claims are just some mild hyperbolae.

4. Has anyone tried e4defrag on our machines? (though, yes we know fragmentation isn't a big issue on our machines - unless perhap in some cases when the partition is on the full side)

Right now I'm compiling a ppc 2.6.28.8 kernel w/ ext4 support in it, but I need to update a bitbake recipe for e2fstools so I have the packages made for mkfs.ext4 and fsck.ext4 as well, ver 1.41.4. Strangely the 1.41.3 recipe I'm looking at has ext4 packaging taken care of, but the newest 1.41.4 doesn't have that same packaging in.

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Sun Mar 22, 2009 5:18 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
OK, what I've seen so far...

Made a new kernel w/ ext4 support built-in:
Code:
 root@lsppchd:~# uname -a
 Linux lsppchd 2.6.28.8 #1 Sun Mar 22 00:01:55 CDT 2009 ppc unknown



Also crosscompiled e2fsprogs1.41.4 and installed them:
Code:
root@lsppchd:~# mkfs.ext
 mkfs.ext2               mkfs.ext3               mkfs.ext4               mkfs.ext4dev
 mkfs.ext2.e2fsprogs     mkfs.ext3.e2fsprogs     mkfs.ext4.e2fsprogs     mkfs.ext4dev.e2fsprogs

Set a few partitions on different devices to be ext4:
Code:
root@lsppchd:~# mkfs.ext4 /dev/sdc1
 mke2fs 1.41.4 (27-Jan-2009)
 Filesystem label=
 OS type: Linux
 Block size=1024 (log=0)
 Fragment size=1024 (log=0)
 31744 inodes, 126912 blocks
 6345 blocks (5.00%) reserved for the super user
 First data block=1
 Maximum filesystem blocks=67371008
 16 block groups
 8192 blocks per group, 8192 fragments per group
 1984 inodes per group
 Superblock backups stored on blocks:
    8193, 24577, 40961, 57345, 73729

 Writing inode tables: done                           
 Creating journal (4096 blocks): done
 Writing superblocks and filesystem accounting information: done

 This filesystem will be automatically checked every 34 mounts or
 180 days, whichever comes first.  Use tune2fs -c or -i to override.


Modified my fstab: (/dev/sda3 ext4 now instead of jfs)
Code:
root@lsppchd:~#nano /etc/fstab

   GNU nano 2.0.6                     File: /etc/fstab                                               

 # <fs>                  <mountpoint>    <type>          <opts>                       <dump/pass>
 /dev/sda1               /               ext3            noauto,noatime,nodiratime    1 2
 /dev/sda2               none            swap            sw                           0 0
 /dev/sda3               /mnt            ext4            noatime,nodiratime           0 1
 proc                    /proc           proc            defaults                     0 0
 shm                     /dev/shm        tmpfs           nodev,nosuid,noexec          0 0

Checked mount and umount: (both work as expected)
Code:
 root@lsppchd:~# mount /dev/sda3
 root@lsppchd:~# mount
 rootfs on / type rootfs (rw)
 /dev/root on / type ext3 (rw,noatime,nodiratime,errors=continue,data=ordered)
 proc on /proc type proc (rw)
 sysfs on /sys type sysfs (rw)
 /dev/root on /dev/.static/dev type ext3 (ro,errors=continue,data=ordered)
 tmpfs on /dev type tmpfs (rw,size=2048k,mode=755)
 shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec)
 devpts on /dev/pts type devpts (rw,gid=5,mode=620)
 /dev/sda3 on /mnt type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
 /dev/sdc1 on /media/sdc1 type vfat (rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8)
 root@lsppchd:~# umount /dev/sda3


Then checked to see if fsck.ext4 worked as expected:
Code:
 root@lsppchd:~# fsck.ext4 /dev/sda3
 e2fsck 1.41.4 (27-Jan-2009)
 /dev/sda3: clean, 11/7176192 files, 498413/28694098 blocks

Everything seems very ext2/3-ish - no surprises. I guess now its ext2/3/4.


From dmesg, a few things of note:
Code:
 kjournald starting.  Commit interval 5 seconds
 EXT3-fs: mounted filesystem with ordered data mode.
 ...
 EXT4-fs: barriers enabled
 kjournald2 starting.  Commit interval 5 seconds
 EXT4 FS on sda3, internal journal on sda3:8
 EXT4-fs: delayed allocation enabled
 EXT4-fs: file extents enabled
 EXT4-fs: mballoc enabled
 EXT4-fs: mounted filesystem with ordered data mode.
 EXT4-fs: mballoc: 0 blocks 0 reqs (0 success)
 EXT4-fs: mballoc: 0 extents scanned, 0 goal hits, 0 2^N hits, 0 breaks, 0 lost
 EXT4-fs: mballoc: 0 generated and it took 0
 EXT4-fs: mballoc: 0 preallocated, 0 discarded
 EXT4-fs: barriers enabled
 kjournald2 starting.  Commit interval 5 seconds
 EXT4 FS on sda3, internal journal on sda3:8
 EXT4-fs: delayed allocation enabled
 EXT4-fs: file extents enabled
 EXT4-fs: mballoc enabled
 EXT4-fs: mounted filesystem with ordered data mode.
 ...
 EXT4-fs: Update your userspace programs to mount using ext4
 EXT4-fs: ext4dev backwards compatibility will go away by 2.6.31

Those last two lines are something I had missed in the reading of threads on this subject. I guess udev will be updated as things progress?

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Tue Mar 24, 2009 1:56 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
An interesting (though somewhat outdated) Howto here : http://ext4.wiki.kernel.org/index.php/Ext4_Howto

Also, the tools to handle this are in Lenny already, of course: http://packages.debian.org/lenny/e2fsprogs
Just for PPC LinkStations: e2fsprogs1.41.4.ipkg tarball that has the all the tools as well (compiled against glibc2.6.1).
regular tarball (untar it at /) tarball of e2fsprogs1.41.4 for ppc LS's

And here is a 2.6.28.8 LS1 kernel, w/ ext4 support built-in (along w/ a large module set) that I've been using the last few days. I've seen no problems w/ it ... yours to try, but no guarantees and the usual don't-blame-me-for-anything disclaimer applies if you choose to use it. LS1 2.6.28.8 kernel * modules, w/ ext4 support

More stuff is in http://downloads.buffalo.nas-central.or ... _packages/

To be on the safe side, back up your original /boot first. Then once you download the tarball, untar the kernel package at / ,and then cd to lib/modules/2.6.28.8/ and run depmod .

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Wed May 20, 2009 2:27 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
davy your kernel link is broken.

Looks interesting. I will give this a go on my system to see what the performance is like.

_________________
LS used as PVR and streaming source


Top
   
PostPosted: Thu May 21, 2009 3:56 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
http://downloads.buffalo.nas-central.or ... _packages/

has the whole kit and caboodle... :)

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Mon Jun 01, 2009 12:22 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Cheers. Will check it out. All the posts look good. Still not as fast as XFS in some areas but then we can not have that.

_________________
LS used as PVR and streaming source


Top
   
PostPosted: Thu Jun 17, 2010 1:11 am 
Offline
Newbie

Joined: Sun Aug 31, 2008 11:07 pm
Posts: 48
Hi, davy_gravy.

I know that quite some time has passed, but this discussion is still relevant.

davy_gravy wrote:
I'm curious if any of you out there have had a lot of experience (good or bad) w/ ext4 -- on our boxes.


I am using a self-made kernel from the 2.6.34-rc6 git source and it has been working very well for the last 30 days. I am using the ext4 module compiled in the kernel and set to mount ext2/3 filesystems and it does well so far.

I have not measured anything, but I would suppose that it would be just a tiny bit faster, since it would have lazy allocation, which is something nice. Right now, I have these options used for my mounted work partition:

Code:
rw,noatime,nodiratime,errors=remount-ro,barrier=0,delalloc,data=writeback


Quote:
Has anyone actually checked to see that UBoot can read ext4 partitions? It seems that it _should_ since there seems to be complete backward compatibility, but ... I'd like to hear this from someone who has actually tried it.


I have not yet tried anything fancy with my root filesystem, but I would like to know about this. Since I don't have a JTAG cable, I have never upgraded the uBoot that I'm using here, which was a precompiled one that I got from here. :-)

I would like to make things here more modern, compiling a new uBoot + kernel + initial ramdisk with busybox, but I am a bit lost regarding which sources were used for the uBoot compilation (I guess that it was produced by mindbender). BTW, are the patches necessary for that integrated upstream? That would save a lot of trouble hunting the patches. :-)


Thanks, Rogério Brito.


Top
   
PostPosted: Tue Jul 27, 2010 10:07 am 
Offline
Total Newbie

Joined: Tue Jul 27, 2010 10:00 am
Posts: 1
Thanks, everyone. This is exactly what we're looking for. :lol: :lol: :lol:

_________________
Catering Equipment


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

All times are UTC+01:00


Who is online

Users browsing this forum: Majestic-12 [Bot] and 12 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
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited