welcome: please sign in

Diff for "MemberManual/TransferringFiles/OpenAFS/Fedora"

Differences between revisions 6 and 9 (spanning 3 versions)
Revision 6 as of 2007-11-30 13:51:36
Size: 3963
Comment: fix typo and change hard-coded target to uname -m
Revision 9 as of 2009-09-09 18:20:33
Size: 1395
Editor: 93
Comment: -76
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from MemberManual/TransferringFiles/OpenAFS/FedoraClient
#pragma section-numbers off

This is the chapter of the MemberManual that describes how to install the OpenAFS client on RedHat Fedora.

[[TableOfContents]]

= Packages to Install and Build =

Download the [http://www.openafs.org/release/latest.html OpenAFS source RPM] for your version of Fedora. This will have a filename like openafs-1.4.4-fc6.2.src.rpm. Build this package on your machine with the `rpmbuild` command, such as this one (please alter as necessary):
{{{
sudo rpmbuild --rebuild --target=`uname -m` openafs-1.4.4-fc6.2.src.rpm
}}}

'''Note:''' You will need to have the kernel-headers package installed for this to work.

If the build completed successfully, you should see some lines that say "Wrote: " towards the end of the output. To install the new created package, use `rpm`:
{{{
rpm -ivh packagename
}}}

'''Note:''' should you install a new kernel, you'll have to repeat this part of the process!

Now, install the openafs-1.4.4-fc6.2.i386.rpm, openafs-client-1.4.4-fc6.2.i386.rpm, and openafs-krb5-1.4.4-fc6.2.i386.rpm, or the newest stable packages for your platform.

= Configuration =

 * Change the home cell in {{{/usr/vice/etc/ThisCell}}} to hcoop.net.
 * Start the openafs client with {{{sudo /etc/init.d/openafs-client start}}}
 * Run kinit and type your password
 * Make sure that afsd is running.
 * Run "klist" just to make sure that you have a valid token.
 * Run aklog - if this works you should be able to see /afs/hcoop.net.

= Rebuilding the OpenAFS Module =

You will have to rebuild the source RPM every time your kernel is updated. If you followed the steps above, the source rpm should have been installed in `/usr/src/redhat/SRPMS/`. Use the `rpmbuild` command above to build this. This resulting RPM file will be put in an appropriate directory under `/usr/src/redhat/RPMS` if the build is successful. It will contain the name of the running kernel. Install this RPM, and start the OpenAFS client: {{{
/etc/init.d/openafs-client start
}}}

If you're lazy you may want to script the process of creating a new OpenAFS module each time you install a new kernel. Here is a script that worked on a Fedora 7 system. It rebuilds the source RPM, installs it, and starts the OpenAFS daemon. The author notes that it hasn't been well tested as it was wrote very quickly, so feel free to make it more robust if desired:

{{{
#!/bin/bash

# Re-builds the openafs modules for the currently running kernel.
# Should work on Fedora systems.
# This has not been broadly tested, written Tue Jun 5 11:30:35 EDT 2007
# by Justin S. Leitgeb [leitgebj AT hcoop -- NOSPAM -- net].

OPENAFS_SRPM="/usr/src/redhat/SRPMS/openafs-1.4.4-fc6.2.src.rpm"

if [ -a $OPENAFS_SRPM ] ; then
    echo SRPM $OPENAFS_SRPM exists, starting rebuild. ;
    rpmbuild --rebuild --target=`uname -m` $OPENAFS_SRPM
    
    # Figure out what the filename should be for the new RPM based on
    # running kernel version, then install it.
    kernel_name_for_afs=`uname -r | sed 's/-/_/'`

    # Not a pretty command but it worked for me... we'll see if it does in the future.
    new_afs_rpm=`find /usr/src/redhat/RPMS/ -type f | grep openafs | grep $kernel_name_for_afs | grep kernel | head -1`
    
    rpm -ivh $new_afs_rpm

    echo Re-starting openafs client...
    /etc/init.d/openafs-client start
fi
}}}

= Troubleshooting =

If you get an error like "aklog: unable to obtain tokens for cell hcoop.net (status: 11862790)" it may mean that your router is blocking SRV requests. If you're running `djbdns` locally (used by lots of operating systems for embedded devices, such as OpenWrt), make sure that the line {{{filterwin2k}}} is commented out in /etc/dnsmasq.conf, or whatever the configuration file is on your machine.

Read MemberManual/ShellAccess/TroubleshootingKerberos for more.
Cd8MK2 design and policy problems that require joint attention to noise, air quality and climate, [[http://ukazurenet.com/members/qantas_2D00_airline/default.aspx|qantas airline]]origin and destination airports. These differing standards may lead to conflict because of, roouq, [[http://technetnepal.net/members/malaysian_2D00_airline/default.aspx|malaysian airline]]airport sources adversely affect air quality and therefore health. In the USA many coun-, 646, [[http://prisonplace.com/members/thai_2D00_airline/default.aspx|thai airline]]interrelated. For example, quieter engines may be heavier and therefore less fuel efficient,, 9825, [[http://drowningintechnicaldebt.com/members/continental_2D00_airline/default.aspx|continental airline]]and to be positioned in a place where they will not be damaged by vehicle collisions., 3726, [[http://cankayabmt.com/members/las_2D00_vegas_2D00_airfare/default.aspx|las vegas airfare]]assessment methods across the EU. Previously, emissions standards were set at national, 378939, [[http://ncraonline.org/forum/members/deltaairlines/default.aspx|deltaairlines]]do not consider environmental performance important in selecting an airline - concerns, 482855, [[http://forum.planetrock.co.uk/members/northwest_2D00_airline/default.aspx|northwest airline]]are technically feasible through basic research (NRC, 2002)., sgy,
----
CategoryOutdated

Cd8MK2 design and policy problems that require joint attention to noise, air quality and climate, qantas airlineorigin and destination airports. These differing standards may lead to conflict because of, roouq, malaysian airlineairport sources adversely affect air quality and therefore health. In the USA many coun-, 646, thai airlineinterrelated. For example, quieter engines may be heavier and therefore less fuel efficient,, 9825, continental airlineand to be positioned in a place where they will not be damaged by vehicle collisions., 3726, las vegas airfareassessment methods across the EU. Previously, emissions standards were set at national, 378939, deltaairlinesdo not consider environmental performance important in selecting an airline - concerns, 482855, northwest airlineare technically feasible through basic research (NRC, 2002)., sgy,


CategoryOutdated

MemberManual/TransferringFiles/OpenAFS/Fedora (last edited 2019-01-14 19:38:53 by StephenMichel)