ADSM-L

Re: [ADSM-L] Fun with lin_tape and RHEL 6 latest kernel

2017-04-18 03:08:58
Subject: Re: [ADSM-L] Fun with lin_tape and RHEL 6 latest kernel
From: Erwann SIMON <erwann.simon AT FREE DOT FR>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 18 Apr 2017 09:04:13 +0200
Hi,

There's a new 3.0.18 version available on fixcentral. I've sucessfully compiled 
and installed it, see below.

[root@centos7 ~]# rpmbuild --rebuild lin_tape-3.0.18-1.src.rpm
Installing lin_tape-3.0.18-1.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.u2W45I
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf lin_tape-3.0.18
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/lin_tape-3.0.18.tgz
+ /usr/bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd lin_tape-3.0.18
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gKEzyx
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd lin_tape-3.0.18
++ 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 == powerpc64 ']'
+ '[' x86_64 == s390 ']'
+ '[' x86_64 == s390x ']'
+ '[' x86_64 == ia64 ']'
+ '[' x86_64 == x86_64 ']'
+ proc=AMD
+ make KERNEL=3.10.0-514.16.1.el7.x86_64 PROC=x86_64 SFMP=0 driver
make -C /lib/modules/3.10.0-514.16.1.el7.x86_64/build 
SUBDIRS=/root/rpmbuild/BUILD/lin_tape-3.0.18 
PWD=/root/rpmbuild/BUILD/lin_tape-3.0.18 clean
make[1]: Entering directory `/usr/src/kernels/3.10.0-514.16.1.el7.x86_64'
make[1]: Leaving directory `/usr/src/kernels/3.10.0-514.16.1.el7.x86_64'
mkdir bldtmp
make KERNEL=3.10.0-514.16.1.el7.x86_64 compileclean lin_tape.ko
make[1]: Entering directory `/root/rpmbuild/BUILD/lin_tape-3.0.18'
rm -f *.o
export PWD
make -C /lib/modules/3.10.0-514.16.1.el7.x86_64/build 
SUBDIRS=/root/rpmbuild/BUILD/lin_tape-3.0.18 
PWD=/root/rpmbuild/BUILD/lin_tape-3.0.18 modules
make[2]: Entering directory `/usr/src/kernels/3.10.0-514.16.1.el7.x86_64'
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/join.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/lin_tape_scsi_config.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/lin_tape_scsi_tape.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/lin_tape_scsi_trace.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/lin_tape_ioctl_tape.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/lin_tape_ioctl_changer.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/lin_tape_extra_ioctl.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/resolve_ibm_hp.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/fo_util.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/upper.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/lower.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/intercept.o
  CC [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/trace.o
  LD [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/lin_tape.o
  LD [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/pfo.o
  Building modules, stage 2.
  MODPOST 2 modules
  CC      /root/rpmbuild/BUILD/lin_tape-3.0.18/lin_tape.mod.o
  LD [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/lin_tape.ko
  CC      /root/rpmbuild/BUILD/lin_tape-3.0.18/pfo.mod.o
  LD [M]  /root/rpmbuild/BUILD/lin_tape-3.0.18/pfo.ko
make[2]: Leaving directory `/usr/src/kernels/3.10.0-514.16.1.el7.x86_64'
make[1]: Leaving directory `/root/rpmbuild/BUILD/lin_tape-3.0.18'
mv lin_tape.ko bldtmp/lin_tape-3.10.0-514.16.1.el7.x86_64.ko
mv pfo.ko bldtmp/pfo-3.10.0-514.16.1.el7.x86_64.ko
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.sKSMy0
+ umask 022
+ cd /root/rpmbuild/BUILD
+ '[' /root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64 '!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64
++ dirname /root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64
+ mkdir -p /root/rpmbuild/BUILDROOT
+ mkdir /root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64
+ cd lin_tape-3.0.18
+ rm -rf /root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64
+ install -D -m 644 bldtmp/pfo-3.10.0-514.16.1.el7.x86_64.ko 
/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64/lib/modules/3.10.0-514.16.1.el7.x86_64/kernel/drivers/scsi/pfo.ko
+ install -D -m 644 bldtmp/lin_tape-3.10.0-514.16.1.el7.x86_64.ko 
/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64/lib/modules/3.10.0-514.16.1.el7.x86_64/kernel/drivers/scsi/lin_tape.ko
++ uname -m
+ PROC=x86_64
+ p=x86_64
+ '[' x86_64 == i386 ']'
+ '[' x86_64 == i586 ']'
+ '[' x86_64 == i686 ']'
+ install -D -m 700 lin_tape 
/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64/etc/init.d/lin_tape
+ install -D -m 666 IBM_tape.h 
/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64/usr/include/sys/IBM_tape.h
+ cd /root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64
+ ln -sf /etc/init.d/lin_tape /usr/sbin/rclin_tape
+ cd -
/root/rpmbuild/BUILD/lin_tape-3.0.18
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: lin_tape-3.0.18-1.x86_64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.xn2GUt
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd lin_tape-3.0.18
+ 
DOCDIR=/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64/usr/share/doc/lin_tape-3.0.18
+ export DOCDIR
+ /usr/bin/mkdir -p 
/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64/usr/share/doc/lin_tape-3.0.18
+ cp -pr lin_tape.ReadMe 
/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64/usr/share/doc/lin_tape-3.0.18
+ cp -pr lin_tape_daemon.ReadMe 
/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64/usr/share/doc/lin_tape-3.0.18
+ cp -pr COPYING 
/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64/usr/share/doc/lin_tape-3.0.18
+ cp -pr COPYING.LIB 
/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64/usr/share/doc/lin_tape-3.0.18
+ exit 0
Provides: lin_tape = 3.0.18-1 lin_tape(x86-64) = 3.0.18-1
Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh
Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) 
<= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(pre): /bin/sh
Requires(post): /bin/sh
Requires(preun): /bin/sh
Requires(postun): /bin/sh
Conflicts: IBMtape lin_tape < 3.0.18
Obsoletes: IBMtape
Checking for unpackaged file(s): /usr/lib/rpm/check-files 
/root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64
Wrote: /root/rpmbuild/RPMS/x86_64/lin_tape-3.0.18-1.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.zdLIGs
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd lin_tape-3.0.18
+ rm -rf /root/rpmbuild/BUILDROOT/lin_tape-3.0.18-1.x86_64
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.O7bNWX
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf lin_tape-3.0.18
+ exit 0

[root@centos7 ~]# yum remove  lin_\*
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package lin_tape.x86_64 0:3.0.10-1 will be erased
---> Package lin_taped.x86_64 0:3.0.10-1 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================
 Package                Arch                Version               Repository    
          Size
===============================================================================================
Removing:
 lin_tape               x86_64              3.0.10-1              installed     
         3.3 M
 lin_taped              x86_64              3.0.10-1              installed     
         170 k

Transaction Summary
===============================================================================================
Remove  2 Packages

Installed size: 3.5 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Shutting down lin_tape... lin_taped unloaded
  Erasing    : lin_taped-3.0.10-1.x86_64                                        
           1/2
Shutting down lin_tape...
  Erasing    : lin_tape-3.0.10-1.x86_64                                         
           2/2
  Verifying  : lin_taped-3.0.10-1.x86_64                                        
           1/2
  Verifying  : lin_tape-3.0.10-1.x86_64                                         
           2/2

Removed:
  lin_tape.x86_64 0:3.0.10-1                    lin_taped.x86_64 0:3.0.10-1

Complete!

[root@centos7 ~]# yum -y install 
/root/rpmbuild/RPMS/x86_64/lin_tape-3.0.18-1.x86_64.rpm 
lin_taped-3.0.18-rhel7.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
Examining /root/rpmbuild/RPMS/x86_64/lin_tape-3.0.18-1.x86_64.rpm: 
lin_tape-3.0.18-1.x86_64
Marking /root/rpmbuild/RPMS/x86_64/lin_tape-3.0.18-1.x86_64.rpm to be installed
Examining lin_taped-3.0.18-rhel7.x86_64.rpm: lin_taped-3.0.18-1.x86_64
Marking lin_taped-3.0.18-rhel7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package lin_tape.x86_64 0:3.0.18-1 will be installed
---> Package lin_taped.x86_64 0:3.0.18-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================
 Package          Arch          Version            Repository                   
          Size
===============================================================================================
Installing:
 lin_tape         x86_64        3.0.18-1           /lin_tape-3.0.18-1.x86_64    
         5.0 M
 lin_taped        x86_64        3.0.18-1           
/lin_taped-3.0.18-rhel7.x86_64        171 k

Transaction Summary
===============================================================================================
Install  2 Packages

Total size: 5.1 M
Installed size: 5.1 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : lin_tape-3.0.18-1.x86_64                                         
           1/2
Starting lin_tape...
lin_tape loaded
  Installing : lin_taped-3.0.18-1.x86_64                                        
           2/2
Starting lin_tape...
lin_taped loaded
  Verifying  : lin_taped-3.0.18-1.x86_64                                        
           1/2
  Verifying  : lin_tape-3.0.18-1.x86_64                                         
           2/2

Installed:
  lin_tape.x86_64 0:3.0.18-1                    lin_taped.x86_64 0:3.0.18-1

Complete!
[root@centos7 ~]#


-- 
Best regards / Cordialement / مع تحياتي
Erwann SIMON

----- Mail original -----
De: "Erwann SIMON" <erwann.simon AT free DOT fr>
À: "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
Envoyé: Mardi 28 Mars 2017 06:25:01
Objet: Re: [ADSM-L] Fun with lin_tape and RHEL 6 latest kernel

Hi Zoltan,

I'm having the same problem with 3.0.12 and 3.0.16 (but 3.0.10 compiles).

[root@centos7 ~]# rpmbuild --rebuild lin_tape-3.0.12-1.src.rpm
[...]
/root/rpmbuild/BUILD/lin_tape-3.0.12/stmp.c:480:4: error: too few arguments to 
function '__scsi_print_sense'
    __scsi_print_sense(name, SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
    ^
In file included from /root/rpmbuild/BUILD/lin_tape-3.0.12/stmp.c:79:0:
include/scsi/scsi_dbg.h:20:13: note: declared here
 extern void __scsi_print_sense(const struct scsi_device *, const char *name,
             ^
make[3]: *** [/root/rpmbuild/BUILD/lin_tape-3.0.12/stmp.o] Error 1
make[2]: *** [_module_/root/rpmbuild/BUILD/lin_tape-3.0.12] Error 2
make[2]: Leaving directory `/usr/src/kernels/3.10.0-514.10.2.el7.x86_64'
make[1]: *** [lin_tape.ko] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/lin_tape-3.0.12'
make: *** [bldtmp/lin_tape-3.10.0-514.10.2.el7.x86_64.ko] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.JH53pz (%build)


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


[root@centos7 ~]# rpmbuild --rebuild lin_tape-3.0.16-1.src.rpm
[...]        ^
/root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:480:4: error: too few arguments to 
function '__scsi_print_sense'
    __scsi_print_sense(name, SRpnt->sense, SCSI_SENSE_BUFFERSIZE);
    ^
In file included from /root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.c:79:0:
include/scsi/scsi_dbg.h:20:13: note: declared here
 extern void __scsi_print_sense(const struct scsi_device *, const char *name,
             ^
make[3]: *** [/root/rpmbuild/BUILD/lin_tape-3.0.16/stmp.o] Error 1
make[2]: *** [_module_/root/rpmbuild/BUILD/lin_tape-3.0.16] Error 2
make[2]: Leaving directory `/usr/src/kernels/3.10.0-514.10.2.el7.x86_64'
make[1]: *** [lin_tape.ko] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/lin_tape-3.0.16'
make: *** [bldtmp/lin_tape-3.10.0-514.10.2.el7.x86_64.ko] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.0jmDhV (%build)


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






-- 
Best regards / Cordialement / مع تحياتي
Erwann SIMON

----- Mail original -----
De: "Zoltan Forray" <zforray AT VCU DOT EDU>
À: ADSM-L AT VM.MARIST DOT EDU
Envoyé: Jeudi 23 Mars 2017 19:05:43
Objet: [ADSM-L] Fun with lin_tape and RHEL 6 latest kernel

Just spent the better part of 4-hours trying to patch my 6-RHEL 6 servers
with issues caused by the latest kernel (we are required to patch to the
latest, every month) and the latest lin_tape driver.

RHEL 6 KERNEL=2.6.32-696.el6.x86_64  -  lin_tape 3.0.16 would not rpmbuild
successfully.  Fails with:

*make: *** [bldtmp/lin_tape-2.6.32-696.el6.x86_64.ko] Error 2*
*error: Bad exit status from /var/tmp/rpm-tmp.PGuVC0 (%build)*

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

So, went out looking and found lin_tape 3.0.18.  No mention of kernel
compatibility updates (as previous levels have said) and the 2-changes in
the readme didn't sound like anything I needed/wanted and was
engineering-speak, anyway.

While lin_tape 3.0.18 rpmbuild's clean/no errors it introduces a new
problem/error.

ANR1819E Permission denial to device /dev/IBMchanger6.

After finding docs on the permissions error that said to chmod r+aw to the
/dev entry (which got rid of the "permissions" problem - never had to do
that before), still got all kinds of errors and TSM server "internal
failures" and it telling me the library needed auditing, etc.

So we have backed off both the kernel level and lin_tape driver level!

Anyone else have these kinds of adventures with lin_tape?



--
*Zoltan Forray*
Spectrum Protect (p.k.a. TSM) Software & Hardware Administrator
Xymon Monitor Administrator
VMware Administrator
Virginia Commonwealth University
UCC/Office of Technology Services
www.ucc.vcu.edu
zforray AT vcu DOT edu - 804-828-4807
Don't be a phishing victim - VCU and other reputable organizations will
never use email to request that you reply with your password, social
security number or confidential personal information. For more details
visit http://infosecurity.vcu.edu/phishing.html

<Prev in Thread] Current Thread [Next in Thread>