- jeromel's home page
- Posts
- 2020
- 2019
- 2018
- 2017
- 2016
- 2015
- December (1)
- November (1)
- October (2)
- September (1)
- July (2)
- June (1)
- March (3)
- February (1)
- January (1)
- 2014
- 2013
- 2012
- 2011
- 2010
- December (2)
- November (1)
- October (4)
- August (3)
- July (3)
- June (2)
- May (1)
- April (4)
- March (1)
- February (1)
- January (2)
- 2009
- December (3)
- October (1)
- September (1)
- July (1)
- June (1)
- April (1)
- March (4)
- February (6)
- January (1)
- 2008
- My blog
- Post new blog entry
- All blogs
AFS not starting, module fail to load
Updated on Tue, 2014-12-23 12:27. Originally created by jeromel on 2014-12-23 11:45.
Upon the update of a new Linux kernel, it may be that OpenAFS does not start due to a module load failure. Here is a recipe on how to fix that:
follow the below steps
[1] First, build the new kernel module like below
[2] Prepare adding the new module to the active Linux kernel and add where it should be
[3] Tell OpenAFS where the module is located so you can start the service with no problems
[4] Start the service
Done.
- Assuming the new Linux Kernel is 2.6.32-504.3.3.el6.x86_64
- Assuming the new AFS version is openafs-kernel-1.6.10
- Assuming you have the package openafs-kernel-source package installed
- Assuming you have the openafs-module-tools package installed
- Assuming you have the linux kernel devel package kernel-devel installed
follow the below steps
[1] First, build the new kernel module like below
% cd /usr/src/openafs-kernel-1.6.10/src
% ./configure
% make
This will build the Linux kernel module support for OpenAFS. The file should be named like libafs*.ko . In our example, it will be libafs-2.6.32-504.3.3.el6.x86_64.mp.ko . Note the result of uname -srv below and the presence of an SMP (indicating multiple cores, multiple CPUs, ...).% uname -srv Linux 2.6.18-371.11.1.el5 #1 SMP Wed Jul 23 11:39:05 CDT 2014
[2] Prepare adding the new module to the active Linux kernel and add where it should be
% mkdir -p /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/fs/openafs % cp src/libafs/MODLOAD-2.6.32-504.3.3.el6.x86_64-MP/libafs-2.6.32-504.3.3.el6.x86_64.mp.ko \ /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/fs/openafs/openafs.ko
[3] Tell OpenAFS where the module is located so you can start the service with no problems
% echo /lib/modules/2.6.32-504.3.3.el6.x86_64/kernel/fs/openafs/openafs.ko | openafs-modules --add-modules
[4] Start the service
% service afs start
Done.
»
- jeromel's blog
- Login or register to post comments