Success: TSM 5.5.4 + mhvtl-0.18-11 (** UPDATED)

classic Classic list List threaded Threaded
Locked 1 message Options
Reply | Threaded
Open this post in threaded view
|

Success: TSM 5.5.4 + mhvtl-0.18-11 (** UPDATED)

[nia]
Administrator

 Success: TSM 5.5.4 + mhvtl-0.18-11 (** UPDATED)

Postby nia » Sat Mar 13, 2010 1:51 pm

I was able to perform successful backup and restore testing with TSM v5.5.4. :D

I used this release of MHVTL 0.18-11 - Dated 09/23/2010 : http://sites.google.com/site/linuxvtl2/mhvtl-2010-09-23.tgz?attredirects=0

I am using MHVTL via iscsi-scst target see my post here: viewtopic.php?p=400#p400

CODE: SELECT ALL
[2:6:0:0]    mediumx STK      L700             3.14  /dev/sch6  /dev/sg57
[2:6:1:0]    tape    STK      T10000A          1.46  /dev/st21  /dev/sg25
[2:6:2:0]    tape    STK      T10000A          1.46  /dev/st22  /dev/sg26
[2:6:3:0]    tape    STK      T10000A          1.46  /dev/st23  /dev/sg27
[2:6:4:0]    tape    STK      T10000A          1.46  /dev/st24  /dev/sg28
[2:6:5:0]    tape    STK      T10000A          1.46  /dev/st25  /dev/sg29



I used this in device.conf:
-------- -------------------- -------------------------------------------------
CODE: SELECT ALL
Library: 60 CHANNEL: 06 TARGET: 00 LUN: 00
Vendor identification: STK
Product identification: L700
Product revision level: 3.14
Unit serial number: 00103800
NAA: 60:22:33:44:ab:06:00:00

Drive: 61 CHANNEL: 06 TARGET: 01 LUN: 00
Library ID: 60 Slot: 01
Vendor identification: STK
Product identification: T10000A
Product revision level: 1.46
Unit serial number: 04003291
NAA: 60:22:33:44:ab:06:01:00
Compression: factor 1 enabled 1

Drive: 62 CHANNEL: 06 TARGET: 02 LUN: 00
Library ID: 60 Slot: 02
Vendor identification: STK
Product identification: T10000A
Product revision level: 1.46
Unit serial number: 04003292
NAA: 60:22:33:44:ab:06:02:00
Compression: factor 1 enabled 1

Drive: 63 CHANNEL: 06 TARGET: 03 LUN: 00
Library ID: 60 Slot: 03
Vendor identification: STK
Product identification: T10000A
Product revision level: 1.46
Unit serial number: 04003293
NAA: 60:22:33:44:ab:06:03:00
Compression: factor 1 enabled 1

Drive: 64 CHANNEL: 06 TARGET: 04 LUN: 00
Library ID: 60 Slot: 04
Vendor identification: STK
Product identification: T10000A
Product revision level: 1.46
Unit serial number: 04003294
NAA: 60:22:33:44:ab:06:04:00
Compression: factor 1 enabled 1

Drive: 65 CHANNEL: 06 TARGET: 05 LUN: 00
Library ID: 60 Slot: 05
Vendor identification: STK
Product identification: T10000A
Product revision level: 1.46
Unit serial number: 04003295
NAA: 60:22:33:44:ab:06:05:00
Compression: factor 1 enabled 1


-------- -------------------- -------------------------------------------------
My library_contents.60 looks like this:

CODE: SELECT ALL
Drive 1:
Drive 2:
Drive 3:
Drive 4:
Drive 5:

Picker 1:

MAP 1:

Slot 1: STK001TA
Slot 2: STK002TA
Slot 3: STK003TA
Slot 4: STK004TA
Slot 5: STK005TA
Slot 6: STK006TA
Slot 7: STK007TA
Slot 8: STK008TA
Slot 9: STK009TA
.
.
.



