IBM TS4500磁带库更换LCC及Driver驱动器后TSM中重新匹配带库及驱动器

图片[1]-IBM TS4500磁带库更换LCC及Driver驱动器后TSM中重新匹配带库及驱动器-UU技术社区

摘要:

本文记录由于TS4500更换(初始化)LCC控制器后由于驱动器PWWN改变,需要在Cisco SAN交换机(MDS9710)替换新的驱动器PWWN,以及TSMServer(tivoli)中重新匹配磁带库Library及驱动器Driver和激活Path路径的操作步骤。

环境:

TS4500带库4个Driver8条路径分别连接至2台Cisco MDS9710

TSMServer的2条FC链路分别连接2台Cisco MDS9710

TSMServer版本:

tsm: TSMSERVER>q version
Session established with server TSMSERVER: Linux/x86_64
Server Version 7, Release 1, Level 7.0

参见 link-status

注明:本文中的部分图片来源于DCNM

一、恢复FC光纤链路

由于PWWN改变,记录SAN交换机上识别到的新的PWWN

图片[2]-IBM TS4500磁带库更换LCC及Driver驱动器后TSM中重新匹配带库及驱动器-UU技术社区
图片[3]-IBM TS4500磁带库更换LCC及Driver驱动器后TSM中重新匹配带库及驱动器-UU技术社区

在MDS9710A上恢复链路


#查看之前的zone配置
MDS9710A# show zoneset active vsan 10 | grep 4500
  zone name TS4500_TSM_SERVER vsan 10
    pwwn 50:05:07:60:44:58:c2:0c [TS4500_ROW1_0]
    pwwn 50:05:07:60:44:58:c2:0d [TS4500_ROW2_0]
    pwwn 50:05:07:60:44:58:c2:0e [TS4500_ROW3_0]
    pwwn 50:05:07:60:44:58:c2:0f [TS4500_ROW4_0]
MDS9710A# show zone name TS4500_TSM_SERVER vsan 10
zone name TS4500_TSM_SERVER vsan 10
  pwwn 50:05:07:60:44:58:c2:0c [TS4500_ROW1_0]
  pwwn 50:05:07:60:44:58:c2:0d [TS4500_ROW2_0]
  pwwn 50:05:07:60:44:58:c2:0e [TS4500_ROW3_0]
  pwwn 50:05:07:60:44:58:c2:0f [TS4500_ROW4_0]
  pwwn 10:00:00:90:fa:1d:28:b6 [TSM_SERVER_HBA1]
MDS9710A# configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
MDS9710A(config)# device-alias database 
#删除旧的别名
MDS9710A(config-device-alias-db)# no device-alias name TS4500_ROW1_0
MDS9710A(config-device-alias-db)# no device-alias name TS4500_ROW2_0
MDS9710A(config-device-alias-db)# no device-alias name TS4500_ROW3_0
MDS9710A(config-device-alias-db)# no device-alias name TS4500_ROW4_0
MDS9710A(config-device-alias-db)# device-alias commit 
MDS9710A(config)# show device-alias database | grep 4500
#创建新的别名记录
MDS9710A(config)# device-alias database 
MDS9710A(config-device-alias-db)# device-alias name TS4500_ROW1_0 pwwn 50:05:07:60:44:5e:77:0c
MDS9710A(config-device-alias-db)# device-alias name TS4500_ROW2_0 pwwn 50:05:07:60:44:5e:77:0d
MDS9710A(config-device-alias-db)# device-alias name TS4500_ROW3_0 pwwn 50:05:07:60:44:5e:77:0e
MDS9710A(config-device-alias-db)# device-alias name TS4500_ROW4_0 pwwn 50:05:07:60:44:5e:77:0f
#提交
MDS9710A(config-device-alias-db)# device-alias commit 
MDS9710A(config)# show device-alias database | grep 4500
device-alias name TS4500_ROW1_0 pwwn 50:05:07:60:44:5e:77:0c
device-alias name TS4500_ROW2_0 pwwn 50:05:07:60:44:5e:77:0d
device-alias name TS4500_ROW3_0 pwwn 50:05:07:60:44:5e:77:0e
device-alias name TS4500_ROW4_0 pwwn 50:05:07:60:44:5e:77:0f
MDS9710A(config)# wr
[########################################] 100%
Copy complete.
MDS9710A(config)# show zone name TS4500_TSM_SERVER vsan 10
zone name TS4500_TSM_SERVER vsan 10
  pwwn 50:05:07:60:44:58:c2:0c
  pwwn 50:05:07:60:44:58:c2:0d
  pwwn 50:05:07:60:44:58:c2:0e
  pwwn 50:05:07:60:44:58:c2:0f
  pwwn 10:00:00:90:fa:1d:28:b6 [TSM_SERVER_HBA1]
MDS9710A(config)# vsan database 
MDS9710A(config-vsan-db)# vsan 10
MDS9710A(config-vsan-db)# zone name TS4500_TSM_SERVER vsan 10
#删除旧的PWWN
MDS9710A(config-zone)# no member pwwn 50:05:07:60:44:58:c2:0c
MDS9710A(config-zone)# no member pwwn 50:05:07:60:44:58:c2:0d
MDS9710A(config-zone)# no member pwwn 50:05:07:60:44:58:c2:0e
MDS9710A(config-zone)# no member pwwn 50:05:07:60:44:58:c2:0f
MDS9710A(config-zone)# show device-alias database | grep 4500
device-alias name TS4500_ROW1_0 pwwn 50:05:07:60:44:5e:77:0c
device-alias name TS4500_ROW2_0 pwwn 50:05:07:60:44:5e:77:0d
device-alias name TS4500_ROW3_0 pwwn 50:05:07:60:44:5e:77:0e
device-alias name TS4500_ROW4_0 pwwn 50:05:07:60:44:5e:77:0f
#添加新的PWWN
MDS9710A(config-zone)# member pwwn 50:05:07:60:44:5e:77:0c
MDS9710A(config-zone)# member pwwn 50:05:07:60:44:5e:77:0d
MDS9710A(config-zone)# member pwwn 50:05:07:60:44:5e:77:0e
MDS9710A(config-zone)# member pwwn 50:05:07:60:44:5e:77:0f
MDS9710A(config-zone)# exit
MDS9710A# show zoneset
zoneset name Fabric-A vsan 10
......
MDS9710A(config-zoneset)# show zone name TS4500_TSM_SERVER vsan 10
zone name TS4500_TSM_SERVER vsan 10
  pwwn 50:05:07:60:44:5e:77:0c [TS4500_ROW1_0]
  pwwn 50:05:07:60:44:5e:77:0d [TS4500_ROW2_0]
  pwwn 50:05:07:60:44:5e:77:0e [TS4500_ROW3_0]
  pwwn 50:05:07:60:44:5e:77:0f [TS4500_ROW4_0]
  pwwn 10:00:00:90:fa:1d:28:b6 [TSM_SERVER_HBA1]
  MDS9710A(config-zoneset)# wr
[########################################] 100%
Copy complete.
MDS9710A(config-zoneset)# show zoneset active vsan 10 | grep 450
  zone name TS4500_TSM_SERVER vsan 10
#激活zone
MDS9710A(config-zoneset)# zoneset activate name Fabric-A vsan 10
Zoneset activation initiated. check zone status
#查看状态*表示链路已连接
MDS9710A(config)# show zoneset active vsan 10 | grep 450
  zone name TS4500_TSM_SERVER vsan 10
  * fcid 0x0a13e2 [pwwn 50:05:07:60:44:5e:77:0c] [TS4500_ROW1_0]
  * fcid 0x0a1401 [pwwn 50:05:07:60:44:5e:77:0d] [TS4500_ROW2_0]
  * fcid 0x0a1421 [pwwn 50:05:07:60:44:5e:77:0e] [TS4500_ROW3_0]
  * fcid 0x0a1442 [pwwn 50:05:07:60:44:5e:77:0f] [TS4500_ROW4_0]
MDS9710A(config)# 

恢复后的状态:

图片[4]-IBM TS4500磁带库更换LCC及Driver驱动器后TSM中重新匹配带库及驱动器-UU技术社区

在MDS9710B上恢复链路

MDS9710B# configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
MDS9710B(config)# device-alias database 
MDS9710B(config-device-alias-db)# show device-alias database | grep 4500
device-alias name TS4500_ROW1_1 pwwn 50:05:07:60:44:98:c2:0c
device-alias name TS4500_ROW2_1 pwwn 50:05:07:60:44:98:c2:0d
device-alias name TS4500_ROW3_1 pwwn 50:05:07:60:44:98:c2:0e
device-alias name TS4500_ROW4_1 pwwn 50:05:07:60:44:98:c2:0f
MDS9710B(config-device-alias-db)# no device-alias name TS4500_ROW1_1 
MDS9710B(config-device-alias-db)# no device-alias name TS4500_ROW2_1 
MDS9710B(config-device-alias-db)# no device-alias name TS4500_ROW3_1 
MDS9710B(config-device-alias-db)# no device-alias name TS4500_ROW4_1
MDS9710B(config-device-alias-db)# device-alias name TS4500_ROW1_1 pwwn 50:05:07:60:44:9e:77:0c
MDS9710B(config-device-alias-db)# device-alias name TS4500_ROW2_1 pwwn 50:05:07:60:44:9e:77:0d
MDS9710B(config-device-alias-db)# device-alias name TS4500_ROW3_1 pwwn 50:05:07:60:44:9e:77:0e
MDS9710B(config-device-alias-db)# device-alias name TS4500_ROW4_1 pwwn 50:05:07:60:44:9e:77:0f
MDS9710B(config-device-alias-db)# device-alias co
commit           confirm-commit   
MDS9710B(config-device-alias-db)# device-alias commit 
MDS9710B(config)# show device-alias database | grep 4500
device-alias name TS4500_ROW1_1 pwwn 50:05:07:60:44:9e:77:0c
device-alias name TS4500_ROW2_1 pwwn 50:05:07:60:44:9e:77:0d
device-alias name TS4500_ROW3_1 pwwn 50:05:07:60:44:9e:77:0e
device-alias name TS4500_ROW4_1 pwwn 50:05:07:60:44:9e:77:0f
MDS9710B(config)# show zoneset active vsan 11 | grep 4500
  zone name TS4500_TSM_SERVER vsan 11
MDS9710B(config)# show zone name TS4500_TSM_SERVER vsan 11
zone name TS4500_TSM_SERVER vsan 11
  pwwn 50:05:07:60:44:98:c2:0c
  pwwn 50:05:07:60:44:98:c2:0d
  pwwn 50:05:07:60:44:98:c2:0e
  pwwn 50:05:07:60:44:98:c2:0f
  pwwn 10:00:00:90:fa:1d:30:d2 [TSM_SERVER]
MDS9710B(config)# zone name TS4500_TSM_SERVER vsan 11
MDS9710B(config-zone)# no member pwwn 50:05:07:60:44:98:c2:0c
MDS9710B(config-zone)# no member pwwn 50:05:07:60:44:98:c2:0d
MDS9710B(config-zone)# no member pwwn 50:05:07:60:44:98:c2:0e
MDS9710B(config-zone)# no member pwwn 50:05:07:60:44:98:c2:0f
MDS9710B(config-zone)# member pwwn 50:05:07:60:44:9e:77:0c
MDS9710B(config-zone)# member pwwn 50:05:07:60:44:9e:77:0d
MDS9710B(config-zone)# member pwwn 50:05:07:60:44:9e:77:0e
MDS9710B(config-zone)# member pwwn 50:05:07:60:44:9e:77:0f
MDS9710B(config-zone)# wr
[########################################] 100%
Copy complete.
MDS9710B(config-zone)# show zone name TS4500_TSM_SERVER vsan 11
zone name TS4500_TSM_SERVER vsan 11
  pwwn 50:05:07:60:44:9e:77:0c [TS4500_ROW1_1]
  pwwn 50:05:07:60:44:9e:77:0d [TS4500_ROW2_1]
  pwwn 50:05:07:60:44:9e:77:0e [TS4500_ROW3_1]
  pwwn 50:05:07:60:44:9e:77:0f [TS4500_ROW4_1]
  pwwn 10:00:00:90:fa:1d:30:d2 [TSM_SERVER]
MDS9710B(config-zone)# show  zoneset active vsan 11 
zoneset name Fabric-B vsan 11
MDS9710B(config-zone)# zoneset activate name Fabric-B vsan 11
Zoneset activation initiated. check zone status
MDS9710B(config)# show  zoneset active vsan 11 | grep 4500
  zone name TS4500_TSM_SERVER vsan 11
  * fcid 0x0b1682 [pwwn 50:05:07:60:44:9e:77:0c] [TS4500_ROW1_1]
  * fcid 0x0b16a1 [pwwn 50:05:07:60:44:9e:77:0d] [TS4500_ROW2_1]
  * fcid 0x0b16c1 [pwwn 50:05:07:60:44:9e:77:0e] [TS4500_ROW3_1]
  * fcid 0x0b16e2 [pwwn 50:05:07:60:44:9e:77:0f] [TS4500_ROW4_1]
MDS9710B(config)# wr
[########################################] 100%
Copy complete.
MDS9710B(config)#

恢复后的状态

二、TSMServer配置

此部分的难点在于对应磁带库和驱动器对应的SN

/proc/scsi/IBMchanger/proc/scsi/IBMtape 分别是 Linux 操作系统中用于 SCSI 接口的 IBM 磁带库机械臂和磁带设备的虚拟文件。
在 Linux 中,/proc 文件系统中提供了一种通过访问虚拟文件的方式来获取内核运行时信息的方法。其中 /proc/scsi 目录则提供了 SCSI 子系统的相关信息,包括识别和管理 SCSI 设备等。而 /proc/scsi/IBMchanger/proc/scsi/IBMtape 文件则分别提供了 IBM 磁带库机械臂和磁带设备的状态信息,例如当前位置、机械臂和磁带设备的状态等。

[root@TSMSERVER fc_host]# lsscsi -g
[0:2:0:0]    disk    LSI      MR9260-8i        2.11  /dev/sda   /dev/sg0 
[1:0:0:0]    cd/dvd  PLDS     DVD-RW DS8A9SH   EL3A  /dev/sr0   /dev/sg1 
[7:0:0:0]    tape    IBM      ULT3580-TD4      A239  -          /dev/sg6 
[7:0:0:1]    mediumx IBM      03584L32         A420  -          /dev/sg7 
[7:0:1:0]    tape    IBM      ULT3580-TD4      A239  -          /dev/sg12
[7:0:1:1]    mediumx IBM      03584L32         A420  -          /dev/sg13
[7:0:2:0]    tape    IBM      ULT3580-TD4      C7QB  -          /dev/sg4 
[7:0:2:1]    mediumx IBM      03584L32         A420  -          /dev/sg5 
[7:0:3:0]    tape    IBM      ULT3580-TD4      C7QB  -          /dev/sg10
[7:0:3:1]    mediumx IBM      03584L32         A420  -          /dev/sg11
[7:0:8:0]    tape    IBM      ULT3580-TD7      JAYE  -          /dev/sg16
[7:0:8:1]    mediumx IBM      03584L32         1702  -          /dev/sg17
[7:0:9:0]    tape    IBM      ULT3580-TD7      JAYE  -          /dev/sg18
[7:0:9:1]    mediumx IBM      03584L32         1702  -          /dev/sg19
[7:0:10:0]   tape    IBM      ULT3580-TD7      JAYE  -          /dev/sg20
[7:0:11:0]   tape    IBM      ULT3580-TD7      K4K0  -          /dev/sg21
[8:0:4:0]    tape    IBM      ULT3580-TD7      JAYE  -          /dev/sg2 
[8:0:4:1]    mediumx IBM      03584L32         1702  -          /dev/sg3 
[8:0:5:0]    tape    IBM      ULT3580-TD7      JAYE  -          /dev/sg8 
[8:0:6:0]    tape    IBM      ULT3580-TD7      JAYE  -          /dev/sg9 
[8:0:6:1]    mediumx IBM      03584L32         1702  -          /dev/sg14
[8:0:7:0]    tape    IBM      ULT3580-TD7      K4K0  -          /dev/sg15
[root@TSMSERVER fc_host]# 

[root@TSMSERVER dev]# cd /sys/class/fc_host/
[root@TSMSERVER fc_host]# cat host
host7/ host8/ 
[root@TSMSERVER fc_host]# cat host7/port_name 
0x10000090fa1d30d2
[root@TSMSERVER soft]# cat /sys/class/fc_host/host8/port_name 
0x10000090fa1d28b6
[root@TSMSERVER soft]# 

[root@TSMSERVER fc_host]# cat /proc/scsi/IBM*
lin_tape version: 3.0.39
lin_tape major number: 245
Attached Changer Devices:
Number  model       SN                       HBA             SCSI            FO Path   
0       03584L32    0000078BA8460401         lpfc            8:0:4:1         NA        
1       03584L32    0000078253410401         lpfc            7:0:2:1         NA        
2       03584L32    0000078253410401         lpfc            7:0:0:1         NA        
3       03584L32    0000078BA8460401         lpfc            8:0:6:1         NA        
4       03584L32    0000078253410401         lpfc            7:0:3:1         NA        
5       03584L32    0000078253410401         lpfc            7:0:1:1         NA        
6       03584L32    0000078BA8460401         lpfc            7:0:8:1         NA        
7       03584L32    0000078BA8460401         lpfc            7:0:9:1         NA        
lin_tape version: 3.0.39
lin_tape major number: 245
Attached Tape Devices:
Number  model       SN                       HBA             SCSI            FO Path   
0       ULT3580-TD7 000780E4AB               lpfc            8:0:4:0         NA        
1       ULT3580-TD4 00078C09C1               lpfc            7:0:2:0         NA        
2       ULT3580-TD4 00078C09BF               lpfc            7:0:0:0         NA        
3       ULT3580-TD7 000780E5EB               lpfc            8:0:5:0         NA        
4       ULT3580-TD4 0007858176               lpfc            7:0:3:0         NA        
5       ULT3580-TD4 00078C09BD               lpfc            7:0:1:0         NA        
6       ULT3580-TD7 000780AFEB               lpfc            8:0:6:0         NA        
7       ULT3580-TD7 00078D05E1               lpfc            8:0:7:0         NA        
8       ULT3580-TD7 000780E4AB               lpfc            7:0:8:0         NA        
9       ULT3580-TD7 000780AFEB               lpfc            7:0:9:0         NA        
10      ULT3580-TD7 000780E5EB               lpfc            7:0:10:0        NA        
11      ULT3580-TD7 00078D05E1               lpfc            7:0:11:0        NA        
[root@TSMSERVER fc_host]# 

查看当前磁带库状态:

tsm: TSMSERVER>q libaray f=d
ANR2000E Unknown command - QUERY LIBARAY.
ANS8001I Return code 2.

tsm: TSMSERVER>q library f=d

                  Library Name: TS3500
                  Library Type: SCSI
                        ACS Id: 
              Private Category: 
              Scratch Category: 
         WORM Scratch Category: 
              External Manager: 
                        Shared: Yes
                       LanFree: 
            ObeyMountRetention: 
       Primary Library Manager: 
                           WWN: 
                 Serial Number: 0000078253410401
                     AutoLabel: No
                  Reset Drives: Yes
               Relabel Scratch: No
                      ZosMedia: 
Last Update by (administrator): ADMIN
         Last Update Date/Time: 12/06/2020 13:21:03

                  Library Name: TS4500
                  Library Type: SCSI
                        ACS Id: 
              Private Category: 
              Scratch Category: 
         WORM Scratch Category: 
              External Manager: 
                        Shared: Yes
                       LanFree: 
            ObeyMountRetention: 
       Primary Library Manager: 
                           WWN: 
                 Serial Number: 0000078253410402
                     AutoLabel: No
                  Reset Drives: Yes
               Relabel Scratch: No
                      ZosMedia: 
Last Update by (administrator): ADMIN
         Last Update Date/Time: 12/06/2020 13:21:15

TS4500的Serial Number: 0000078253410402已经改变需要和IBMchanger中对应

#如无法update 先删除TS4500下的所有path
Delete path TSMSERVER LTO7DRIVER0 srctype=server desttype=drive library=TS4500

通过update命令更新SN

tsm: TSMSERVER>help update librar             
Session established with server TSMSERVER: Linux/x86_64
  Server Version 7, Release 1, Level 7.0
  Server date/time: 05/31/2023 15:09:36  Last access: 05/31/2023 14:18:56

3.67.15 UPDATE LIBRARY (Update a library)

Use this command to update a library definition.



To update the device name or the external manager path name of a
library, you must use the UPDATE PATH command.

Syntax and parameter descriptions are available for the following
library types.

Tip: To display information about a specific command in the following
      list, type HELP followed by the topic number for that command.

*  3.67.15.1, "UPDATE LIBRARY (Update a 349X library)"
*  3.67.15.2, "UPDATE LIBRARY (Update an ACSLS library)"
*  3.67.15.3, "UPDATE LIBRARY (Update an EXTERNAL library)"
*  3.67.15.4, "UPDATE LIBRARY (Update a FILE library)"
*  3.67.15.5, "UPDATE LIBRARY (Update a manual library)"
*  3.67.15.6, "UPDATE LIBRARY (Update a SCSI library)"
*  3.67.15.7, "UPDATE LIBRARY (Update a shared library)"
*  3.67.15.8, "UPDATE LIBRARY (Update a VTL library)"

For detailed and current library support information, see the Supported
Devices website for your operating system: 
   http://www.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_Linux.html



Related commands



tsm: TSMSERVER>

tsm: TSMSERVER>help 3.67.15.6
3.67.15.6 UPDATE LIBRARY (Update a SCSI library)

Use this syntax to update a SCSI library.



Privilege class

To issue this command, you must have system privilege or unrestricted
storage privilege.



Syntax 

>>-UPDate LIBRary--library_name----LIBType--=--+-SCSI-+--------->
                                               '-VTL--'     

>--+--------------------+--+-------------------------+---------->
   '-SHAREd--=----Yes---'  '-RESETDrives--=--+-Yes-+-'   
                                             '-No--'     

>--+-----------------------------+------------------------------>
   '-AUTOLabel--=--+-No--------+-'   
                   +-Yes-------+     
                   '-OVERWRITE-'     

>--+----------------------------+------------------------------->
   '-RELABELSCRatch--=--+-No--+-'   
                        '-Yes-'     

>--+------------------------------+----------------------------><
   '-SERial--=--+-serial_number-+-'   
                '-AUTODetect----'     




Parameters


tsm: TSMSERVER>
tsm: TSMSERVER>update library TS4500 LIBType=SCSI AUTOLabel=yes SERial=0000078BA8460401
ANR8465I Library TS4500 updated.

tsm: TSMSERVER>q library f=d

                  Library Name: TS3500
                  Library Type: SCSI
                        ACS Id: 
              Private Category: 
              Scratch Category: 
         WORM Scratch Category: 
              External Manager: 
                        Shared: Yes
                       LanFree: 
            ObeyMountRetention: 
       Primary Library Manager: 
                           WWN: 
                 Serial Number: 0000078253410401
                     AutoLabel: No
                  Reset Drives: Yes
               Relabel Scratch: No
                      ZosMedia: 
Last Update by (administrator): ADMIN
         Last Update Date/Time: 05/31/2023 14:01:53

                  Library Name: TS4500
                  Library Type: SCSI
                        ACS Id: 
              Private Category: 
              Scratch Category: 
         WORM Scratch Category: 
              External Manager: 
                        Shared: Yes
                       LanFree: 
            ObeyMountRetention: 
       Primary Library Manager: 
                           WWN: 
                 Serial Number: 0000078BA8460401
                     AutoLabel: Yes
                  Reset Drives: Yes
               Relabel Scratch: No
                      ZosMedia: 
Last Update by (administrator): ADMIN
         Last Update Date/Time: 05/31/2023 15:13:50


更新Drive

tsm: TSMSERVER>

tsm: TSMSERVER>DEFINE drive  TS4500  LTO7DRIVER0 online=yes
ANR8404I Drive LTO7DRIVER0 defined in library TS4500.

tsm: TSMSERVER>q drive

Library Name     Drive Name       Device Type     On-Line            
------------     ------------     -----------     -------------------
TS3500           3584DRV1         LTO             Yes                
TS3500           3584DRV2         LTO             Yes                
TS3500           3584DRV3         LTO             Yes                
TS3500           3584DRV4         LTO             Yes                
TS4500           LTO7DRIVER0      UNKNOWN         Yes                
TS4500           LTO7DRIVER1      LTO             Yes                
TS4500           LTO7DRIVER2      LTO             Yes                
TS4500           LTO7DRIVER3      LTO             Yes                

tsm: TSMSERVER>q drive f=d

Library Name  Drive Name    Device Type  On-Line              Read Formats      Write Formats     Element  Drive State       Volume Name  Allocated to  WWN             Serial Number   Last Update by      Last Update      Cleaning Frequency       
                                                                                                                                                                                        (administrator)      Date/Time       (Gigabytes/ASNEEDED/NONE)
------------  ------------  -----------  -------------------  ----------------  ----------------  -------  ----------------  -----------  ------------  --------------  --------------  ---------------  ------------------  -------------------------
TS3500        3584DRV1      LTO          Yes                  ULTRIUM4C,ULTRI-  ULTRIUM4C,ULTRI-  257      UNKNOWN                                      5005076044013-  00078C09BF      ADMIN                05/31/2023      NONE                     
                                                               UM4,ULTRIUM3C,-   UM4,ULTRIUM3C,-                                                         801                                                  12:55:56                                
                                                               ULTRIUM3,ULTRI-   ULTRIUM3                                                                                                                                                             
                                                               UM2C,ULTRIUM2                                                                                                                                                                          
TS3500        3584DRV2      LTO          Yes                  ULTRIUM4C,ULTRI-  ULTRIUM4C,ULTRI-  258      UNKNOWN                                      5005076044013-  00078C09BD      ADMIN                05/31/2023      NONE                     
                                                               UM4,ULTRIUM3C,-   UM4,ULTRIUM3C,-                                                         802                                                  12:57:25                                
                                                               ULTRIUM3,ULTRI-   ULTRIUM3                                                                                                                                                             
                                                               UM2C,ULTRIUM2                                                                                                                                                                          
TS3500        3584DRV3      LTO          Yes                  ULTRIUM4C,ULTRI-  ULTRIUM4C,ULTRI-  259      UNKNOWN                                      5005076044013-  00078C09C1      ADMIN                05/31/2023      NONE                     
                                                               UM4,ULTRIUM3C,-   UM4,ULTRIUM3C,-                                                         803                                                  12:58:59                                
                                                               ULTRIUM3,ULTRI-   ULTRIUM3                                                                                                                                                             
                                                               UM2C,ULTRIUM2                                                                                                                                                                          
TS3500        3584DRV4      LTO          Yes                  ULTRIUM4C,ULTRI-  ULTRIUM4C,ULTRI-  260      UNKNOWN                                      5005076044013-  0007858176      ADMIN                05/31/2023      NONE                     
                                                               UM4,ULTRIUM3C,-   UM4,ULTRIUM3C,-                                                         804                                                  12:59:31                                
                                                               ULTRIUM3,ULTRI-   ULTRIUM3                                                                                                                                                             
                                                               UM2C,ULTRIUM2                                                                                                                                                                          
TS4500        LTO7DRIVER0   UNKNOWN      Yes                                                               UNKNOWN                                                                      ADMIN                05/31/2023      NONE                     
                                                                                                                                                                                                              15:18:18                                
TS4500        LTO7DRIVER1   LTO          Yes                  ULTRIUM7C,ULTRI-  ULTRIUM7C,ULTRI-  258      UNKNOWN                                      500507604418C-  000780AFEB      ADMIN                06/28/2022      ASNEEDED                 
                                                               UM7,ULTRIUM6C,-   UM7,ULTRIUM6C,-                                                         20D                                                  17:11:59                                
                                                               ULTRIUM6,ULTRI-   ULTRIUM6                                                                                                                                                             
                                                               UM5C,ULTRIUM5                                                                                                                                                                          
TS4500        LTO7DRIVER2   LTO          Yes                  ULTRIUM7C,ULTRI-  ULTRIUM7C,ULTRI-  257      UNKNOWN                                      500507604418C-  000780E4AB      ADMIN                06/28/2022      ASNEEDED                 
                                                               UM7,ULTRIUM6C,-   UM7,ULTRIUM6C,-                                                         20C                                                  17:12:38                                
                                                               ULTRIUM6,ULTRI-   ULTRIUM6                                                                                                                                                             
                                                               UM5C,ULTRIUM5                                                                                                                                                                          
TS4500        LTO7DRIVER3   LTO          Yes                  ULTRIUM7C,ULTRI-  ULTRIUM7C,ULTRI-  259      UNKNOWN                                      500507604418C-  000780E5EB      ADMIN                02/14/2023      NONE                     
                                                               UM7,ULTRIUM6C,-   UM7,ULTRIUM6C,-                                                         20E                                                  19:34:17                                
                                                               ULTRIUM6,ULTRI-   ULTRIUM6                                                                                                                                                             
                                                               UM5C,ULTRIUM5                                                                                                                                                                          

tsm: TSMSERVER>help update drive
3.67.13 UPDATE DRIVE (Update a drive)

Use this command to update a drive.



Privilege class

For detailed and current drive support information, see the Supported
Devices website for your operating system: 
   http://www.ibm.com/software/sysmgmt/products/support/IBM_TSM_Supported_Devices_for_Linux.html

To issue this command, you must have system privilege or unrestricted
storage privilege.



Syntax 

>>-UPDate DRive--library_name--drive_name----------------------->

>--+------------------------------+--+--------------------+----->
   '-SERial--=--+-serial_number-+-'  '-ONLine--=--+-Yes-+-'   
                '-AUTODetect----'                 '-No--'     

>--+----------------------------+------------------------------->
   '-ELEMent--=--+-address----+-'   
                 '-AUTODetect-'     

>--+----------------------------+------------------------------->
   |                       (1)  |   
   '-ACSDRVID--=--drive_id------'   

>--+-------------------------------------------+---------------><
   |                     (2)                   |   
   '-CLEANFREQuency--=-------+-NONE----------+-'   
                             |          (3)  |     
                             +-ASNEEDED------+     
                             '-gigabytes-----'     


  Notes: 
1. The ACSDRVID parameter is valid only for drives in ACSLS libraries.
2. The CLEANFREQUENCY parameter is valid only for drives in SCSI
   libraries.
3. The CLEANFREQUENCY=ASNEEDED parameter value does not work for all
   tape drives. For more information, see the parameter description.



Parameters

library_name (Required)
   Specifies the name of the library to which the drive is assigned.

drive_name (Required)
   Specifies the name that is assigned to the drive.

SERial 
   Specifies the serial number for the drives that are being updated.
more...   (<ENTER> to continue, 'C' to cancel) c

Output to screen cancelled.  Please wait for the 'tsm>' prompt.
##更新Drive SN
tsm: TSMSERVER>update drive TS4500 LTO7DRIVER0 SERial=00078D05E1 online=yes
ANR8467I Drive LTO7DRIVER0 in library TS4500 updated.

tsm: TSMSERVER>Q DRIVE f=d

Library Name  Drive Name    Device Type  On-Line              Read Formats      Write Formats     Element  Drive State       Volume Name  Allocated to  WWN             Serial Number   Last Update by      Last Update      Cleaning Frequency       
                                                                                                                                                                                        (administrator)      Date/Time       (Gigabytes/ASNEEDED/NONE)
------------  ------------  -----------  -------------------  ----------------  ----------------  -------  ----------------  -----------  ------------  --------------  --------------  ---------------  ------------------  -------------------------
TS3500        3584DRV1      LTO          Yes                  ULTRIUM4C,ULTRI-  ULTRIUM4C,ULTRI-  257      UNKNOWN                                      5005076044013-  00078C09BF      ADMIN                05/31/2023      NONE                     
                                                               UM4,ULTRIUM3C,-   UM4,ULTRIUM3C,-                                                         801                                                  12:55:56                                
                                                               ULTRIUM3,ULTRI-   ULTRIUM3                                                                                                                                                             
                                                               UM2C,ULTRIUM2                                                                                                                                                                          
TS3500        3584DRV2      LTO          Yes                  ULTRIUM4C,ULTRI-  ULTRIUM4C,ULTRI-  258      UNKNOWN                                      5005076044013-  00078C09BD      ADMIN                05/31/2023      NONE                     
                                                               UM4,ULTRIUM3C,-   UM4,ULTRIUM3C,-                                                         802                                                  12:57:25                                
                                                               ULTRIUM3,ULTRI-   ULTRIUM3                                                                                                                                                             
                                                               UM2C,ULTRIUM2                                                                                                                                                                          
TS3500        3584DRV3      LTO          Yes                  ULTRIUM4C,ULTRI-  ULTRIUM4C,ULTRI-  259      UNKNOWN                                      5005076044013-  00078C09C1      ADMIN                05/31/2023      NONE                     
                                                               UM4,ULTRIUM3C,-   UM4,ULTRIUM3C,-                                                         803                                                  12:58:59                                
                                                               ULTRIUM3,ULTRI-   ULTRIUM3                                                                                                                                                             
                                                               UM2C,ULTRIUM2                                                                                                                                                                          
TS3500        3584DRV4      LTO          Yes                  ULTRIUM4C,ULTRI-  ULTRIUM4C,ULTRI-  260      UNKNOWN                                      5005076044013-  0007858176      ADMIN                05/31/2023      NONE                     
                                                               UM4,ULTRIUM3C,-   UM4,ULTRIUM3C,-                                                         804                                                  12:59:31                                
                                                               ULTRIUM3,ULTRI-   ULTRIUM3                                                                                                                                                             
                                                               UM2C,ULTRIUM2                                                                                                                                                                          
TS4500        LTO7DRIVER0   UNKNOWN      Yes                                                               UNKNOWN                                                      00078D05E1      ADMIN                05/31/2023      NONE                     
                                                                                                                                                                                                              15:19:54                                
TS4500        LTO7DRIVER1   LTO          Yes                  ULTRIUM7C,ULTRI-  ULTRIUM7C,ULTRI-  258      UNKNOWN                                      500507604418C-  000780AFEB      ADMIN                06/28/2022      ASNEEDED                 
                                                               UM7,ULTRIUM6C,-   UM7,ULTRIUM6C,-                                                         20D                                                  17:11:59                                
                                                               ULTRIUM6,ULTRI-   ULTRIUM6                                                                                                                                                             
                                                               UM5C,ULTRIUM5                                                                                                                                                                          
TS4500        LTO7DRIVER2   LTO          Yes                  ULTRIUM7C,ULTRI-  ULTRIUM7C,ULTRI-  257      UNKNOWN                                      500507604418C-  000780E4AB      ADMIN                06/28/2022      ASNEEDED                 
                                                               UM7,ULTRIUM6C,-   UM7,ULTRIUM6C,-                                                         20C                                                  17:12:38                                
                                                               ULTRIUM6,ULTRI-   ULTRIUM6                                                                                                                                                             
                                                               UM5C,ULTRIUM5                                                                                                                                                                          
TS4500        LTO7DRIVER3   LTO          Yes                  ULTRIUM7C,ULTRI-  ULTRIUM7C,ULTRI-  259      UNKNOWN                                      500507604418C-  000780E5EB      ADMIN                02/14/2023      NONE                     
                                                               UM7,ULTRIUM6C,-   UM7,ULTRIUM6C,-                                                         20E                                                  19:34:17                                
                                                               ULTRIUM6,ULTRI-   ULTRIUM6                                                                                                                                                             
                                                               UM5C,ULTRIUM5                                                                                                                                                                          

tsm: TSMSERVER>
##定义新的path

tsm: TSMSERVER>define path TSMSERVER TS4500  srctype=server desttype=library  device=/dev/IBMchanger3 online=yes
ANR1720I A path from TSMSERVER to TS4500 has been defined.

tsm: TSMSERVER>

tsm: TSMSERVER>define path TSMSERVER LTO7DRIVER0 srctype=server desttype=drive  libr=TS4500 device=/dev/IBMtape7 online=yes
ANR1720I A path from TSMSERVER to TS4500 LTO7DRIVER0 has been defined.

tsm: TSMSERVER>define path TSMSERVER LTO7DRIVER1 srctype=server desttype=drive  libr=TS4500 device=/dev/IBMtape6 online=yes
ANR1720I A path from TSMSERVER to TS4500 LTO7DRIVER1 has been defined.

tsm: TSMSERVER>define path TSMSERVER LTO7DRIVER2 srctype=server desttype=drive  libr=TS4500 device=/dev/IBMtape4 online=yes
ANR1720I A path from TSMSERVER to TS4500 LTO7DRIVER2 has been defined.

tsm: TSMSERVER>define path TSMSERVER LTO7DRIVER3 srctype=server desttype=drive  libr=TS4500 device=/dev/IBMtape2 online=yes
ANR1720I A path from TSMSERVER to TS4500 LTO7DRIVER3 has been defined.

tsm: TSMSERVER>q path

Source Name     Source Type     Destination     Destination     On-Line   
                                Name            Type            
-----------     -----------     -----------     -----------     ----------
TSMSERVER       SERVER          TS3500          LIBRARY         Yes       
TSMSERVER       SERVER          3584DRV1        DRIVE           Yes       
TSMSERVER       SERVER          3584DRV2        DRIVE           Yes       
TSMSERVER       SERVER          3584DRV3        DRIVE           Yes       
TSMSERVER       SERVER          3584DRV4        DRIVE           Yes       
TSMSERVER       SERVER          LTO7DRIVER0     DRIVE           Yes       
TSMSERVER       SERVER          LTO7DRIVER1     DRIVE           Yes       
TSMSERVER       SERVER          LTO7DRIVER2     DRIVE           Yes       
TSMSERVER       SERVER          LTO7DRIVER3     DRIVE           Yes       

tsm: TSMSERVER>
tsm: TSMSERVER>q path f=d

Source Name    Source Type    Destination    Destination    Library        Node Name      Device         External       ZOS Media      Comm.          LUN            Initiator      Directory      On-Line       Last Update by     Last Upda-
                              Name           Type                                                        Manager        Server         Method                                                                    (administrator)    te Date/T-
                                                                                                                                                                                                                                       ime    
-----------    -----------    -----------    -----------    -----------    -----------    -----------    -----------    -----------    -----------    -----------    -----------    -----------    ----------    ---------------    ----------
TSMSERVER      SERVER         TS3500         LIBRARY                                      /dev/IBMch-                                                                0                             Yes           ADMIN              12/06/2020
                                                                                           anger1                                                                                                                                    13:21:02 
TSMSERVER      SERVER         3584DRV1       DRIVE          TS3500                        /dev/IBMta-                                                                0                             Yes           ADMIN              05/31/2023
                                                                                           pe1                                                                                                                                       12:55:56 
TSMSERVER      SERVER         3584DRV2       DRIVE          TS3500                        /dev/IBMta-                                                                0                             Yes           ADMIN              05/31/2023
                                                                                           pe0                                                                                                                                       12:57:25 
TSMSERVER      SERVER         3584DRV3       DRIVE          TS3500                        /dev/IBMta-                                                                0                             Yes           ADMIN              05/31/2023
                                                                                           pe3                                                                                                                                       12:58:58 
TSMSERVER      SERVER         3584DRV4       DRIVE          TS3500                        /dev/IBMta-                                                                0                             Yes           ADMIN              05/31/2023
                                                                                           pe5                                                                                                                                       12:59:31 
TSMSERVER      SERVER         LTO7DRIVER0    DRIVE          TS4500                        /dev/IBMta-                                                                0                             Yes           ADMIN              05/31/2023
                                                                                           pe7                                                                                                                                       15:22:18 
TSMSERVER      SERVER         LTO7DRIVER1    DRIVE          TS4500                        /dev/IBMta-                                                                0                             Yes           ADMIN              05/31/2023
                                                                                           pe6                                                                                                                                       15:23:18 
TSMSERVER      SERVER         LTO7DRIVER2    DRIVE          TS4500                        /dev/IBMta-                                                                0                             Yes           ADMIN              05/31/2023
                                                                                           pe4                                                                                                                                       15:23:38 
TSMSERVER      SERVER         LTO7DRIVER3    DRIVE          TS4500                        /dev/IBMta-                                                                0                             Yes           ADMIN              05/31/2023
                                                                                           pe2                                                                                                                                       15:23:57 

tsm: TSMSERVER>

如有疑问欢迎评论留言!

© Заявление об авторском праве
THE END
Поддерживай, если хочешь.
Похвалить9Высокая оценка Поделиться
Замечания Украсть диван
头像
Добро пожаловать, чтобы оставить ценные идеи!
提交
头像

Прозвище

取消
ПрозвищеЛицоКодФотографии

    Нет комментариев