Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: HOWTO : install and use the open-afs client [dapper]

  1. #1
    Join Date
    Jun 2006
    Location
    Sion, Switzerland
    Beans
    24
    Distro
    Ubuntu 6.06

    HOWTO : install and use the open-afs client [dapper]

    Hello Everybody,

    Tis howto is for the people who want to connect to an afs cell witt the open-afs client. It is not a guide to install an afs server.

    For the client to run you must unfortunately compile a kernel module for the kernel that you are using. This means that you have to recompile the module each time tat you update your kernel.
    You need to have the linux-headers package and the kernel-package package installed for the kernel you are running. (you can use apt-get or synaptic)

    Code:
     sudo apt-get install linux-headers-x.x.x kernel-package
    Where x.x.x is the version of the kernel that you are using.

    Then you have to get the openafs-modules-source package and untar the tarball it gives you:

    Code:
     sudo apt-get install openafs-modules-source
     cd /usr/src
     sudo tar xzvf openafs.tar.gz
    Then you need to build the openafs kernel module. We will create a new .deb file in your /usr/src directory and then use dpkg to install it. A very big lot of text will defile during the process, it is normal.

    Code:
    cd /usr/src/linux-headers-x.x.x.
     sudo make-kpkg configure 
     (lots of stuff will fly by)
     sudo make-kpkg modules_image 
     (if it asks about the version number, don't abort)
    Finally nstall the newly created openafs-modules package:

    Code:
     sudo dpkg -i /usr/src/openafs-modules-x.x.x....deb
    This is the end of the part that you need to do every time that you update your kernel.

    Now get the openafs-client and kerberos packages (if you need the kerberos 4 packages, also install the krb4 equivalents):

    Code:
     sudo apt-get install openafs-client openafs-krb5 krb5-user krb5-config
    Configuration:
    During the process you will be asked to give the name of the AFS cell, the size of the AFS cache and the default kerberos realm:

    Code:
     default Kerberos version 5 realm: <blank>
     AFS cell: name of the cell you want to connect to. Ask the administrator.
     AFS cache: 50000

    If you wish for the AFS client to start at boot, edit /etc/openafs/afs.conf.client:

    change
    AFS_CLIENT=false
    to
    AFS_CLIENT=true

    Load the newly made module (I don't know why, bu it is not automatically loaded at startup)

    Code:
     sudo insmod /lib/modules/x.x.x/fs/openafs.ko
    Start the openafs client:

    Code:
     sudo /etc/init.d/openafs-client start
    Get an AFS token using kerberos

    Code:
     klog -principal your_username -cell the_name_of_the_AFS_server
    You can then access the afs server in the /afs/the_name_of_the_AFS_server
    directory.


    Yours

    Christophe Schlicht
    Last edited by terminatorkobold; September 26th, 2006 at 10:33 AM.

  2. #2
    Join Date
    Sep 2006
    Location
    Silicon Valley, CA
    Beans
    55
    Distro
    Edgy Eft Testing

    Re: HOWTO : install and use the open-afs client [dapper]

    I get down to the line:

    Code:
    sudo dpkg -i /usr/src/openafs-modules-2.6.17-10-386.deb
    which gives

    Code:
    dpkg: error processing /usr/src/openafs-modules-2.6.17-10-386.deb (--install):
     cannot access archive: No such file or directory
    Errors were encountered while processing:
     /usr/src/openafs-modules-2.6.17-10-386.deb
    Has the openafs-module been created for 2.6.17 yet?
    Thought is only a flash between two long nights, but this flash is everything.
    ~Poincare

  3. #3
    Join Date
    Jun 2006
    Location
    Sion, Switzerland
    Beans
    24
    Distro
    Ubuntu 6.06

    Re: HOWTO : install and use the open-afs client [dapper]

    Quote Originally Posted by bollocks00 View Post
    I get down to the line:

    Code:
    sudo dpkg -i /usr/src/openafs-modules-2.6.17-10-386.deb
    which gives

    Code:
    dpkg: error processing /usr/src/openafs-modules-2.6.17-10-386.deb (--install):
     cannot access archive: No such file or directory
    Errors were encountered while processing:
     /usr/src/openafs-modules-2.6.17-10-386.deb
    Has the openafs-module been created for 2.6.17 yet?


    There should be no problem. The .deb file should have been created with the make-kpkg command. You con look in Nautilus if the file was created in another place like/usr/src/linux-headers-x.x.x/
    If it is not the case, then you had a problem with the make-kpkg command. Did it give you an error?

    yours

    Christophe

  4. #4
    Join Date
    Sep 2006
    Location
    Silicon Valley, CA
    Beans
    55
    Distro
    Edgy Eft Testing

    Re: HOWTO : install and use the open-afs client [dapper]

    Christophe,

    I believe the configure went fine, but the modules_image seems to have some errors:

    Code:
    lenny@IBM:/usr/src/linux-headers-2.6.17-10-386$ sudo make-kpkg modules_image
    exec debian/rules  DEBIAN_REVISION=2.6.17-10-386-10.00.Custom  modules_image 
    ====== making .config because of Makefile ======
    
    test -f .config || test ! -f .config.save || \
                                cp -pf .config.save .config
    test -f .config || test ! -f .config || \
                                cp -pf .config .config
    test -f .config || test ! -f ./debian/config || \
                                cp -pf ./debian/config  .config
    test -f .config || (echo "*** Need a config file .config" && false)
    for module in /usr/src/modules/openafs ; do                       \
              if test -d  $module; then                                \
                (cd $module;                                          \
                  if ./debian/rules KVERS="2.6.17-10-386" KSRC="/usr/src/linux-headers-2.6.17-10-386" \
                                 KMAINT="Unknown Kernel Package Maintainer" KEMAIL="unknown@unconfigured.in.etc.kernel-pkg.conf"      \
                                 KPKG_DEST_DIR="/usr/src/linux-headers-2.6.17-10-386/.."       \
                                 KPKG_MAINTAINER="Unknown Kernel Package Maintainer"        \
                                 KPKG_EXTRAV_ARG=""        \
                                 ARCH="i386"                  \
                                 KDREV="2.6.17-10-386-10.00.Custom" kdist_image; then    \
                      echo "Module $module processed fine";            \
                  else                                                  \
                       echo "Module $module failed.";                  \
                       if [ "X" != "X" ]; then      \
                          echo "Perhaps $module does not understand --rootcmd?";  \
                          echo "If you see messages that indicate that it is not"; \
                          echo "in fact being built as root, please file a bug ";  \
                          echo "against $module.";                     \
                       fi;                                              \
                       echo "Hit return to Continue";                   \
                     read ans;                                        \
                  fi;                                                   \
                 );                                                    \
              else                                                      \
                   echo "Module $module does not exist";               \
                   echo "Hit return to Continue?";                      \
              fi;                                                       \
            done
    make[1]: Entering directory `/usr/src/modules/openafs'
    make only_libafs
    make[2]: Entering directory `/usr/src/modules/openafs'
    make build TARGET=libafs
    make[3]: Entering directory `/usr/src/modules/openafs'
    make libafs DEST=/usr/src/modules/openafs/i386_linux26/dest COMPILE_PART2B=all DESTDIR=
    make[4]: Entering directory `/usr/src/modules/openafs'
    cd src && cd config && make all
    make[5]: Entering directory `/usr/src/modules/openafs/src/config'
    make[5]: Nothing to be done for `all'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/config'
    src/config/config src/libafs/MakefileProto.LINUX src/libafs/Makefile i386_linux26
    Wrote new makefile 'src/libafs/Makefile'.
    cd src && cd pinstall && make all
    make[5]: Entering directory `/usr/src/modules/openafs/src/pinstall'
    make[5]: Nothing to be done for `all'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/pinstall'
    cd src && cd lwp && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/lwp'
    make[5]: Nothing to be done for `depinstall'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/lwp'
    cd src && cd rx && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/rx'
    make[5]: Nothing to be done for `depinstall'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/rx'
    cd src && cd rxgen && make all
    make[5]: Entering directory `/usr/src/modules/openafs/src/rxgen'
    make[5]: Nothing to be done for `all'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/rxgen'
    cd src && cd procmgmt && make all
    make[5]: Entering directory `/usr/src/modules/openafs/src/procmgmt'
    make[5]: Nothing to be done for `all'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/procmgmt'
    cd src && cd des && make all 
    make[5]: Entering directory `/usr/src/modules/openafs/src/des'
    make[5]: Nothing to be done for `all'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/des'
    cd src && cd util && make all
    make[5]: Entering directory `/usr/src/modules/openafs/src/util'
    make[5]: Nothing to be done for `all'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/util'
    cd src && cd comerr && make all
    make[5]: Entering directory `/usr/src/modules/openafs/src/comerr'
    make[5]: Nothing to be done for `all'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/comerr'
    cd src && cd ubik && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/ubik'
    Makefile:174: warning: overriding commands for target `/usr/src/modules/openafs/debian/tmp/bin/udebug'
    Makefile:171: warning: ignoring old commands for target `/usr/src/modules/openafs/debian/tmp/bin/udebug'
    make[5]: Nothing to be done for `depinstall'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/ubik'
    cd src && cd auth && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/auth'
    make[5]: Nothing to be done for `depinstall'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/auth'
    cd src && cd vlserver && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/vlserver'
    make[5]: Nothing to be done for `depinstall'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/vlserver'
    cd src && cd rxkad && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/rxkad'
    make[5]: Nothing to be done for `depinstall'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/rxkad'
    cd src && cd fsint && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/fsint'
    make[5]: Nothing to be done for `depinstall'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/fsint'
    cd src && cd libacl && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/libacl'
    make[5]: Nothing to be done for `depinstall'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/libacl'
    cd src && cd afs && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/afs'
    case i386_linux26 in \
                    pmax_ul43 | pmax_ul43a) \
                            /usr/src/modules/openafs/src/pinstall/pinstall longc_procs.h /usr/src/modules/openafs/include/afs ;; \
            esac
    make[5]: Leaving directory `/usr/src/modules/openafs/src/afs'
    cd src && cd dir && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/dir'
    make[5]: Nothing to be done for `depinstall'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/dir'
    cd src && cd rxstat && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/rxstat'
    make[5]: Nothing to be done for `depinstall'.
    make[5]: Leaving directory `/usr/src/modules/openafs/src/rxstat'
    cd src && cd sys && make depinstall
    make[5]: Entering directory `/usr/src/modules/openafs/src/sys'
    make[5]: Leaving directory `/usr/src/modules/openafs/src/sys'
    cd src && cd libafs && make all
    make[5]: Entering directory `/usr/src/modules/openafs/src/libafs'
    Makefile.common:50: warning: overriding commands for target `.c.o'
    /usr/src/modules/openafs/src/config/Makefile.config:132: warning: ignoring old commands for target `.c.o'
    Makefile:163: target `openafs.ko' given more than once in the same rule.
    Makefile:168: warning: overriding commands for target `openafs.ko'
    Makefile:164: warning: ignoring old commands for target `openafs.ko'
    Makefile:200: warning: overriding commands for target `/usr/src/modules/openafs/debian/tmp/lib/openafs/openafs.ko'
    Makefile:197: warning: ignoring old commands for target `/usr/src/modules/openafs/debian/tmp/lib/openafs/openafs.ko'
    rm -f h net netinet sys rpc
    ln -fs rx rpc
    for m in SP ; do \
                    KDIR=MODLOAD-2.6.17-10-386-$m; \
                    mkdir -p ${KDIR}; \
                    ln -fs ../Makefile ${KDIR}/Makefile.afs ; \
                    ln -fs ../Makefile.common ${KDIR}/Makefile.common; \
                    ln -fs ../config ${KDIR}/config; \
            done 
    rm -f h 
    rm -f sys
    rm -f netinet 
    if [ -d /usr/src/linux-headers-2.6.17-10-386/include2 ] ; then                  \
                ln -fs /usr/src/linux-headers-2.6.17-10-386/include2/asm/../linux h       ; \
                ln -fs /usr/src/linux-headers-2.6.17-10-386/include2/asm/../linux sys     ; \
                ln -fs /usr/src/linux-headers-2.6.17-10-386/include2/asm/../linux netinet ; \
            else                                                            \
                ln -fs /usr/src/linux-headers-2.6.17-10-386/include/linux h               ; \
                ln -fs /usr/src/linux-headers-2.6.17-10-386/include/linux sys             ; \
                ln -fs /usr/src/linux-headers-2.6.17-10-386/include/linux netinet         ; \
            fi
    rm -f linux 
    ln -fs /usr/src/linux-headers-2.6.17-10-386/include/linux linux 
    rm -f net 
    ln -fs /usr/src/linux-headers-2.6.17-10-386/include/net net 
    rm -f asm-generic
    ln -fs /usr/src/linux-headers-2.6.17-10-386/include/asm-generic asm-generic
    rm -f asm
    ln -fs /usr/src/linux-headers-2.6.17-10-386/include/asm-i386 asm
    for m in SP ; do \
                    KDIR=MODLOAD-2.6.17-10-386-$m ; \
                    echo Building in directory: ${KDIR} ; \
                    if [ "$m" = "MP" ] ; then \
                            SMP_DEF="-DAFS_SMP  " ; \
                            TARG="libafs.mp" ; \
                    elif [ "$m" = "EP" ] ; then \
                            SMP_DEF="-DAFS_SMP  " ; \
                            TARG="libafs.ep" ; \
                    elif [ "$m" = "BM" ] ; then \
                            SMP_DEF="-DAFS_SMP  " ; \
                            TARG="libafs.bm" ; \
                    else  \
                            SMP_DEF=" " ; \
                            TARG=libafs ; \
                    fi ; \
                    cd ${KDIR} ; \
                    make -f Makefile.afs SMP_DEF="${SMP_DEF}" linux_compdirs_${TARG} CLIENT=2.6.17-10-386 KDIR=${KDIR} || exit $?; \
                    cd ../ ; \
            done
    Building in directory: MODLOAD-2.6.17-10-386-SP
    make[6]: Entering directory `/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.17-10-386-SP'
    Makefile.common:50: warning: overriding commands for target `.c.o'
    /usr/src/modules/openafs/src/config/Makefile.config:132: warning: ignoring old commands for target `.c.o'
    Makefile.afs:163: target `openafs.ko' given more than once in the same rule.
    Makefile.afs:168: warning: overriding commands for target `openafs.ko'
    Makefile.afs:164: warning: ignoring old commands for target `openafs.ko'
    Makefile.afs:200: warning: overriding commands for target `/usr/src/modules/openafs/debian/tmp/lib/openafs/openafs.ko'
    Makefile.afs:197: warning: ignoring old commands for target `/usr/src/modules/openafs/debian/tmp/lib/openafs/openafs.ko'
    make[6]: Circular openafs.ko <- openafs.ko dependency dropped.
    make[6]: Circular openafs.ko <- openafs.ko dependency dropped.
    env EXTRA_CFLAGS="" /usr/src/modules/openafs/src/libafs/make_kbuild_makefile.pl MODLOAD-2.6.17-10-386-SP openafs.ko /usr/src/modules/openafs/src/config/Makefile.config Makefile.afs Makefile.common
    env EXTRA_CFLAGS="" make -C /usr/src/linux-headers-2.6.17-10-386 M=/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.17-10-386-SP modules
    make[7]: Entering directory `/usr/src/linux-headers-2.6.17-10-386'
      CC [M]  /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.17-10-386-SP/afs_analyze.o
    In file included from /usr/src/modules/openafs/src/afs/afs_osi.h:443,
                     from /usr/src/modules/openafs/src/rx/rx_clock.h:88,
                     from /usr/src/modules/openafs/src/rx/rx.h:35,
                     from /usr/src/modules/openafs/src/afs/afsincludes.h:26,
                     from /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.17-10-386-SP/afs_analyze.c:36:
    /usr/src/modules/openafs/src/afs/LINUX/osi_machdep.h:55:2: error: #error Not sure what to do about rlim (should be in the Linux task struct somewhere....)
    make[8]: *** [/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.17-10-386-SP/afs_analyze.o] Error 1
    make[7]: *** [_module_/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.17-10-386-SP] Error 2
    make[7]: Leaving directory `/usr/src/linux-headers-2.6.17-10-386'
    make[6]: *** [openafs.ko] Error 2
    make[6]: Leaving directory `/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.17-10-386-SP'
    make[5]: *** [linux_compdirs] Error 2
    make[5]: Leaving directory `/usr/src/modules/openafs/src/libafs'
    make[4]: *** [libafs] Error 2
    make[4]: Leaving directory `/usr/src/modules/openafs'
    make[3]: *** [build] Error 2
    make[3]: Leaving directory `/usr/src/modules/openafs'
    make[2]: *** [only_libafs] Error 2
    make[2]: Leaving directory `/usr/src/modules/openafs'
    make[1]: *** [build-modules-stamp] Error 2
    make[1]: Leaving directory `/usr/src/modules/openafs'
    Module /usr/src/modules/openafs failed.
    Hit return to Continue
    Do I need to download some other package before I try this command?
    Thanks.
    Thought is only a flash between two long nights, but this flash is everything.
    ~Poincare

  5. #5
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: HOWTO : install and use the open-afs client [dapper]

    Hello,
    This is what I got:
    sudo dpkg -i /usr/src/openafs-modules-2.6.15-27-386_1.4.1-2+10.00.Custom_i386.deb
    dpkg: status database area is locked by another proces

    Does it matter? Thank you.

    T.J.

  6. #6
    Join Date
    Jun 2006
    Location
    Sion, Switzerland
    Beans
    24
    Distro
    Ubuntu 6.06

    Re: HOWTO : install and use the open-afs client [dapper]

    Quote Originally Posted by bollocks00 View Post
    Christophe,

    I believe the configure went fine, but the modules_image seems to have some errors:

    Do I need to download some other package before I try this command?
    Thanks.
    Hello bollocks00,

    I am sorry bu this goes beyond my knowledge of the system. I am by far not a linux guru, but perhaps somebody else can answer your question.

    Yours

    Christophe

  7. #7
    Join Date
    Jun 2006
    Location
    Sion, Switzerland
    Beans
    24
    Distro
    Ubuntu 6.06

    Re: HOWTO : install and use the open-afs client [dapper]

    Quote Originally Posted by yangtj207 View Post
    Hello,
    This is what I got:
    sudo dpkg -i /usr/src/openafs-modules-2.6.15-27-386_1.4.1-2+10.00.Custom_i386.deb
    dpkg: status database area is locked by another proces

    Does it matter? Thank you.

    T.J.
    Hi,

    If you have another package manager openned at that time (aptitude or synaptic) you have to close it before you can run the dpkg command.

    Yours

    Christophe

  8. #8
    Join Date
    Jan 2005
    Beans
    31

    Re: HOWTO : install and use the open-afs client [dapper]

    Openafs currently doesn't work with kernel 2.6.17, which can be
    quite a showstopper for Edgy if you rely on openafs (as I do):
    http://ubuntuforums.org/showthread.p...90#post1665690


    There's has been a much easier of building openafs kernel modules
    for quite some time using module-assistant.

    From /usr/share/doc/openafs-client/README.modules:

    First, install module-assistant and then prepare the kernel headers and
    install openafs-modules-source:

    apt-get install module-assistant
    module-assistant prepare openafs-modules

    (If you want to build modules for a different kernel than your currently
    running one, pass the -l flag to module-assistant. See the man page.)
    module-assistant may be able to find the right packages itself or it may
    tell you to install particular packages. Once you've finished with
    that, build the module with:

    module-assistant auto-build openafs-modules

  9. #9
    Join Date
    Sep 2005
    Location
    Sweden
    Beans
    34
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO : install and use the open-afs client [dapper]

    Hi!

    I've been trying to install open afs for quite some time now, and I can't get it to work.

    Im on the 2.6.15-27-383 kernel, and I think there is something wrong with the header packages for this version.

    When I'm trying to build with "kpgk-make modules_image" or with the "
    module-assistant auto-build openafs-modules" I'll get this:
    Code:
    make[6]: Entering directory `/usr/src/linux-headers-2.6.15-27-386'         
     │ Makefile:536: /usr/src/linux-headers-2.6.15-27-386/arch/i386/Makefile:     
     │ No such file or directory                                                  
     │ make[6]: *** No rule to make target                                        
     │ `/usr/src/linux-headers-2.6.15-27-386/arch/i386/Makefile'.  Stop.
    If i look into the header kernel package in the /usr/src/ i see that the folder "arch" is a "broken link" along with many other folders.
    I downloaded a header package for a previous version and it contained all the folders as folders and not as broken links.

    Now, how will I solve this problem?

    Thanks in advance!
    "Real programmers does not document. If it was hard to write, it should be hard to read."

  10. #10
    Join Date
    Aug 2005
    Beans
    2

    Re: HOWTO : install and use the open-afs client [dapper]

    hello,

    I am not sure that it is a problem with kernel 2.6.17, maybe it is something related to Edgy, because I had afs working with Dapper (on an ibook g4) with kernel 2.6.17.0, then I upgraded to Edgy and I was not able to use afs anymore (by the way, I used the guide here, plus module-assistant, as you describe... thank you, I could not survive without it).
    I tried installing afs again, but nothing; so I installed Dapper again with kernel 2.6.17.14 and I was able to install and use afs with no problems.
    emmanuele


    Quote Originally Posted by JDahl View Post
    Openafs currently doesn't work with kernel 2.6.17, which can be
    quite a showstopper for Edgy if you rely on openafs (as I do):
    http://ubuntuforums.org/showthread.p...90#post1665690


    There's has been a much easier of building openafs kernel modules
    for quite some time using module-assistant.

    From /usr/share/doc/openafs-client/README.modules:

    First, install module-assistant and then prepare the kernel headers and
    install openafs-modules-source:

    apt-get install module-assistant
    module-assistant prepare openafs-modules

    (If you want to build modules for a different kernel than your currently
    running one, pass the -l flag to module-assistant. See the man page.)
    module-assistant may be able to find the right packages itself or it may
    tell you to install particular packages. Once you've finished with
    that, build the module with:

    module-assistant auto-build openafs-modules

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •