[BACK]Return to faq.html CVS log [TXT][DIR] Up to [Development] / xfs-website.orig

File: [Development] / xfs-website.orig / faq.html (download) (as text)

Revision 1.7, Fri Aug 11 14:30:50 2000 UTC (17 years, 2 months ago) by xfs
Branch: MAIN
Changes since 1.6: +1 -1 lines

fix typo in last question: IRIX on linux -> XFS on linux

<& xfsTemplate,top=>1,side=>1 &>

<FONT FACE="ARIAL NARROW, HELVETICA" SIZE="5"><B>Linux XFS FAQ</B></FONT>
<P>
<FONT FACE="ARIAL NARROW, HELVETICA">
Prefix: i will make this a little bit better looking soon ...
</P>
<P>
Q: Where can i find this FAQ ?
</P>
<P>
Currently at
</P>
<P>
  <A HREF="http://oss.sgi.com/projects/xfs/faq.html">http://oss.sgi.com/projects/xfs/faq.html</A>
</P>
<P>
If you have any comments or suggestions just let me know
</P>
<P>
  <A HREF="mailto:thomas.graichen@innominate.de">thomas.graichen@innominate.de</A>
</P>
<P>
Q: What is XFS ?
</P>
<P>
XFS is a filesystem now also available under GPL for linux which is
used in the SGI os IRIX for some years now up to realtively big
installations. It features things like journaling (no fsck on boot-
up), btrees (operates well on large directories) and lots more.
</P>
<P>
Q: Where can i find information about XFS for linux ?
</P>
<P>
Just point your web-browser to
</P>
<P>
  <A HREF="http://oss.sgi.com/projects/xfs/">http://oss.sgi.com/projects/xfs/</A>
</P>
<P>
Q: What do i need to build an XFS ready kernel ?
</P>
<P>
the best way to do this is to checkout the SGI XFS kernel from
their cvs tree. How to do this is described at
</P>
<P>
  <A HREF="http://oss.sgi.com/projects/xfs/cvs_download.html">http://oss.sgi.com/projects/xfs/cvs_download.html</A>
</P>
<P>
After that you have two subtrees of importance: linux and cmd. The
firsts one - linux - is a normal linux kernel source tree containing
the XFS code. It is updated to the latest available linux kernel
from time to time but it may be a bit (not much) behind. Just build
your kernel the way you are used to do it and don't forget to enable
XFS and pagebuf under filesystems. You also need to enable the
ask for experimental features option in the "Code maturity level
options" menu. Also keep in mind that currently
the option for using kiobufs only works on scsi drives. The other
tree - cmd - contains all the tools you need - most important:
mkfs_xfs and repair_xfs - just go to the xfs subdirectory in cmd
and type make (maybe followed by make install to install the
binaries). One thing which is also important to note is that
you need to have the e2fs-devel package installed in order to
build the cmd tools - because they require the uuid stuff in
them. You may also build src and binary rpms by running
</P>
<P>
  ./Makepkgs verbose
</P>
<P>
in the cmd/xfs directory. Also important to note is that
mkfs_xfs is installed as /sbin/mkfs.xfs so use this name or
mkfs -t xfs if you use the installed version. The tools also have
man-pages which you may consult for interesting options like
</P>
<P>
  mkfs -t xfs -l size=16000b /dev/foo
</P>
<P>
for ... - just find it out yourself :-)
In the near future the mkfs_xfs in the build tree will also be
changed to mkfs.xfs so that there is less confusion with names.
There exists also another way to get an xfs ready kernel - you may
get kernel patches relativ to a official kernel from
</P>
<P>
  <A HREF="ftp://oss.sgi.com/projects/xfs/download/<date><version>-cvs.patch.gz">here</A>
</P>
<P>
and apply then to the kernel sources the patch is for. This is a
good way for all the people who don't want to use cvs or do not
have the bandwidth to checkout the whole kernel tree.
</P>
<P>
Q: How do i use XFS ?
</P>
<P>
Just reboot the new build kernel and create a filesytem on an empty
partition
</P>
<P>
  mkfs_xfs /dev/foo
</P>
<P>
where /dev/foo is the the partition you want to use (you may have
to use the -f option of mkfs_xfs if this partition already con-
tains an old filesystem which you want to overwrite). Now you can
mount the filesystem using:
</P>
<P>
  mount -t xfs /dev/foo /somewhere