-------- -------------------- -------------------------------------------------
I did the following before proceeding to configure in TSM:
CODE: SELECT ALL
#/opt/tivoli/tsm/devices/bin/autoconf

ls -latr /dev/tsmscsi/
lrwxrwxrwx  1 root root    8 Sep 15 00:13 lb0 -> /dev/sg57
lrwxrwxrwx  1 root root    8 Sep 15 00:13 mt0 -> /dev/sg25
lrwxrwxrwx  1 root root    8 Sep 15 00:13 mt1 -> /dev/sg26
lrwxrwxrwx  1 root root    8 Sep 15 00:13 mt2 -> /dev/sg27
lrwxrwxrwx  1 root root    8 Sep 15 00:13 mt3 -> /dev/sg28
lrwxrwxrwx  1 root root    8 Sep 15 00:13 mt4 -> /dev/sg29



This is what I did in TSM:

CODE: SELECT ALL
DEFINE Library L700 libtype=scsi serial=autodetect AutoLabel=yes RelabelScratch=yes

DEFINE Devc L700 library=L700 devt=ECARTRIDGE estcapacity=2048m

DEFINE stgp mhvtl L700 maxscr=200 pooltype=copy

DEFINE PATH TSM L700 SRCType=SERVER DESTType=LIBRary Device=/dev/tsmscsi/lb0 ONLine=yes

DEFINE drive L700 drive1 serial=autodetect element=1 online=yes
DEFINE drive L700 drive2 serial=autodetect element=2 online=yes
DEFINE drive L700 drive3 serial=autodetect element=3 online=yes
DEFINE drive L700 drive4 serial=autodetect element=4 online=yes
DEFINE drive L700 drive5 serial=autodetect element=5 online=yes

DEFINE PATH TSM drive1 SRCType=SERVER DESTType=drive LIBRary=L700 Device=/dev/tsmscsi/mt0 ONLine=yes
DEFINE PATH TSM drive2 SRCType=SERVER DESTType=drive LIBRary=L700 Device=/dev/tsmscsi/mt1 ONLine=yes
DEFINE PATH TSM drive3 SRCType=SERVER DESTType=drive LIBRary=L700 Device=/dev/tsmscsi/mt2 ONLine=yes
DEFINE PATH TSM drive4 SRCType=SERVER DESTType=drive LIBRary=L700 Device=/dev/tsmscsi/mt3 ONLine=yes
DEFINE PATH TSM drive5 SRCType=SERVER DESTType=drive LIBRary=L700 Device=/dev/tsmscsi/mt4 ONLine=yes

AUDIT LIBRary L700 CHECKLabel=yes

CHECKIn LIBVolume L700 CHECKLabel=barcode SEARCH=Yes status=scratch devt=ECARTRIDGE


In TSM, I now have this:

CODE: SELECT ALL
tsm: TSM01>q dr L700

Library Name     Drive Name       Device Type     On-Line
------------     ------------     -----------     -------------------
L700             DRIVE1           ECARTRIDGE      Yes
L700             DRIVE2           ECARTRIDGE      Yes
L700             DRIVE3           ECARTRIDGE      Yes
L700             DRIVE4           ECARTRIDGE      Yes
L700             DRIVE5           ECARTRIDGE      Yes

--------     --------------------     -------------------------------------------------
tsm: TSM01>q dr L700 DRIVE1 f=d

                                Library Name: L700
                                  Drive Name: DRIVE1
                                 Device Type: ECARTRIDGE
                                     On-Line: Yes
                                Read Formats: T10000A-C,T10000A
                               Write Formats: T10000A-C,T10000A
                                     Element: 1
                                 Drive State: EMPTY
                                 Volume Name:
                                Allocated to:
                                         WWN: 60223344AB060100
                               Serial Number: 04003291
              Last Update by (administrator): ADMIN
                       Last Update Date/Time: 09/06/2010 19:36:34
Cleaning Frequency (Gigabytes/ASNEEDED/NONE): NONE

--------     --------------------     -------------------------------------------------
tsm: TSM01>q libv l700

