TSM path to drive offline
[root@tsm00 ~]# ll /dev/tsmscsi/mt0 0 lrwxrwxrwx 1 root root 10 Aug 30 13:51 /dev/tsmscsi/mt0 -> /dev/sg112 [root@tsm00 ~]# ll /dev/sg112 ls: cannot access /dev/sg112: No such file or directory [root@tsm00 ~]# lsscsi ... [7:0:1:4] disk HP P2000 G3 SAS T250 /dev/sddc [8:0:0:1] mediumx HP MSL G3 Series 8.60 /dev/sch0 [8:0:1:0] tape HP Ultrium 6-SCSI 33DW -
Rescan the scsi BUS
[root@tsm00 ~]# for i in $(ls /sys/class/scsi_host/host*/scan) do echo "- - -" > $i done [root@tsm00 ~]# sg_map -x Strange, could not find device /dev/nst0 mapped to sg device?? /dev/sg0 3 0 0 0 0 /dev/sda /dev/sg1 2 0 0 0 0 /dev/sdb ... /dev/sg66 2 0 0 6 0 /dev/sdbm /dev/sg67 8 0 0 0 1 /dev/nst1 ... /dev/sg111 7 0 1 4 0 /dev/sddc /dev/sg113 8 0 0 1 8 /dev/sg114 -2 -2 -2 -2 -2 /dev/sg116 3 0 2 6 0 /dev/sdde [root@tsm00 ~]# lsscsi [7:0:1:2] disk HP P2000 G3 SAS T250 /dev/sdda [7:0:1:3] disk HP P2000 G3 SAS T250 /dev/sddb [7:0:1:4] disk HP P2000 G3 SAS T250 /dev/sddc [8:0:0:0] tape HP Ultrium 6-SCSI 33DW /dev/st1 [8:0:0:1] mediumx HP MSL G3 Series 8.60 /dev/sch0 [8:0:1:0] tape HP Ultrium 6-SCSI 33DW /dev/st0
Before only one drive, now 2, try to reconfigure
[root@tsm00 rc3.d]# /opt/tivoli/tsm/devices/bin/autoconf -a ****************************************** * IBM TIVOLI STORAGE MANAGER * * Autoconf Utility Program for Linux * ****************************************** Licensed Materials - Property of IBM (C) Copyright IBM Corporation 2009. All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corporation. Added the read and write permissions for all users to /dev/sg67. Added the read and write permissions for all users to /dev/sg113. Tivoli Tape Drives: =================== Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev. 000 067 008 000 000 000 001 HP HU134706MJ Ultrium 6-SCSI 33DW Tivoli Medium Changer Devices: ============================== Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev. 000 113 008 000 000 001 008 HP DEC34900FU MSL G3 Series 8.60
Not working, recreate symbolic link to drive and autoconf
[root@tsm00 etc]# ll /dev/sg* | grep tape 0 crw-rw-rw- 1 root tape 21, 113 Aug 30 13:50 /dev/sg113 0 crw-rw-rw- 1 root tape 21, 114 Aug 30 13:50 /dev/sg114 0 crw-rw-rw- 1 root tape 21, 67 Sep 10 10:51 /dev/sg67 [root@tsm00 etc]# ll /dev/tsmscsi/ 0 lrwxrwxrwx 1 root root 10 Sep 10 10:54 lb0 -> /dev/sg113 4 -rw-r--r-- 1 root root 181 Sep 10 10:54 lbinfo 0 lrwxrwxrwx 1 root root 9 Sep 10 10:54 mt0 -> /dev/sg67 4 -rw-r--r-- 1 root root 181 Sep 10 10:54 mtinfo [root@tsm00 etc]# ln -s /dev/sg114 /dev/tsmscsi/mt1 [root@tsm00 etc]# ll /dev/tsmscsi/ 0 lrwxrwxrwx 1 root root 10 Sep 10 10:54 lb0 -> /dev/sg113 4 -rw-r--r-- 1 root root 181 Sep 10 10:54 lbinfo 0 lrwxrwxrwx 1 root root 9 Sep 10 10:54 mt0 -> /dev/sg67 0 lrwxrwxrwx 1 root root 10 Sep 10 11:41 mt1 -> /dev/sg114 4 -rw-r--r-- 1 root root 181 Sep 10 10:54 mtinfo [root@tsm00 etc]# /opt/tivoli/tsm/devices/bin/autoconf -t -a ****************************************** * IBM TIVOLI STORAGE MANAGER * * Autoconf Utility Program for Linux * ****************************************** Licensed Materials - Property of IBM (C) Copyright IBM Corporation 2009. All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corporation. Added the read and write permissions for all users to /dev/sg67. Added the read and write permissions for all users to /dev/sg113. Added the read and write permissions for all users to /dev/sg114. Tivoli Tape Drives: =================== Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev. 000 067 008 000 000 000 001 HP HU134706MJ Ultrium 6-SCSI 33DW 001 114 008 000 001 000 001 HP HU134706N4 Ultrium 6-SCSI 33DW Tivoli Medium Changer Devices: ============================== Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev. 000 113 008 000 000 001 008 HP DEC34900FU MSL G3 Series 8.60 [root@tsm00 etc]# cat /dev/tsmscsi/mtinfo Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev. 000 067 008 000 000 000 001 HP HU134706MJ Ultrium 6-SCSI 33DW 001 114 008 000 001 000 001 HP HU134706N4 Ultrium 6-SCSI 33DW
Check result
[root@tsm00 rc3.d]# cat /dev/tsmscsi/mtinfo Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev. 000 067 008 000 000 000 001 HP HU134706MJ Ultrium 6-SCSI 33DW Vendor: HP Model: MSL G3 Series Rev: 8.60 Type: Medium Changer ANSI SCSI revision: 05 Host: scsi8 Channel: 00 Id: 01 Lun: 00 Vendor: HP Model: Ultrium 6-SCSI Rev: 33DW Type: Sequential-Access ANSI SCSI revision: 06 Host: scsi8 Channel: 00 Id: 00 Lun: 00 Vendor: HP Model: Ultrium 6-SCSI Rev: 33DW Type: Sequential-Access ANSI SCSI revision: 06 [root@tsm00 etc]# cat /dev/tsmscsi/lbinfo Index Minor Host CHN ID LUN Type Vendor_ID Device_Serial_Number Product_ID Rev. 000 113 008 000 000 001 008 HP DEC34900FU MSL G3 Series 8.60 [root@tsm00 etc]# lsscsi -g | egrep "tape|medium" [8:0:0:0] tape HP Ultrium 6-SCSI 33DW - /dev/sg67 [8:0:0:1] mediumx HP MSL G3 Series 8.60 /dev/sch0 /dev/sg113 [8:0:1:0] tape HP Ultrium 6-SCSI 33DW - /dev/sg114
For info
[root@tsm00 etc]# cat /etc/rc.d/init.d/tsmdevice #! /bin/sh # Tivoli Device TSM ### # chkconfig: 235 98 55 # description: Tivoli Device TSM ### case "$1" in start) echo -n "Starting Tivoli Device" /opt/tivoli/tsm/devices/bin/autoconf -a ;; stop) echo -n "Stopping Tivoli Device" /opt/tivoli/tsm/devices/bin/autoconf -a ;; *) echo "Usage: /sbin/service Tivoli Tivoli Device {start|stop}" exit 1 esac exit 0
Now you can check your paths to drives into TSM