[OpenAFS] installing on CentOS

David Bear David.Bear@asu.edu
Tue, 5 Jan 2010 10:28:36 -0700


--0016e64606cafaebc6047c6e2a2f
Content-Type: text/plain; charset=UTF-8

> Ideally, we should include this in the quick start or admin guide, but the
> wiki at http://www.dementia.org/twiki/bin/view/AFSLore/CreatingANewCell is
> probably a good place to keep those directions until they make it into the
> documentation in git.
>
> Using kmod's are fine, but dkms can be easier when upgrading kernels.
>

Well, using the kmod failed for me on 'this' machine. The rpm wanted an
different kernel.. and when rpm failed to install the 'older' kernel version
but got the kmod for openafs -- the module refused to load. So I thought
going with dkms would be better -- but the story continues..

To use the dkms rpm, add the epel repo, remove the kmod's, and run
> "sudo yum dkms openafs-dkms"
>

Actually, I had to use
sudo yum install dkms dkms-openafs

Note the failure:
sudo yum install openafs-dkms
Loaded plugins: fastestmirror
...
No package openafs-dkms available.
Nothing to do

However, using the dkms-openafs package gives me a similar baffling message:

sudo yum install dkms-openafs
Loaded plugins: fastestmirror
---> Package flex.x86_64 0:2.5.4a-41.fc6 set to be updated
--> Finished Dependency Resolution




> dkms automatically compiles the needed openafs kernel module when the
> kernel is upgraded.
>
>
Running Transaction
  Installing     :
flex
1/2
  Installing     :
dkms-openafs
2/2

Creating symlink /var/lib/dkms/openafs/el5.1.1/source ->
                 /usr/src/openafs-el5.1.1

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.18-164.el5 cannot be found at
/lib/modules/2.6.18-164.el5/build or /lib/modules/2.6.18-164.el5/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.

Error! Could not locate openafs.ko for module openafs in the DKMS tree.
You must run a dkms build for kernel 2.6.18-164.el5 (x86_64) first.
error: %post(dkms-openafs-1.4.10-el5.1.1.x86_64) scriptlet failed, exit
status 4

Installed:
  dkms-openafs.x86_64 0:1.4.10-el5.1.1

Dependency Installed:
  flex.x86_64 0:2.5.4a-41.fc6

It seems there are too many dozens of ways for a linux openafs installation
to go awry .

-- 
David Bear
College of Public Programs at ASU
602-494-0424

--0016e64606cafaebc6047c6e2a2f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<br><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"b=
order-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; paddin=
g-left: 1ex;">Ideally, we should include this in the quick start or admin g=
uide, but the wiki at <a href=3D"http://www.dementia.org/twiki/bin/view/AFS=
Lore/CreatingANewCell" target=3D"_blank">http://www.dementia.org/twiki/bin/=
view/AFSLore/CreatingANewCell</a> is probably a good place to keep those di=
rections until they make it into the documentation in git.<br>

<br>
Using kmod&#39;s are fine, but dkms can be easier when upgrading kernels.<b=
r></blockquote><div><br>Well, using the kmod failed for me on &#39;this&#39=
; machine. The rpm wanted an different kernel.. and when rpm failed to inst=
all the &#39;older&#39; kernel version but got the kmod for openafs -- the =
module refused to load. So I thought going with dkms would be better -- but=
 the story continues..=C2=A0 <br>
<br></div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid=
 rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
To use the dkms rpm, add the epel repo, remove the kmod&#39;s, and run<br>
&quot;sudo yum dkms openafs-dkms&quot;<br></blockquote><div><br>Actually, I=
 had to use <br>sudo yum install dkms dkms-openafs<br><br>Note the failure:=
 <br>sudo yum install openafs-dkms<br>Loaded plugins: fastestmirror<br>
...<br>No package openafs-dkms available.<br>Nothing to do<br><br>However, =
using the dkms-openafs package gives me a similar baffling message:<br><br>=
sudo yum install dkms-openafs<br>Loaded plugins: fastestmirror<br>---&gt; P=
ackage flex.x86_64 0:2.5.4a-41.fc6 set to be updated<br>
--&gt; Finished Dependency Resolution<br><br><br>=C2=A0</div><blockquote cl=
ass=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); mar=
gin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
dkms automatically compiles the needed openafs kernel module when the kerne=
l is upgraded.<br>
<br></blockquote><div><br>Running Transaction<br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0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2/2<br>
<br>Creating symlink /var/lib/dkms/openafs/el5.1.1/source -&gt;<br>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0 /usr/src/openafs-el5.1.1<br><br>DKMS: add Completed.<br><br=
>Error! Your kernel source for kernel 2.6.18-164.el5 cannot be found at<br>=
/lib/modules/2.6.18-164.el5/build or /lib/modules/2.6.18-164.el5/source.<br=
>
You can use the --kernelsourcedir option to tell DKMS where it&#39;s locate=
d.<br><br>Error! Could not locate openafs.ko for module openafs in the DKMS=
 tree.<br>You must run a dkms build for kernel 2.6.18-164.el5 (x86_64) firs=
t.<br>
error: %post(dkms-openafs-1.4.10-el5.1.1.x86_64) scriptlet failed, exit sta=
tus 4<br><br>Installed:<br>=C2=A0 dkms-openafs.x86_64 0:1.4.10-el5.1.1<br><=
br>Dependency Installed:<br>=C2=A0 flex.x86_64 0:2.5.4a-41.fc6<br><br></div=
></div>
It seems there are too many dozens of ways for a linux openafs installation=
 to go awry .<br><br>-- <br>David Bear<br>College of Public Programs at ASU=
<br>602-494-0424<br>

--0016e64606cafaebc6047c6e2a2f--