</P>
<P>
Q: How stable is XFS ?
</P>
<P>
It is quite useable now but i would not recommend it for production
use right now - but i think it will be there quite soon. I am using
it here in a test scenario for a 50 people squid and a ~20 mb/day
newsfeed with 30 simulated users on an xfs only machine and had no
problems so far. Also SGI is doing quite a lot of stress tests with
it (see the stress subdir of the cmd tree).
</P>
<P>
Q: Does it run on platformas other than i386 ?
</P>
<P>
Not yet - but work is underway to get it going on ppc and alpha -
but it should not be too hard to find the remaining bugs (i hope :-)
- so far it compiles and you can mount a filesystem. The tools will
be compilable soon too. Once it is running on these two i expect
no bigger problems on other arches because we then have all the
little/big-endian and 32/64 bit stuff tested.
</P>
<P>
If you are interested in this you may have a look at
</P>
<P>
  <A HREF="http://innominate.org/~graichen/projects/xfs/">http://innominate.org/~graichen/projects/xfs/</A>
</P>
<P>
Q: Do quotas work on XFS ?
</P>
<P>
Not at the moment - but XFS usually has quota support (as one would
expect it for a modern filesystem). The question is how to use them
on the linux port: the linux or the IRIX way. This has to be ironed
out and implemented but i think they will appear in the not too
distant future.
</P>
<P>
Q: Is there any dump/restore for XFS ?
</P>
<P>
xfsdump and xfsrestore for linux will soon be available. But keep in
mind that the on-tape format of them is not the same as the classic
unix dump but they should work fine for things like amanda. Also
you can use the normal dump to restore files backed up from ext2 to
an xfs filesystem.
</P>
<P>
Q: Does lilo work with XFS ?
</P>
<P>
Yes it works.
</P>
<P>
Q: Can i run XFS on top of LVM ?
</P>
<P>
Yes you can but you need to use a patch for LVM because the xfs
kernel contains stephen tweedies sard patches which change the
format of /proc/partitions. Also for using XFS on LVM you should
not enable the kiobuf option in the kernel xfs compile options.
You may get a patch (created by William L Jones) to start from at
</P>
<P>
  <A HREF="http://innominate.org/~graichen/projects/xfs/lvm.patch">here</A>
</P>
<P>
See the head of it for details and a list of contributors.
</P>
<P>
Q: Can i use xfs on loopback block devices ?
</P>
<P>
No currently not.
</P>
<P>
Q: Can XFS be used as / filesystem ?
</P>
<P>
In principle yes - but there has to be added some code so that the
unmounting so that it works in a clean way. So it is better to wait
a bit with it. (But it definitely works - i tried it this way)
</P>
<P>
Q: What partition type should I use for XFS ? 
</P>
<P>
Linux native filesystem (83).
</P>
<P>
Q: Mounting the xfs filesystem does not work - what is wrong ?
</P>
<P>
If you get something like
</P>
<P>
  mount: /dev/hda5 has wrong major or minor number
</P>
<P>
you either don't have XFS compiled into the kernel (or you forgot
to load the modules) or you did not use the "-t xfs" options to
mount without having xfs in /etc/filesystems.
</P>
<P>
Q: Does XFS run with the linux sw RAID md driver ?
</P>
<P>
Nobody has tested it so far but expect it not to work like for
all the other journaling filesystems due to internal buffer locking
problems i think. If anyone tries this - please let me know.
Also keep in mind - if you want to try it - also the md driver
will definitely not work with the kiobuf option enabled.
</P>
<P>
Q: Does XFS run on hw RAID ?
</P>
<P>
Yes - hw RAID is like a normal disk to XFS (like to any other
filesystem) and this should not be a problem.
</P>
<P>
Q: Can i run NFS on top of an XFS partition ?
</P>
<P>
I have not deeply tested it - for light tests it worked - but it
has to be investigated deeper. If anyone has more details here -
please let me know.
</P>
<P>
Q: Is there a way to resise an XFS filesystem ?
</P>
<P>
There is as far as i know a resize utility for XFS (which can grow
XFS filesystems) but i don't know what the state of this in linux is.
If you know more - please let me know.
</P>
<P>
Q: Will i be able to use my old IRIX XFS disks on linux ?
</P>
<P>
As fas as i know this is a design goal of XFS on linux.
</P>

<& xfsTemplate,bottom=>1 &>