Installing IBM lin_tape on Linux (Red Hat Enterprise Linux)
Steps for install lin_tape and lin_taped
1. Download the lin_tape source and lin_taped from ftp://ftp.software.ibm.com/storage/devdrvr/Linux/lin_tape_source-lin_taped/
lin_tape-X.YY.Z-W.src.rpm.bin lin_taped-X.YY.Z-rhel[V].arch.rpm.bin
Samples for version 1.20.0-1
lin_tape-1.20.0-1.src.rpm.bin lin_taped-1.20.0-rhel4.x86_64.rpm.bin
2. Rebuild lin_tape rpm source
# rpmbuild --rebuild lin_tape-X.YY.Z-W.src.rpm.bin
Sample for version 1.20.0-1
# rpmbuild --rebuild lin_tape-1.20.0-1.src.rpm.bin Installing
lin_tape-1.20.0-1.src.rpm.bin Executing(%prep): /bin/sh -e
/var/tmp/rpm-tmp.52502 + umask 022 + cd /usr/src/redhat/BUILD + LANG=C +
export LANG + unset DISPLAY + cd /usr/src/redhat/BUILD + rm -rf
lin_tape-1.20.0 + /bin/gzip -dc
/usr/src/redhat/SOURCES/lin_tape-1.20.0.tgz + tar -xf - + STATUS=0 +
'[' 0 -ne 0 ']' + cd lin_tape-1.20.0 ++ /usr/bin/id -u + '[' 0 = 0 ']' +
/bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp
-Rhf root . + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.52502 + umask 022 + cd
/usr/src/redhat/BUILD + cd lin_tape-1.20.0 + LANG=C + export LANG +
unset DISPLAY ++ echo x86_64-redhat-linux-gnu ++ cut -f 1 -d - +
p=x86_64 + '[' x86_64 == i386 ']' + '[' x86_64 == i586 ']' + '[' x86_64
== i686 ']' + '[' x86_64 == ppc64 ']' + '[' x86_64 == powerpc ']' + '['
x86_64 == s390 ']' + '[' x86_64 == s390x ']' + '[' x86_64 == ia64 ']' +
'[' x86_64 == x86_64 ']' + proc=AMD + cp -af lin_tape_359X_AMD.ReadMe
lin_tape_359X.ReadMe + cp -af lin_tape_Ultrium_AMD.ReadMe
lin_tape_Ultrium.ReadMe + make KERNEL=2.6.9-78.0.13.ELsmp PROC=x86_64
driver grep: IBMtapeutil.c: No such file or directory make -C
/lib/modules/2.6.9-78.0.13.ELsmp/build
SUBDIRS=/usr/src/redhat/BUILD/lin_tape-1.20.0
PWD=/usr/src/redhat/BUILD/lin_tape-1.20.0 clean make[1]: Entering
directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-x86_64' grep:
IBMtapeutil.c: No such file or directory make[1]: Leaving directory
`/usr/src/kernels/2.6.9-78.0.13.EL-smp-x86_64' mkdir bldtmp make
KERNEL=2.6.9-78.0.13.ELsmp compileclean lin_tape.ko grep: IBMtapeutil.c:
No such file or directory make[1]: Entering directory
`/usr/src/redhat/BUILD/lin_tape-1.20.0' export PWD make -C
/lib/modules/2.6.9-78.0.13.ELsmp/build
SUBDIRS=/usr/src/redhat/BUILD/lin_tape-1.20.0
PWD=/usr/src/redhat/BUILD/lin_tape-1.20.0 modules make[2]: Entering
directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-x86_64' grep:
IBMtapeutil.c: No such file or directory CC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_scsi_config.o CC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_scsi_tape.o CC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_scsi_trace.o CC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_ioctl_tape.o CC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_ioctl_changer.o CC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_extra_ioctl.o LD [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape.o Building modules,
stage 2. MODPOST CC /usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape.mod.o
LD [M] /usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape.ko make[2]:
Leaving directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-x86_64'
make[1]: Leaving directory `/usr/src/redhat/BUILD/lin_tape-1.20.0' mv
lin_tape.ko bldtmp/lin_tape-2.6.9-78.0.13.ELsmp.ko + exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.33921 + umask 022 + cd
/usr/src/redhat/BUILD + cd lin_tape-1.20.0 + LANG=C + export LANG +
unset DISPLAY + rm -rf /var/tmp/lin_tape-1.20.0-1-root-root + install -D
-m 644 bldtmp/lin_tape-2.6.9-78.0.13.ELsmp.ko
/var/tmp/lin_tape-1.20.0-1-root-root/lib/modules/2.6.9-78.0.13.ELsmp/kernel/drivers/scsi/lin_tape.ko
+ install -D -m 644 98-lin_tape.rules
/var/tmp/lin_tape-1.20.0-1-root-root/etc/udev/rules.d/98-lin_tape.rules
+ install -D -m 755 udev.get_lin_tape_id.sh
/var/tmp/lin_tape-1.20.0-1-root-root/sbin/udev.get_lin_tape_id.sh ++
uname -m + PROC=x86_64 + p=x86_64 + '[' x86_64 == i386 ']' + '[' x86_64
== i586 ']' + '[' x86_64 == i686 ']' + install -D -m 700 lin_tape
/var/tmp/lin_tape-1.20.0-1-root-root/etc/init.d/lin_tape + cd
/var/tmp/lin_tape-1.20.0-1-root-root + ln -sf /etc/init.d/lin_tape
/usr/sbin/rclin_tape + cd - /usr/src/redhat/BUILD/lin_tape-1.20.0 +
/usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip
/usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-static-archive
/usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note
/usr/bin/strip /usr/bin/objdump Processing files: lin_tape-1.20.0-1
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.33921 + umask 022 + cd
/usr/src/redhat/BUILD + cd lin_tape-1.20.0 +
DOCDIR=/var/tmp/lin_tape-1.20.0-1-root-root/usr/share/doc/lin_tape-1.20.0
+ export DOCDIR + rm -rf
/var/tmp/lin_tape-1.20.0-1-root-root/usr/share/doc/lin_tape-1.20.0 +
/bin/mkdir -p
/var/tmp/lin_tape-1.20.0-1-root-root/usr/share/doc/lin_tape-1.20.0 + cp
-pr lin_tape_Ultrium.ReadMe lin_tape_359X.ReadMe COPYING COPYING.LIB
/var/tmp/lin_tape-1.20.0-1-root-root/usr/share/doc/lin_tape-1.20.0 +
exit 0 Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/lin_tape-1.20.0-1-root-root warning: Could not canonicalize
hostname: hotsm001ode Wrote:
/usr/src/redhat/RPMS/x86_64/lin_tape-1.20.0-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.70795 + umask 022 + cd
/usr/src/redhat/BUILD + cd lin_tape-1.20.0 + rm -rf
/var/tmp/lin_tape-1.20.0-1-root-root + exit 0 Executing(--clean):
/bin/sh -e /var/tmp/rpm-tmp.70795 + umask 022 + cd /usr/src/redhat/BUILD
+ rm -rf lin_tape-1.20.0 + exit 0
3. Install the rpm wroted in /usr/src/redhat/RPMS/[your_arch]/
# rpm -ivh /usr/src/redhat/RPMS/x86_64/lin_tape-1.20.0-1.x86_64.rpm
4. Install the rpm lin_taped
lin_taped-X.YY.Z-rhel[V].arch.rpm.bin
Sample for version 1.20.0-1
# rpm -ivh lin_taped-1.20.0-rhel4.x86_64.rpm.bin
5. Start lin_tape service
# /etc/init.d/lin_tape start
6. Check your tapes on /proc/scsci/IBM*
# cat /proc/scsi/IBM* lin_tape version: 1.20.0 lin_tape major
number: 252 Attached Tape Devices: Number model SN HBA FO
Path 0 03584L32 00000782XXXXXXXE qla2xxx NA 1 03584L32 00000782XXXXXXXE
qla2xxx NA lin_tape version: 1.20.0 lin_tape major number: 252 Attached
Tape Devices: Number model SN HBA FO Path 0 ULT3580-TD4 00078XXXXX
qla2xxx NA 1 ULT3580-TD4 00078XXXXX qla2xxx NA 2 ULT3580-TD4 00078XXXXX
qla2xxx NA 3 ULT3580-TD4 00078XXXXX qla2xxx NA 4 ULT3580-TD4 00078XXXXX
qla2xxx NA 5 ULT3580-TD4 00078XXXXX qla2xxx NA
Comments !