Library Name     Volume Name     Status               Owner          Last Use      Home        Device
                                                                                   Element     Type
------------     -----------     ----------------     ----------     ---------     -------     ------
L700             STK001TA        Scratch                             Data          1,024       ECART-
                                                                                                RIDGE
L700             STK002TA        Scratch                             Data          1,025       ECART-
                                                                                                RIDGE
L700             STK003TA        Scratch                             Data          1,026       ECART-
                                                                                                RIDGE
L700             STK004TA        Scratch                             Data          1,027       ECART-
                                                                                                RIDGE
.
.
.
--------     --------------------     -------------------------------------------------


CODE: SELECT ALL

tsm: TSM01>q proc

Process     Process Description      Status
  Number
--------     --------------------     -------------------------------------------------
      40     Backup Storage Pool      Primary Pool FILE, Copy Pool MHVTL, Files Backed
                                       Up: 64, Bytes Backed Up: 46,068,492, Unreadable
                                       Files: 0, Unreadable Bytes: 0. Current Physical
                                       File (bytes): 28,742,506 Current input volume:
                                       /tsmdata/00000054.BFS. Current output volume:
                                       STK001TA.

tsm: TSM01>q mount
ANR8330I ECARTRIDGE volume STK001TA is mounted R/W in drive DRIVE1 (/dev/tsmscsi/mt0), status: IN USE.



Using IBM Library and LTO drive emulation:

device.conf:

CODE: SELECT ALL
Library: 150 CHANNEL: 17 TARGET: 00 LUN: 00
Vendor identification: IBM
Product identification: 03584L32
Product revision level: 4.02
Unit serial number: 9890400
NAA: 150:22:33:44:ab:00:00:00

Drive: 151 CHANNEL: 17 TARGET: 01 LUN: 00
Library ID: 150 Slot: 01
Vendor identification: IBM
Product identification: ULT3580-TD1
Product revision level: 0BN1
Unit serial number: 9825111
NAA: 150:22:33:44:ab:00:01:00
Compression: factor 1 enabled 1

Drive: 152 CHANNEL: 17 TARGET: 02 LUN: 00
Library ID: 150 Slot: 02
Vendor identification: IBM
Product identification: ULT3580-TD1
Product revision level: 0BN1
Unit serial number: 9825112
NAA: 150:22:33:44:ab:00:02:00
Compression: factor 1 enabled 1

Drive: 153 CHANNEL: 17 TARGET: 03 LUN: 00
Library ID: 150 Slot: 03
Vendor identification: IBM
Product identification: ULT3580-TD1
Product revision level: 0BN1
Unit serial number: 9825113
NAA: 150:22:33:44:ab:00:03:00
Compression: factor 1 enabled 1

Drive: 154 CHANNEL: 17 TARGET: 04 LUN: 00
Library ID: 150 Slot: 04
Vendor identification: IBM
Product identification: ULT3580-TD1
Product revision level: 0BN1
Unit serial number: 9825114
NAA: 150:22:33:44:ab:00:04:00
Compression: factor 1 enabled 1

Drive: 155 CHANNEL: 17 TARGET: 05 LUN: 00
Library ID: 150 Slot: 05
Vendor identification: IBM
Product identification: ULT3580-TD1
Product revision level: 0BN1
Unit serial number: 9825115
NAA: 150:22:33:44:ab:00:05:00
Compression: factor 1 enabled 1



library_contents.150
CODE: SELECT ALL
Drive 1:
Drive 2:
Drive 3:
Drive 4:
Drive 5:

Picker 1:

MAP 1:
MAP 2:
MAP 3:
MAP 4:
MAP 5:


Slot 1: ULT001L1
Slot 2: ULT002L1
Slot 3: ULT003L1
Slot 4: ULT004L1
Slot 5: ULT005L1
Slot 6: ULT006L1
Slot 7: ULT007L1
Slot 8: ULT008L1
Slot 9: ULT009L1
Slot 10: ULT010L1
Slot 11: ULT011L1
Slot 12: ULT012L1
Slot 13: ULT013L1
Slot 14: ULT014L1
Slot 15: ULT015L1
Slot 16: ULT016L1
.
.


