How to Document for Rebuild and reinstall and Upgrade lin_tape to for LanFree backup on Linux 6.x

Old lin_tape driver and lin_taped daemon are installed on RHEL V6.x. TSM LanFree backup works well prior to lin_tape upgrade or OS kernel patch.

1.2. System preparation

Note:

1)      Make sure that it has good OS backup (/systemfiles/systembackup/systembackup.sh) via checking /var/log/systembackup.log.

           And 

2)      Please take OS snap shot if it is VM.

           And

3)      Please take OS imagecopy of AVAMAR.

 

Install necessary package:

yum install rpm-build

yum install gcc-c++*

yum install sg3_utils

 

[root@brs-bcclprapp01 ~]# yum list rpm-build gcc-c++* sg3_utils

…………….

gcc-c++.x86_64        4.4.7-4.el6             @rhel-x86_64-server-6

rpm-build.x86_64      4.8.0-37.el6            @rhel-x86_64-server-6

sg3_utils.x86_64      1.28-5.el6  @anaconda-RedHatEnterpriseLinux-201311111358.x86_64/6.5

 

Check Kernel headers and other packages, make sure they are same version.

rpm -qa|grep kernel

yum install kernel-headers

yum install kernel-devel

 

[root@brs-bcclprapp01 ~]# yum check-update

……

kernel.x86_64          2.6.32-431.20.5.el6            rhel-x86_64-server-6

kernel-firmware.noarch 2.6.32-431.20.5.el6            rhel-x86_64-server-6

kernel-headers.x86_64  2.6.32-431.20.5.el6            rhel-x86_64-server-6

……

 

Check Kernel headers and other packages again.

kernel.x86_64         2.6.32-431.23.3.el6             rhel-x86_64-server-6

kernel-devel.x86_64   2.6.32-431.23.3.el6             rhel-x86_64-server-6

kernel-firmware.noarch 2.6.32-431.23.3.el6            rhel-x86_64-server-6

kernel-headers.x86_64 2.6.32-431.23.3.el6             rhel-x86_64-server-6

perf.x86_64           2.6.32-431.23.3.el6             rhel-x86_64-server-6

 

[root@brs-bcclprapp01 ~]# yum update -x CentrifyDC

[root@brs-bcclprapp01 ~]# shutdown -r now

 

If lin_tape daemon is running, please stop it prior to upgrade.

/etc/init.d/lin_tape stop

rmmod lin_tape

 

1.4. Install new lin_tape driver and lin_taped daemon

Note: If OS kernel is upgraded to latest version, You may need to find where the original source package is and rebuild it via rpmbuild current lin_tape version  and reinstall it.

 

Check current lin_tape driver and lin_taped daemon.

[root@brs-bcclprapp01]# rpm -ql lin_tape

/etc/init.d/lin_tape

/lib/modules/2.6.32-358.23.2.el6.x86_64/kernel/drivers/scsi/lin_tape.ko

/usr/share/doc/lin_tape-2.5.0

/usr/share/doc/lin_tape-2.5.0/COPYING

/usr/share/doc/lin_tape-2.5.0/COPYING.LIB

/usr/share/doc/lin_tape-2.5.0/lin_tape_359X.ReadMe

/usr/share/doc/lin_tape-2.5.0/lin_tape_Ultrium.ReadMe

 

[root@brs-bcclprapp01]# rpm -ql lin_taped

/etc/ibmekm.conf

/etc/lin_taped.conf

/usr/bin/lin_taped

/usr/share/doc/lin_taped-2.5.0

/usr/share/doc/lin_taped-2.5.0/lin_taped.ReadMe

 

[root@brs-bcclprapp01 lin_tape_2.7]# rpm -aq |grep lin_tape

lin_taped-2.5.0-1.x86_64

lin_tape-2.5.0-1.x86_64

 

Create folder rhel6-3.0.10-1 under /systemfiles/lanfree/ibmtape/lintape

 

cd /systemfiles/lanfree/ibmtape/lin_tape

mkdir lin_tape-3.0.10-rhel6.x86_64

chmod 777 lin_tape-3.0.10-rhel6.x86_64

 

Upload lin_tape package to /systemfiles/lanfree/ibmtape/lin_tape/lin_tape-3.0.10-rhel6.x86_64

sshjbcclprmgt01 @ /ams/build/lanfree/ibmtape/lin_tape/lin_tape-3.0.10-rhel6.x86_64

 

[wpeng@sshjbcclprmgt01 ~]$

