LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   XFS on RHEL4 (https://www.linuxquestions.org/questions/red-hat-31/xfs-on-rhel4-654004/)

mg2003 07-07-2008 01:21 AM

XFS on RHEL4
 
Has anyone been able to get XFS running on RHEL4?

I can get it running on RHEL5 by making the kernel module from source. I can create filesystems using mkfs.xfs from xfsprogs, and I can mount them successfully.
But, trying to do the same thing on RHEL4u3 and I can't make the module. I have installed the correct source files for my kernel, I have enabled xfs support (via make xconfig), but I can't make the xfs module. My error is:

Code:

[root@mg-rhel4]# cd /usr/src/redhat/BUILD/kernel-2.6.8/linux-2.6.9
[root@mg-rhel4]# grep -i XFS .config
CONFIG_XFS_FS=y
# CONFIG_XFS_RT is not set
# CONFIG_XFS_QUOTA is not set
CONFIG_XFS_SECURITY=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_VXFS_FS=m
[root@mg-rhel4]# make fs/xfs/xfs.ko
make: *** No rule to make target 'fs/xfs/xfs.ko'. Stop.

I haven't touched the Makefile in fs/xfs. It looks fine to me...

I can install the xfs kernel RPM from CentOS (kernel-module-xfs-2.6.9-34.EL-0.1.1), but that prints a big warning message on install about it being test status. I don't really want to use that...

If anyone has setup XFS on RHEL4, how did you do it?

Thanks!

mg2003 07-07-2008 06:35 PM

Got it to work. For anyone interested:

Code:

# uname –r
NOTATE THE NUMBERS ( ie 2.6.X.X) Change X.X to whatever your kernel version is
# mkdir /usr/src/sources
# cd /usr/src/sources
GET THE SRC RPM FROM ftp://ftp.redhat.com/pub/redhat/linux/enterprise/[VERSION DIRECTORY]/en/os/SRPMS/kernel-2.6.X.X-EL.src.rpm
# rpm -ivh kernel-2.6.X.X-EL.src.rpm
# cd /usr/src/redhat
# rpmbuild -bp SPECS/kernel-2.6.spec
# cp -r /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/fs/xfs/. /lib/modules/$(uname -r)/build/fs/xfs/
# cd /lib/modules/$(uname -r)/build
# make menuconfig
ADD XFS SUPPORT
# cd /lib/modules/$(uname -r)/build
# make SUBDIRS=fs/xfs/ modules
# cd /lib/modules/$(uname -r)
# mkdir kernel/fs/xfs
# cp build/fs/xfs/xfs.ko kernel/fs/xfs/
# chmod 744 kernel/fs/xs/xfs.ko
# depmod
# modprobe xfs


I hope this can help someone!

animeboy 10-10-2008 01:03 PM

Quote:

Originally Posted by mg2003 (Post 3207116)
Got it to work. For anyone interested:

Code:

# uname –r
NOTATE THE NUMBERS ( ie 2.6.X.X) Change X.X to whatever your kernel version is
# mkdir /usr/src/sources
# cd /usr/src/sources
GET THE SRC RPM FROM ftp://ftp.redhat.com/pub/redhat/linux/enterprise/[VERSION DIRECTORY]/en/os/SRPMS/kernel-2.6.X.X-EL.src.rpm
# rpm -ivh kernel-2.6.X.X-EL.src.rpm
# cd /usr/src/redhat
# rpmbuild -bp SPECS/kernel-2.6.spec
# cp -r /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/fs/xfs/. /lib/modules/$(uname -r)/build/fs/xfs/
# cd /lib/modules/$(uname -r)/build
# make menuconfig
ADD XFS SUPPORT
# cd /lib/modules/$(uname -r)/build
# make SUBDIRS=fs/xfs/ modules
# cd /lib/modules/$(uname -r)
# mkdir kernel/fs/xfs
# cp build/fs/xfs/xfs.ko kernel/fs/xfs/
# chmod 744 kernel/fs/xs/xfs.ko
# depmod
# modprobe xfs


I hope this can help someone!

Thanks Much. This really helped me out as I didn't need XFS or JFS for a bootable drive, so having it as modules really worked for me.

I just added duplicate lines subbing jfs for xfs to get both modules enabled in my kernal.

Thanks again,
Mark

mohtame 04-25-2010 06:52 AM

Can't download the source for XFS
 
Can you please explain how to download the source,i couldn't download it at all.

mohtame 04-25-2010 07:50 AM

I have it now,Thank you :)

arjanvl 07-21-2010 10:43 AM

works here!
 
Works swell here.

Little typo in " # chmod 744 kernel/fs/xs/xfs.ko "
Should be " # chmod 744 kernel/fs/xfs/xfs.ko "

Thanks for the good input m8!

Downloaded the RPM from ftp://ftp.redhat.com/pub/redhat/linu.../x86_64/SRPMS/
;)


All times are GMT -5. The time now is 09:19 AM.