[Top] [All Lists]

Re: XFS and OpenAFS (was Re[2]: XFS (v.1.0.1 for RedHat 7.1) and XFS (I

To: Keith Matthews <keith_m@xxxxxxxxxxxxxxxxxxx>
Subject: Re: XFS and OpenAFS (was Re[2]: XFS (v.1.0.1 for RedHat 7.1) and XFS (Irix 6.5.13m) differ? )
From: "P.Dixon" <p.dixon@xxxxxxxxx>
Date: Fri, 28 Sep 2001 12:18:22 +0100 (BST)
Cc: <linux-xfs@xxxxxxxxxxx>
In-reply-to: <20010928081744.21126125E6@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
> On which subject, has anyone got OpenAFS to work reliably with XFS yet ?
Yes - both smp and single CPU versions - although I had to build it myself
from the openafs-kernel-source RPM and the openafs src rpm.

btw, I am using kernel 2.4.5-SGI_XFS_1.0.1.

basically, install the XFS kernel source, install the openafs kernel
source and src RPM and then cd /usr/src/redhat/SPECS, edit
openafs-1.0.4.spec and set the kernel version to 24:

%define kernvers 24

Then run  rpm -ba openafs-1.0.4.spec - RPMs should then appear in
/usr/src/redhat/RPMS/... (I also had to fudge the directory name of the
XFS kernel source in /usr/src to match the kernel name given by uname -a).

# ls /usr/src
lrwxr-xr-x    1  Jul 25 12:42 linux -> linux-2.4
lrwxr-xr-x    1  Jul 12 11:49 linux-2.4 -> linux-2.4.5-SGI_XFS_1.0.1
drwxr-xr-x    3  Jul 12 11:03 openafs-kernel-1.0.4/
drwxr-xr-x    7  May  3 11:33 redhat/

So far, openafs-1.0.4a-22 has been the version of choice - earlier and
later versions just hung the system (on ext2 systems also). So my advice
would be to avoid them.

Because of odd naming conventions in the built kernel modules, I had to
do the following after installing:

cd /usr/vice/etc/modload
ln -sf  libafs-2.4.5-SGI_XFS_1.0.1.mp.o libafs-2.4.5-SGI_XFS_1.0.1smp.mp.o

I also reccomend patching the init script:

cd /etc/init.d
patch -N -b /etc/init.d/afs <<EOF
>                 /usr/vice/etc/afsd -shutdown

Hope this helps,

<Prev in Thread] Current Thread [Next in Thread>