LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-15-2006, 07:31 AM   #1
sekar1175
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
how to rebuild kernel for XFS file system


Hi
i am trying to create a XFS file system on a native linux-LVM volume . It fails saying "mkfs.XFS: No such file or directory" .
lsmod does not list xfs . Do i have to rebuild the kernel for XFS ..If so plz let me know the steps as how to proceed.

Also I dont see mkfs.xfs in /sbin .
cd /sbin
ls -la mkfs*
-rwxr-xr-x 1 root root 10120 May 24 2006 mkfs
-rwxr-xr-x 1 root root 20472 May 24 2006 mkfs.cramfs
-rwxr-xr-x 3 root root 37672 Apr 24 2006 mkfs.ext2
-rwxr-xr-x 3 root root 37672 Apr 24 2006 mkfs.ext3
-rwxr-xr-x 3 root root 27368 Oct 13 2004 mkfs.msdos
-rwxr-xr-x 3 root root 27368 Oct 13 2004 mkfs.vfat
-rwxr-xr-x 1 root root 506108 Jun 2 2006 mkfs.vxfs


Advance thanks

Rgds
sekar.

Last edited by sekar1175; 12-15-2006 at 07:37 AM.
 
Old 12-15-2006, 08:43 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
The make file system utility in Linux is divided into separate executables based on file system type. When you invoke mkfs -t xfs the mkfs binary looks for an executable to run named mkfs.xfs. If you look in your file listing you will see that there is a file named mkfs.vxfs. I don't know what that is. My system has a file named mkfs.xfs which will create an XFS file system.

It looks to me like the file on your system named mkfs.vxfs should be named mkfs.xfs. I don't know how the name could have been changed unless you were renaming executables. Nevertheless I believe that this is the source of the problem. Try renaming mkfs.vxfs to mkfs.xfs and then try to create the XFS file system.

In the future it would be helpful if you included the command line that you used. It is possible that you used a parameter incorrectly. We can't know that unless you include the exact command line that you executed. Also, it would be helpful if you included the name of your distribution. There are some differences between each distribution. You never know if your problem is due to the distribution that you are using. If you don't include the name of your Linux distribution then we can't know if your problem is distribution specific.
 
Old 12-15-2006, 11:58 AM   #3
charleykadet
Member
 
Registered: Sep 2005
Location: Montreal
Distribution: Fedora Core 5, Gentoo, LFS
Posts: 83

Rep: Reputation: 15
You need to add support in your kernel. If you have xfs as root you need to NOT compile xfs as module. Check if your kernel as XFS support by running "cat /proc/filesystems | grep xfs" if not download a new kernel by running these command:
cd /usr/src
mkdir kernel
cd kernel
wget http://www.kernel.org/pub/linux/kern...6.19.1.tar.bz2
tar xvf linux-2.6.19.1.tar.bz2
ln -s linux-2.6.19.1 ../linux
cd linux-2.6.19.1
make xconfig
(enable File Systems->XFS filesystem support)
make bzImage && make modules
as root:
make modules_install
make install
if you have grub installed edit /boot/grub/grub.conf and add something like this:

title=Kernel 2.6.19.1
root (hd0,0)
kernel /boot/vmlinuz-2.6.19.1 root=/dev/sda2

after that you need to install xfs utility...
ftp://oss.sgi.com/projects/xfs/cmd_t....8.18-1.tar.gz
follow instructions in doc/INSTALL
 
Old 02-28-2007, 12:26 AM   #4
sekar1175
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: 0
vxFS file system on RHEL4 physical devices

Hi All
I am trying to create VxFS file system on a LUN presented from Symmetrix ..i did fdisk /dev/sde - created partitions on the sde ... when i do mkfs.vxfs /dev/sde1 - it says "Cannot deduce character device name for /dev/sde8 " . i cheked in /dev/vx/rdsk/ & /dev/vx/rdmp/ directories - they dont have character device for sde ...

Please let me know if it is possible to create VxFS FS on physical device in RHEL-3 / RHEL-4 .


Advance thanks ...


Chandrasekar.
 
  


Reply



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
File recovery after partition table damage - XFS file system gracecourt Linux - General 4 09-28-2017 05:29 PM
checking XFS file system sikkalgopal Linux - Newbie 1 08-21-2006 04:46 AM
LXer: File System Design part 1: XFS LXer Syndicated Linux News 0 01-25-2006 10:31 PM
Mandrake 10.1 boot stall on xfs file system! ffnhj Mandriva 4 12-05-2004 10:09 PM
xfs problem? X Server won't start after system wipe browny_amiga Linux - General 3 09-22-2003 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:06 PM.

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