Using XFS instead of ext3 (network performance boost)

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 00:28, 29 November 2006 by Mindbender (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Link.png This article is currently a stub. You can help this Wiki by expanding it

. This template will categorize articles that include it into Category:Stubs.

Contents

Why?

Because it improves the network performance.

Model ext3 XFS Difference (MB/s) Difference (%)
LS1:  ?  ?  ?  ?
HG:  ?  ?  ?  ?
HS:  ?  ?  ?  ?


Prerequisites

Custom Kernel

You need a custom Kernel running the LS. As long as everything works it is regardless if you run it via loader.o or if you use UBoot.


Knowing the risks

IF something goes wrong then it is quite sure that you will have to connect the hdd to a workstation running Linux as there is no XFS-Support in EM Mode.

Mindbender is working on this:
The Linkstation Community Forum / General Development / Development of flash ramdisk from scratch - linux knowledge wanted!
The Linkstation Community Forum / General Development / (flash-development) telnet + ftp enabled flash images ready for testing(LS1, HG, HS)


Installation

FreeLink

apt-get update
apt-get install convertfs xfsprogs

OpenLink

cd /tmp
wget http://downloads.linkstationwiki.net/packages/ppc/xfsprogs-2.8.16_ppc.tar.gz
tar -C / -xzvf xfsprogs-2.8.16_ppc.tar.gz
wget http://downloads.linkstationwiki.net/packages/ppc/gettext-0.16_ppc.tar.gz
tar -C / -xzvf gettext-0.16_ppc.tar.gz
wget http://downloads.linkstationwiki.net/packages/ppc/convertfs-13jan2005_ppc.tar.gz
tar -C ~ -xzvf convertfs-13jan2005_ppc.tar.gz

Loading the XFS-Kernelmodule

modprobe XFS

in fact this is the test if XFS is supported by your kernel. "lsmod" gives an overview over all loaded modules. if XFS is shown there everything is alright.

Conversion to XFS

this is the real conversion of the data-partition (/mnt) to XFS:

~/convertfs/contrib/convertfs /dev/hda3 ext3 xfs

Modification of /etc/fstab

at the end of convertfs you are told that you need to modify /etc/fstab because of the different file system. change the entry for /dev/hda3 from "ext3" to "xfs"

before:

/dev/hda3       /mnt            ext3    defaults,noatime                0 0

after:

/dev/hda3       /mnt            xfs     defaults,noatime                0 0
Link.png This article is currently a stub. You can help this Wiki by expanding it

. This template will categorize articles that include it into Category:Stubs.