CODE: SELECT ALL
[2:17:0:0]   mediumx IBM      03584L32         4.02  /dev/sch16  /dev/sg72
[2:17:1:0]   tape    IBM      ULT3580-TD1      0BN1  /dev/st47  /dev/sg51
[2:17:2:0]   tape    IBM      ULT3580-TD1      0BN1  /dev/st48  /dev/sg52
[2:17:3:0]   tape    IBM      ULT3580-TD1      0BN1  /dev/st49  /dev/sg53
[2:17:4:0]   tape    IBM      ULT3580-TD1      0BN1  /dev/st50  /dev/sg54
[2:17:5:0]   tape    IBM      ULT3580-TD1      0BN1  /dev/st51  /dev/sg55


Installed IBM Lin Tape driver: See viewtopic.php?p=312#p312

CODE: SELECT ALL
~ # ls -als /dev/IBM*
0 crw------- 1 root root 253, 2048 Sep 27 23:39 /dev/IBMchanger0
0 crw------- 1 root root 253,    0 Sep 27 23:39 /dev/IBMtape0
0 crw------- 1 root root 253, 1024 Sep 27 23:39 /dev/IBMtape0n
0 crw------- 1 root root 253,    1 Sep 27 23:39 /dev/IBMtape1
0 crw------- 1 root root 253, 1025 Sep 27 23:39 /dev/IBMtape1n
0 crw------- 1 root root 253,    2 Sep 27 23:39 /dev/IBMtape2
0 crw------- 1 root root 253, 1026 Sep 27 23:39 /dev/IBMtape2n
0 crw------- 1 root root 253,    3 Sep 27 23:39 /dev/IBMtape3
0 crw------- 1 root root 253, 1027 Sep 27 23:39 /dev/IBMtape3n
0 crw------- 1 root root 253,    4 Sep 27 23:39 /dev/IBMtape4
0 crw------- 1 root root 253, 1028 Sep 27 23:39 /dev/IBMtape4n


In TSM:
CODE: SELECT ALL

DEFINE Library 03584L32 libtype=scsi serial=autodetect AutoLabel=yes RelabelScratch=yes

DEFINE Devc 03584L32 library=03584L32 devt=lto estcapacity=2048m

DEFINE stgp mhvtl-lto 03584L32 maxscr=400 pooltype=copy

DEFINE PATH TSM01 03584L32 SRCType=SERVER DESTType=LIBRary Device=/dev/IBMchanger0 ONLine=yes

DEFINE drive 03584L32 drive1 serial=autodetect element=1 online=yes
DEFINE drive 03584L32 drive2 serial=autodetect element=2 online=yes
DEFINE drive 03584L32 drive3 serial=autodetect element=3 online=yes
DEFINE drive 03584L32 drive4 serial=autodetect element=4 online=yes
DEFINE drive 03584L32 drive5 serial=autodetect element=5 online=yes

DEFINE PATH TSM01 drive1 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape0 ONLine=yes
DEFINE PATH TSM01 drive2 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape1 ONLine=yes
DEFINE PATH TSM01 drive3 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape2 ONLine=yes
DEFINE PATH TSM01 drive4 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape3 ONLine=yes
DEFINE PATH TSM01 drive5 SRCType=SERVER DESTType=drive LIBRary=03584L32 Device=/dev/IBMtape4 ONLine=yes

AUDIT LIBRary 03584L32 CHECKLabel=yes

CHECKIn LIBVolume 03584L32 CHECKLabel=barcode SEARCH=Yes status=scratch devt=lto


CODE: SELECT ALL
tsm: TSM01>q dr 03584L32

Library Name     Drive Name       Device Type     On-Line
------------     ------------     -----------     -------------------
03584L32         DRIVE1           LTO             Yes
03584L32         DRIVE2           LTO             Yes
03584L32         DRIVE3           LTO             Yes
03584L32         DRIVE4           LTO             Yes
03584L32         DRIVE5           LTO             Yes