scp /ams/build/lanfree/ibmtape/lin_tape/lin_tape-3.0.10-rhel6.x86_64/* brs-bcclprapp01:/systemfiles/lanfree/ibmtape/lin_tape/lin_tape-3.0.10-rhel6.x86_64

 

Note: If you do not upgrade the lin_tape, please go to /systemfiles/lanfree/ibmtape/lin_tape and find out the current version of lin_tape source and rebuild it and reinstall it.

 

Note: Please get package from imcsm or share point or new ftp server or IBM WebSite.

 

1) imcsm:/dtisw/lanfree/ibmtape/lintape/rhel6-3.0.10-1

 

2) \\Sysdev-dms-2\ti_software\Linux\TSMLanFree\rhel6-3.0.10-1

 

3) INTBCCLINFTP01 (10.193.47.224): /home/PROD/lintape/rhel6-3.0.10-1

 

4) Recently the Bank had asked about having a supported version of lin_tape on RHEL 6.5. Testing was recently completed and version 3.0.10 of Lin_tape was published to IBM's Fix Central.

http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~ST~Tapedevicedriversandsoftware&product=ibm/Storage_Tape/Tape+device+drivers&release=1.0&platform=Linux&function=all#3.%20RHEL6

[root@brs-bcclprapp01 ~]#

cd /systemfiles/lanfree/ibmtape/lintape/lin_tape-3.0.10-rhel6.x86_64

[root@brs-bcclprapp01 ]# ls -l

total 432

-rw-r--r-- 1 root root  17987 Jul 28 21:50 GPL

-rw-rw-r-- 1 root root   2860 Jul 28 21:50 install.README

-rw-r--r-- 1 root root   2719 Jul 28 21:50 dlmgr.pro

-rw-rw-r-- 1 root root  26436 Jul 28 21:50 LGPL

-rw-rw-r-- 1 root root 306481 Jul 28 21:50 lin_tape-3.0.10-1.src.rpm

-rw-rw-r-- 1 root root  51100 Jul 28 21:50 lin_taped-3.0.10-rhel6.x86_64.rpm

-rw-rw-r-- 1 root root   9722 Jul 28 21:50 lin_taped.README

-rw-rw-r-- 1 root root  12352 Jul 28 21:50 lin_tape.fixlist

 

Run rpmbuild --rebuild

[root@brs-bcclprapp01]#

cd /systemfiles/lanfree/ibmtape/lin_tape/lin_tape-3.0.10-rhel6.x86_64

rpmbuild --rebuild lin_tape-3.0.10-1.src.rpm

 

Output from the build is printed to your screen. Near the end of the output, there is a line that indicates the filename and location of your binary RPM package. For example, a line similar to the following is output to your screen:

……

+ exit 0

Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/lin_tape-3.0.10-1.x86_64

Wrote: /root/rpmbuild/RPMS/x86_64/lin_tape-3.0.10-1.x86_64.rpm

Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.m6IxCJ

+ umask 022

+ cd /root/rpmbuild/BUILD

+ cd lin_tape-3.0.10

+ rm -rf /root/rpmbuild/BUILDROOT/lin_tape-3.0.10-1.x86_64

+ exit 0

Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.fd9OyA

+ umask 022

+ cd /root/rpmbuild/BUILD

+ rm -rf lin_tape-3.0.10

+ exit 0

 

Uninstall old/current lin_taped daemon and lin_tape

[root@brs-bcclprapp01 ]# rpm -ev lin_taped lin_tape

Shutting down lin_tape: lin_taped is not running!

Shutting down lin_tape:

ERROR: Module lin_tape does not exist in /proc/modules

 

Check if lin_taped and lin_tape have been uninstalled

[root@brs-bcclprapp01 ]# rpm -aq lin_taped lin_tape

[root@brs-bcclprapp01 ]#

 

Install new lin_tape driver

[root@brs-bcclprapp01 ]#

rpm -ivh /root/rpmbuild/RPMS/x86_64/lin_tape-3.0.10-1.x86_64.rpm

Preparing...                ########################################### [100%]

   1:lin_tape               ########################################### [100%]

Starting lin_tape:

lin_tape loaded

 

[root@brs-bcclprapp01 ]# rpm -ql lin_tape

/etc/init.d/lin_tape

/lib/modules/2.6.32-431.20.5.el6.x86_64/kernel/drivers/scsi/lin_tape.ko

/usr/share/doc/lin_tape-3.0.10

/usr/share/doc/lin_tape-3.0.10/COPYING

/usr/share/doc/lin_tape-3.0.10/COPYING.LIB

/usr/share/doc/lin_tape-3.0.10/lin_tape_359X.ReadMe

/usr/share/doc/lin_tape-3.0.10/lin_tape_Ultrium.ReadMe

 

Install new lin_taped deamon

[root@brs-bcclprapp01 ]#

rpm -ivh /systemfiles/lanfree/ibmtape/lin_tape/lin_tape-3.0.10-rhel6.x86_64/lin_taped-3.0.10-rhel6.x86_64.rpm

Preparing...                ########################################### [100%]

   1:lin_taped              ########################################### [100%]

Starting lin_tape:

lin_tape loaded

 

[root@brs-bcclprapp01 ]# rpm -ql lin_taped

/etc/ibmekm.conf

/etc/lin_taped.conf

/usr/bin/lin_taped

/usr/share/doc/lin_taped-3.0.10

/usr/share/doc/lin_taped-3.0.10/lin_taped.ReadMe

 

Verify new lin_tape and lin_taped deamon

[root@brs-bcclprapp01 ]# rpm -aq lin_taped lin_tape

lin_taped-3.0.10-1.x86_64

lin_tape-3.0.10-1.x86_64

 

[root@brs-bcclprapp01 ]# rpm -qi lin_taped lin_tape

Name        : lin_taped                    Relocations: (not relocatable)

Version     : 3.0.10                            Vendor: IBM

Release     : 1                             Build Date: Tue 17 May 2016 04:06:37 PM EDT

Install Date: Wed 10 Aug 2016 05:14:43 PM EDT      Build Host: piojo.storage.tucson.ibm.com

Group       : System Environment/Kernel     Source RPM: lin_taped-3.0.10-1.src.rpm

Size        : 174701                           License: Proprietary

Signature   : (none)

Packager    : IBM Tape SCSI Device Driver Development

Summary     : IBM Tape SCSI Device Driver Application/Daemon

Description :

The IBM Tape Device Driver product is a Linux device driver that

provides attachment for the IBM TotalStorage and System Storage

devices to Red Hat Enterprise Linux Server release 6.7

(Santiago) on x86_64 compatible platforms.

Name        : lin_tape                     Relocations: (not relocatable)

Version     : 3.0.10                            Vendor: IBM

Release     : 1                             Build Date: Wed 10 Aug 2016 05:06:26 PM EDT

Install Date: Wed 10 Aug 2016 05:14:05 PM EDT      Build Host: etl1scclprapp02.srv.bmogc.net

Group       : System Environment/Kernel     Source RPM: lin_tape-3.0.10-1.src.rpm

Size        : 3144800                          License: GPL

Signature   : (none)

Packager    : IBM Tape SCSI Device Driver Development

Summary     : IBM Tape SCSI Device Driver for Linux

Description :

The IBM Tape Device Driver, lin_tape, provides attachment and

advance functionality for use with IBM and other vendor tape

devices to Linux compatible platforms.

 

[root@brs-bcclprapp01 ]# /etc/init.d/lin_tape status

lin_taped is running, pid 9521.

 

 

[root@brs-bcclprapp01 ]# ps -ef |grep lin_tape

root      9521     1  0 22:56 ?        00:00:00 /usr/bin/lin_taped start

root     13491 31304  0 22:58 pts/0    00:00:00 grep lin_tape

Start ermm if ermm is installed and not up

[root@brs-bcclprapp01 bin]# cd /opt/IBM/ermm/bin; nohup ./ermmGenHDM &

[root@brs-bcclprapp01 bin]# ps -ef|grep ermm

root      4163 31304  0 23:13 pts/0    00:00:00 /usr/bin/perl ./ermmGenHDM

root     12818 31304  0 23:18 pts/0    00:00:00 grep ermm

[root@brs-bcclprapp01 ~]# ps -ef |grep sched

root     16226 14310  0 12:36 pts/0    00:00:00 grep sched

root     23093     1  0 12:00 ?        00:00:00 ./dsmc sched

[root@brs-bcclprapp01 ~]# ps -ef|grep dsmsta

root      6567     1  0 11:50 ?        00:00:00 ./dsmsta QUIET

root     16228 14310  0 12:36 pts/0    00:00:00 grep dsmsta

[root@brs-bcclprapp01 ~]# ps -ef|grep ermm

root      6562     1  0 11:50 ?        00:00:00 /usr/bin/perl ./ermmGenHDM

root     16233 14310  0 12:36 pts/0    00:00:00 grep ermm

[root@brs-bcclprapp01 ~]# ps -ef|grep lin_tape

root      2493     1  0 11:49 ?        00:00:00 /usr/bin/lin_taped start

root     17197 14310  0 12:37 pts/0    00:00:00 grep lin_tape

 

 

 

If TLSM is configured, you may have to re-populate the configuration:

Check if the configuration file has picked up default drives:

more /opt/IBM/ermm/conf/hdmdrive.cfg

.....

drive /dev/sg1,IBM,03592E06,0000078A59EF,0,0,0,0,/dev/sg1,/opt/IBM/ermm/bin/ermmTapeutil

drive /dev/sg3,IBM,03592E06,0000078A59FB,0,0,0,0,/dev/sg3,/opt/IBM/ermm/bin/ermmTapeutil

drive /dev/sg4,IBM,03592E06,0000078A59ED,0,0,0,0,/dev/sg4,/opt/IBM/ermm/bin/ermmTapeutil

drive /dev/sg5,IBM,03592E06,0000078A59FC,0,0,0,0,/dev/sg5,/opt/IBM/ermm/bin/ermmTapeutil

…..

 

Regenerate the drive configuration:

cd /opt/IBM/ermm/conf

mv hdmdrive.cfg  hdmdrive.cfg.old

cd /opt/IBM/ermm/bin

./ermmHDMRestart

 

Check the configuration:

more /opt/IBM/ermm/conf/hdmdrive.cfg

…..

drive /dev/IBMtape0,IBM,03592E06,0000078A59EF,0,0,0,0,/dev/IBMtape0,/opt/IBM/ermm/bin/ermmIbmutil

drive /dev/IBMtape1,IBM,03592E06,0000078A59FB,0,0,0,0,/dev/IBMtape1,/opt/IBM/ermm/bin/ermmIbmutil

drive /dev/IBMtape2,IBM,03592E06,0000078A59ED,0,0,0,0,/dev/IBMtape2,/opt/IBM/ermm/bin/ermmIbmutil

…..

 

 

[root@brs-bcclprapp01 bin]# cat /opt/tivoli/tsm/client/ba/bin/include.file

…..

include /data/.../*             60D_TP_MC

 

[root@brs-bcclprapp01 data]# dsmc inc "/data/*" -subdir=yes

IBM Tivoli Storage Manager

Command Line Backup-Archive Client Interface

  Client Version 6, Release 4, Level 0.7

  Client date/time: 07/28/2014 23:24:35

(c) Copyright by IBM Corporation and other(s) 1990, 2013. All Rights Reserved.

Node Name: BRS-BCCLPRAPP01

Session established with server TSMBC17: AIX

  Server Version 6, Release 3, Level 4.0

  Server date/time: 07/28/2014 23:24:36  Last access: 07/28/2014 23:01:38

 

Incremental backup of volume '/data/*'

<   32.03 KB> [  -]

Normal File-->        10,412,503 /data/test [Sent]

Successful incremental backup of '/data/*'

 

Total number of objects inspected:            5

Total number of objects backed up:            1

Total number of objects updated:              0

Total number of objects rebound:              0

Total number of objects deleted:              0

Total number of objects expired:              0

Total number of objects failed:               0

Total number of bytes inspected:          10.20 MB

Total number of bytes transferred:         9.93 MB

LanFree data bytes:                     9.93 MB

Data transfer time:                        0.73 sec

Network data transfer rate:           13,881.02 KB/sec

Aggregate data transfer rate:             90.45 KB/sec

Objects compressed by:                        0%

Total data reduction ratio:                2.62%

Elapsed processing time:               00:01:52

 

[root@brs-bcclprapp01 data]# dsmc restore /data/dsmerror.log

IBM Tivoli Storage Manager

Command Line Backup-Archive Client Interface

  Client Version 6, Release 4, Level 0.7

  Client date/time: 07/30/2014 11:37:25

(c) Copyright by IBM Corporation and other(s) 1990, 2013. All Rights Reserved.

 

Node Name: BRS-BCCLPRAPP01

Session established with server TSMBC17: AIX

  Server Version 6, Release 3, Level 4.0

  Server date/time: 07/30/2014 11:37:26  Last access: 07/30/2014 11:03:35

 

Restore function invoked.

 

<       0  B> [ - ]

Restoring         292,992 /data/dsmerror.log [Done]

Restore processing finished.

 

Total number of objects restored:             1

Total number of objects failed:               0

Total number of bytes transferred:       286.18 KB

LanFree data bytes:                   286.14 KB

Data transfer time:                        0.00 sec

Network data transfer rate:          662,455.24 KB/sec

Aggregate data transfer rate:              3.04 KB/sec

Elapsed processing time:               00:01:34

 

Post a Comment

Previous Post Next Post