Results 1 to 5 of 5
  1. #1
    Newcomer
    Join Date
    Sep 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question IBM lin_tape source code

    Hello all,

    After some reading i came across with the information that there are two possible drivers available for managing IBM tape libraries under Linux. One is the IBMTape driver, which according to the docs is the most mature driver and is closed source, and then there is a new(er) one, called lin_tape which is supposed to be open-source.

    Having to try an install on a non-supported distribution, i got very excited with these news, but unfortunatly i can't seem to find the source code for the lin_tape driver anywhere, so that i can compile against a non RH/SLES "factory" kernel.

    Can anyone please point me out where i can find the source code for lin_tape?

    Just for the record, the follwing text is from the IBM_Tape_Driver_IUG.pdf, available at ftp://ftp.software.ibm.com/storage/devdrvr/Doc.

    "The lin_tape device driver is the new device driver for the Linux 2.6 kernels to replace the closed-source driver IBMtape."

    It even has its own index entry in that document.

    "Open Source Device Driver - lin_tape . . . . .118"

    Kind regards,

    Hugo Monteiro.
    Last edited by hmmm; 09-03-2007 at 09:43 AM.

  2. #2
    Member
    Join Date
    Sep 2002
    Posts
    116
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    From the lin_tape readme
    To build the lin_tape device driver from sources, first install the
    source rpm package. Then, from the /usr/src/packages/SPEC or
    /usr/src/redhat/SPEC directory, issue the following command:
    rpmbuild -bb lin_tape.spec
    The binary rpm will be in the RPMS directory of the parent directory.
    When building the binary driver package, the closed-source daemon
    for the current platform will be included in the binary rpm package.

    Modified versions of the driver are not supported by IBM. The source
    rpm package can be down loaded from this web site:
    https://www14.software.ibm.com/webap...o?source=lstdd
    I built my lin_tape from source and works well. There is a known issue where you will see dsmserv page allocation messages in /var/log/messages however as per IBM this is not an error.
    Running on z/Linux and z/OS

  3. #3
    Member
    Join Date
    Jul 2007
    Location
    Basel
    Posts
    57
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default build lin_tape driver from source ended with errors

    build lin_tape on SLES10 :

    rpmbuild -bb lin_tape.spec :


    make KERNEL=2.6.16.46-0.12-default compileclean lin_tape.ko
    make[1]: Entering directory `/usr/src/packages/BUILD/lin_tape-1.15.0'
    rm -f *.o
    export PWD
    make -C /lib/modules/2.6.16.46-0.12-default/build SUBDIRS=/usr/src/packages/BUILD/lin_tape-1.15.0 PWD=/usr/src/packages/BUILD/lin_tape-1.15.0 modules
    make: *** /lib/modules/2.6.16.46-0.12-default/build: No such file or directory. Stop.
    make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: *** [lin_tape.ko] Error 2
    make[1]: Leaving directory `/usr/src/packages/BUILD/lin_tape-1.15.0'
    make: *** [bldtmp/lin_tape-2.6.16.46-0.12-default.ko] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.9119 (%build)

    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.9119 (%build)


    in /lib/modules/2.6.16.46-0.12-default there is only 1 subdir kernel


    Must the subdir build be created manually before ?

  4. #4
    Member
    Join Date
    Jul 2007
    Location
    Basel
    Posts
    57
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    created the build subdir before the rpmbuild : ==> next error

    make -C /lib/modules/2.6.16.46-0.12-default/build SUBDIRS=/usr/src/packages/BUILD/lin_tape-1.15.0 PWD=/usr/src/packages/BUILD/lin_tape-1.15.0 modules
    make[2]: Entering directory `/lib/modules/2.6.16.46-0.12-default/build'
    make[2]: *** No rule to make target `modules'. Stop.
    make[2]: Leaving directory `/lib/modules/2.6.16.46-0.12-default/build'
    make[1]: *** [lin_tape.ko] Error 2
    make[1]: Leaving directory `/usr/src/packages/BUILD/lin_tape-1.15.0'
    make: *** [bldtmp/lin_tape-2.6.16.46-0.12-default.ko] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.67463 (%build)

    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.67463 (%build)

  5. #5
    Member janecb's Avatar
    Join Date
    Oct 2002
    Location
    Northeast
    Posts
    46
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    According to the documentation, type rpmbuild --rebuild <rpm package (latest 1.27)>

    I have RHEL5 64 bit.. worked fine

    Jane
    &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
    Jane Bamberger
    Keybank

Similar Threads

  1. IBM Product code details
    By raj2989 in forum Licensing
    Replies: 4
    Last Post: 09-07-2007, 07:36 AM
  2. lin_tape Linux drivers for RHEL 4 don't work
    By martin_crown in forum Tape / Media Library
    Replies: 2
    Last Post: 08-26-2007, 01:07 PM
  3. Open Source TSM Managment
    By rowl in forum Administrative Client
    Replies: 5
    Last Post: 06-14-2007, 10:10 AM
  4. Replies: 0
    Last Post: 01-24-2007, 03:47 AM
  5. BackingUp "SAP DB" (Open Source Database) with TSM
    By Slusarski in forum TDP/Application Layer Backup
    Replies: 1
    Last Post: 05-12-2004, 06:40 PM

Tags for this Thread

Posting Permissions

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