centos 6.4x64 + TSM 7.1 + lin_tape 2.3.0 + mhVTL 1.4.10 : working

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

centos 6.4x64 + TSM 7.1 + lin_tape 2.3.0 + mhVTL 1.4.10 : working

davidpo
Hi,
First, thanks for your great work on mhVTL.

I'd like to share some informations to make it working :
I skip the compilation of all kmod for centos 6.4x64 last kernel.

Here is some config. to make it working :

For kmod 'lin_tape', add the following line to your modprobre.d : '/etc/modprobe.d/lin_tape.conf' :
options lin_tape tape_reserve_type=persistent

I play with some udev rules for my path in TSM : '/etc/udev/rules.d/99-ibm-lin_tape.rules' :
## IBM Changer : 3584L22
KERNEL=="IBMchanger1", SUBSYSTEM=="lin_tape", SYMLINK="lin_tape/IBMchanger1"
## IBM Tape
KERNEL=="IBMtape*", SUBSYSTEM=="lin_tape", ATTR{serial_num}=="60020100", SYMLINK="lin_tape/IBMtape4"
KERNEL=="IBMtape*", SUBSYSTEM=="lin_tape", ATTR{serial_num}=="60020101", SYMLINK="lin_tape/IBMtape5"
KERNEL=="IBMtape*", SUBSYSTEM=="lin_tape", ATTR{serial_num}=="60020102", SYMLINK="lin_tape/IBMtape6"
KERNEL=="IBMtape*", SUBSYSTEM=="lin_tape", ATTR{serial_num}=="60020103", SYMLINK="lin_tape/IBMtape7"

The serial number of the library is not found by TSM, but it's working without error.
udevadm info -a -n /dev/IBMchanger1 did not display the serial:
    ATTRS{vendor}=="IBM     "
    ATTRS{model}=="03584L22        "
    ATTRS{rev}=="4.02"

The node name for tape is not always good in the udevadm info, it should be "NAA: 60:02:35:84:22:02:01:00", so I use the serial number in udev rules
udevadm info -a -n /dev/IBMtape4 'bad node name':
    ATTR{serial_num}=="60020100  "
    ATTR{ww_node_name}=="0x5002358422020100"
    ATTRS{vendor}=="IBM     "
    ATTRS{model}=="ULT3580-TD5     "
    ATTRS{rev}=="A3K6"

For LTO5 and up, I did not find a way to skip the 'append-only' error in default tsm config, I try
the command 'vtlcmd  61 Append Only Yes' too, but without succes.
So, you must set an option in TSM :
CheckTapePos                  TSMOnly
or
CheckTapePos                  No

----

my mhvtl device conf is basic:
## IBM 3584L22

Library: 60 CHANNEL: 02 TARGET: 00 LUN: 00
 Vendor identification: IBM
 Product identification: 03584L22
 Unit serial number: 60020000
 Product revision level: 4.02
 NAA: 60:02:35:84:22:02:00:00
 Home directory: /opt/data/tsm_storage/IBM_03584L22__60010000
 PERSIST: False
 Backoff: 400
 fifo: /var/tmp/mhvtl

Drive: 61 CHANNEL: 02 TARGET: 01 LUN: 00
 Library ID: 60 Slot: 01
 Vendor identification: IBM
 Product identification: ULT3580-TD5
 Product revision level: A3K6
 Unit serial number: 60020100
 NAA: 60:02:35:84:22:02:01:00
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400
 fifo: /var/tmp/mhvtl

Drive: 62 CHANNEL: 02 TARGET: 01 LUN: 01
 Library ID: 60 Slot: 02
 Vendor identification: IBM
 Product identification: ULT3580-TD5
 Product revision level: A3K6
 Unit serial number: 60020101
 NAA: 60:02:35:84:22:02:01:01
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400
 fifo: /var/tmp/mhvtl

Drive: 63 CHANNEL: 02 TARGET: 01 LUN: 02
 Library ID: 60 Slot: 03
 Vendor identification: IBM
 Product identification: ULT3580-TD5
 Product revision level: A3K6
 Unit serial number: 60020102
 NAA: 60:02:35:84:22:02:01:02
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400
 fifo: /var/tmp/mhvtl

Drive: 64 CHANNEL: 02 TARGET: 01 LUN: 03
 Library ID: 60 Slot: 04
 Vendor identification: IBM
 Product identification: ULT3580-TD5
 Product revision level: A3K6
 Unit serial number: 60020103
 NAA: 60:02:35:84:22:02:01:03
 Compression: factor 1 enabled 1
 Compression type: lzo
 Backoff: 400
 fifo: /var/tmp/mhvtl