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 IBM Site:
Look the new procedure to download here.
in_tape-X.YY.Z-W.src.rpm.binlin_taped-X.YY.Z-rhel[V].arch.rpm.bin
Samples for version 1.20.0-1
lin_tape-1.20.0-1.src.rpm.binlin_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.binInstalling
lin_tape-1.20.0-1.src.rpm.binExecuting(%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 0Executing(%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 drivergrep: IBMtapeutil.c: No
such file or directorymake -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 cleanmake[1]: Entering
directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-x86_64'grep:
IBMtapeutil.c: No such file or directorymake[1]: Leaving directory
`/usr/src/kernels/2.6.9-78.0.13.EL-smp-x86_64'mkdir bldtmpmake
KERNEL=2.6.9-78.0.13.ELsmp compileclean lin_tape.kogrep: IBMtapeutil.c:
No such file or directorymake[1]: Entering directory
`/usr/src/redhat/BUILD/lin_tape-1.20.0'export PWDmake -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 modulesmake[2]: Entering
directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-x86_64'grep:
IBMtapeutil.c: No such file or directoryCC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_scsi_config.oCC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_scsi_tape.oCC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_scsi_trace.oCC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_ioctl_tape.oCC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_ioctl_changer.oCC [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape_extra_ioctl.oLD [M]
/usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape.oBuilding modules,
stage 2.MODPOSTCC /usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape.mod.oLD
[M] /usr/src/redhat/BUILD/lin_tape-1.20.0/lin_tape.komake[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 0Executing(%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/objdumpProcessing files:
lin_tape-1.20.0-1Executing(%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 0Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/lin_tape-1.20.0-1-root-rootwarning: Could not canonicalize
hostname: hotsm001odeWrote:
/usr/src/redhat/RPMS/x86_64/lin_tape-1.20.0-1.x86_64.rpmExecuting(%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 0Executing(--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.0lin_tape major
number: 252Attached Tape Devices:Number model SN HBA FO
Path0 03584L32 00000782XXXXXXXE qla2xxx NA1 03584L32 00000782XXXXXXXE
qla2xxx NAlin_tape version: 1.20.0lin_tape major number: 252Attached
Tape Devices:Number model SN HBA FO Path0 ULT3580-TD4 00078XXXXX qla2xxx
NA1 ULT3580-TD4 00078XXXXX qla2xxx NA2 ULT3580-TD4 00078XXXXX qla2xxx
NA3 ULT3580-TD4 00078XXXXX qla2xxx NA4 ULT3580-TD4 00078XXXXX qla2xxx
NA5 ULT3580-TD4 00078XXXXX qla2xxx NA
Comments !