This page was exported from phaq
[ http://phaq.phunsites.net ] Export date: Mon May 29 4:28:27 2023 / +0000 GMT |
Despite the Linux kernel having support for so many file systems, not all of them are enabled in RedHat Enterprise Linux by default. This might be well as some of them might not yet classify as "enterprise grade" in the eyes of RedHat, who knows... Luckily, support for missing file systems such as ReiserFS, XFS and JFS can be added easily as outlined below. For this howto I assume you are running the stock RedHat kernel. Get an RPM repositoryFirst of all, you need access to an RPM repository. Usually this is your setup cd-rom or a network-accessible (FTP, HTTP or even NFS) directory. I assume you have this setup already, so let's proceed to the next step. Install requireds packagesYou'll need the toolchain, rpm-build, the glibc and kernel headers as well as the kernel source RPM from redhat. Issue this to see what kernel header version is required for you:
Install them as required using yum:
This will install everything you need to get going in the first place. Now go and get the kernel source RPM, which you'll find at the RedHat FTP Site. Save it to a temporary directory and install it accordingly:
This will throw some messages at you about a user/group named "brewbuilder" not being there. That means no harm, however you may prefer to create it first. Now everything needed should exist inside your /usr/src/redhat directory. Then run rpmbuild from the redhat tree.
Enable the file systemsNow you need to initialize the kernel build environment like this from the kernel source tree. You will also need to copy the original kernel config from your current RedHat kernel.
From "menuconfig" navigate to "File systems", where you enable the missing modules. In my case I select "Reiserfs support", "JFS" and "XFS" to be included as module ("M" marking). This is especially required if you just want to build the module and copy it over to your locally installed kernel modules directory. I'd recommend to create an RPM for proper upgrade management anyway, however in this case it actually doesn't matter (except in terms of overhead and performance of course) it you're using a module or compile it into the kernel. Afterwards I exit from "menuconfig", not without saving the changes of course. Compiling and installing the modules the lazy wayNow this is what I call the lazy way... For easy upgrades and package management, I'd strongly recommend you create a fullblown RPM (see next section). However, if you just want to get going, you can compile the modules manually like this:
Then add the modules made to your current module directory like this:
This will leave you with modules suiting your kernel. However, whenever you're upgrading the kernel package, they may get overwritten, so it's best to create a kernel rpm and install it as a regurlar package. Building a full-featured RPMBefore you create your RPM package, it's recommended you edit the Makefile and replace the EXTRAVERSION header by something meaningful which makes the difference clear.
In this case, I've set EXTRAVERSION = -jfsxfsreiserfs_2.6.18_53_1.6. Then simply run this command to create the RPM package:
Like this you'll end up with both a new RPM package and a source RPM inside your /usr/src/redhat/RPMS and /usr/src/redhat/SRPMS directories, which can then be installed via rpm or, if integrated with a local yum repository, from yum itself. Getting the toolsOf course, the modules themselves serve no practical purpose if you lack the userspace tools to create and maintain the file systems. Get them accordingly from ftp://oss.sgi.com/projects/xfs/ (XFS), http://jfs.sourceforge.net/ (JFS) and http://chichkin_i.zelnet.ru/namesys/ (ReiserFS). Again, it's recommended to create an RPM from the sources, but this is beyond the scope of this article. |
Powered by [ Universal Post Manager ] plugin. HTML saving format developed by gVectors Team www.gVectors.com |