TSM lan free backup using IBM tape error lin_tape 9:0:1:0: reservation conflict

Latest response

Hello,
I have RHEL 5.10 and i try to perform lan free backup using TSM client and Tivoli storage agent.
I installed as well lin_tape drive but same error on each check:

lin_tape 9:0:1:0: reservation conflict

Tapes are maped by system like below, in /dev/tape/by-id/, so I suppose i have to create persistem rules, to be used as /dev/IBMtapeX as in this format are defined in TSM server.

ls -la /dev/tape/by-id/
lrwxrwxrwx 1 root root 10 Sep 20 11:35 scsi-3500507630f324804-sg -> ../../sg85
lrwxrwxrwx 1 root root 10 Sep 20 11:35 scsi-3500507630f324806-sg -> ../../sg86
lrwxrwxrwx 1 root root 10 Sep 20 11:35 scsi-3500507630f324808-sg -> ../../sg87

Does have somebody a clue how it should be done?
Thank you

Responses

any clue about how links in udev rules need to be created? thank you

The issue was resolved like that:
1. Download IBM Tape drivers lin_tape-2.9.4-rhel5.x86_64 - last version from http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent=Tape%2Bdrivers%2Band%2Bsoftware&product=ibm/Storage_Tape/Tape+device+drivers&release=1.0&platform=Linux+64-bit,x86_64&function=all
lin_tape-2.9.1-1.src.rpm
lin_taped-2.9.1-rhel5.x86_64.rpm
2. /usr/bin/rpmbuild --rebuild lin_tape-.src.rpm (need gcc and kernel-devel packages)
3. install it: rpm -ivh /usr/src/redhat/RPMS/x86_64/lin_tape-
.rpm
4. add module: modprobe lin_tape
5. make tapes persistents by adding following lines in /etc/modprobe.d/lin_tape.conf:
options lin_tape tape_reserve_type=persistent
options lin_tape persistent_n_device=1
options lin_tape lin_tape_debug=0
6. check drivers persistency in cat /proc/scsi/scsi|grep -i tape or edit /etc/udev/rules.d/98-lin_tape.rules to have lines for all tapes similar with the one below:
KERNEL=="IBMtape*[!n]", SYSFS{serial_num}=="00078AA930",SYMLINK="lin_tape/by-id/lin_tape1_00078AA930"
where - 00078AA930 is serial no. of each tape.
7 tune OS for following params (mine were for 32GB RAM and 1GB network card):
- kernel params:
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_retries2=7
net.ipv4.tcp_syn_retries=1
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.tcp_mem = 4096 87380 16777216
net.ipv4.udp_mem = 4096 87380 16777216
- network txqueuelen:5000
- open files for root and oracle 16384.