CODE: SELECT ALL
tsm: TSM01>q dr 03584L32 DRIVE1 f=d

                                Library Name: 03584L32
                                  Drive Name: DRIVE1
                                 Device Type: LTO
                                     On-Line: Yes
                                Read Formats: ULTRIUMC,ULTRIUM
                               Write Formats: ULTRIUMC,ULTRIUM
                                     Element: 1
                                 Drive State: EMPTY
                                 Volume Name:
                                Allocated to:
                                         WWN: 5235313131202020
                               Serial Number: 9825111
              Last Update by (administrator): ADMIN
                       Last Update Date/Time: 09/27/2010 23:37:48
Cleaning Frequency (Gigabytes/ASNEEDED/NONE): NONE



CODE: SELECT ALL
tsm: TSM01>q libv 03584L32

Library Name     Volume Name     Status               Owner          Last Use      Home        Device
                                                                                   Element     Type
------------     -----------     ----------------     ----------     ---------     -------     ------
03584L32         ULT001L1        Scratch                                           1,024       LTO
03584L32         ULT002L1        Scratch                                           1,025       LTO
03584L32         ULT003L1        Scratch                                           1,026       LTO
03584L32         ULT004L1        Scratch                                           1,027       LTO
03584L32         ULT005L1        Scratch                                           1,028       LTO
03584L32         ULT006L1        Scratch                                           1,029       LTO
03584L32         ULT007L1        Scratch                                           1,030       LTO
03584L32         ULT008L1        Scratch                                           1,031       LTO
03584L32         ULT009L1        Scratch                                           1,032       LTO
03584L32         ULT010L1        Scratch                                           1,033       LTO
03584L32         ULT011L1        Scratch                                           1,034       LTO
.
.


CODE: SELECT ALL
tsm: TSM01>q proc

Process     Process Description      Status
  Number
--------     --------------------     -------------------------------------------------
       4     Backup Storage Pool      Primary Pool FILEPOOL, Copy Pool MHVTL, Files
                                       Backed Up: 1706, Bytes Backed Up: 59,116,161,
                                       Unreadable Files: 0, Unreadable Bytes: 0.
                                       Current Physical File (bytes): 23,025,126
                                       Current input volume: /tsmdata/00000000.BFS.
                                       Current output volume: ULT001L1.
       5     Backup Storage Pool      Primary Pool FILEPOOL, Copy Pool MHVTL, Files
                                       Backed Up: 3246, Bytes Backed Up: 19,506,346,
                                       Unreadable Files: 0, Unreadable Bytes: 0.
                                       Current Physical File (bytes): 436,914 Current
                                       input volume: /tsmdata/00000001.BFS. Current
                                       output volume: ULT005L1.
       6     Backup Storage Pool      Primary Pool FILEPOOL, Copy Pool MHVTL, Files
                                       Backed Up: 4191, Bytes Backed Up: 24,917,659,
                                       Unreadable Files: 0, Unreadable Bytes: 0.
                                       Current Physical File (bytes): 14,427,351
                                       Current input volume: /tsmdata/00000002.BFS.
                                       Current output volume: ULT002L1.
       7     Backup Storage Pool      Primary Pool FILEPOOL, Copy Pool MHVTL, Files
                                       Backed Up: 125, Bytes Backed Up: 25,724,323,
                                       Unreadable Files: 0, Unreadable Bytes: 0.
                                       Current Physical File (bytes): 25,331,104
                                       Current input volume: /tsmdata/00000003.BFS.
                                       Current output volume: ULT003L1.
       8     Backup Storage Pool      Primary Pool FILEPOOL, Copy Pool MHVTL, Files
                                       Backed Up: 256, Bytes Backed Up: 22,837,595,
                                       Unreadable Files: 0, Unreadable Bytes: 0.
                                       Current Physical File (bytes): 25,276,247
                                       Current input volume: /tsmdata/00000004.BFS.
                                       Current output volume: ULT004L1.
~nia