LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-07-2008, 01:21 AM   #1
mg2003
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
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!
 
Old 07-07-2008, 06:35 PM   #2
mg2003
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
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!
 
Old 10-10-2008, 01:03 PM   #3
animeboy
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by mg2003 View Post
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
 
Old 04-25-2010, 06:52 AM   #4
mohtame
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: Disabled
Can't download the source for XFS

Can you please explain how to download the source,i couldn't download it at all.
 
Old 04-25-2010, 07:50 AM   #5
mohtame
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: Disabled
I have it now,Thank you
 
Old 07-21-2010, 10:43 AM   #6
arjanvl
LQ Newbie
 
Registered: Jul 2010
Posts: 6

Rep: Reputation: 1
Talking 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/

Last edited by arjanvl; 07-23-2010 at 07:56 AM.
 
  


Reply

Tags
rhel4, xfs



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Install RHEL4 in Xen of RHEL4--"unable to retrieve the install image" sailer_sh Red Hat 0 06-19-2007 12:31 AM
remote backup from RHEL4 to another RHEL4? dkgoalie Linux - Newbie 2 10-27-2006 11:14 PM
kdebase not recognizing XFree86-xfs package as xfs mikeyt_333 Linux - Software 1 08-17-2004 01:50 PM
2.4.22+xfs BedriddenTech Linux - Software 0 09-01-2003 06:30 AM
Xfs mikeshn Linux - Newbie 1 02-18-2002 07:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration