# 查看机械手状态: mtx -f /dev/sg6 status # 如下示例: [root@localhost dcs-ods-nvtl]# mtx -f /dev/sg6 status Storage Changer /dev/sg6:4 Drives, 43 Slots ( 4 Import/Export ) # 4个驱动器 Data Transfer Element 0:Empty Data Transfer Element 1:Empty Data Transfer Element 2:Empty Data Transfer Element 3:Empty # 43个磁带槽 Storage Element 1:Full :VolumeTag=E01001L4 Storage Element 2:Full :VolumeTag=E01002L4 Storage Element 3:Full :VolumeTag=E01003L4 Storage Element 4:Full :VolumeTag=E01004L4 Storage Element 5:Full :VolumeTag=E01005L4 ... Storage Element 39:Full :VolumeTag=F01039L5 Storage Element 40 IMPORT/EXPORT:Empty Storage Element 41 IMPORT/EXPORT:Empty Storage Element 42 IMPORT/EXPORT:Empty Storage Element 43 IMPORT/EXPORT:Empty
Where 'DeviceNo' is the number associated with tape/library daemon
Global commands: verbose -> To enable verbose logging TapeAlert # -> 64bit TapeAlert mask (hex) exit -> To shutdown tape/library daemon/device
Tape specific commands: Append Only [Yes|No] -> To 'load' media ID compression [zlib|lzo] -> Use zlib or lzo compression load ID -> To 'load' media ID unload ID -> To 'unload' media ID delay load n -> Set load delay to n seconds delay unload n -> Set unload delay to n seconds delay rewind n -> Set rewind delay to n seconds delay position n -> Set position delay to n seconds delay thread n -> Set thread delay to n seconds
Library specific commands: add slot -> Add a slot to library online -> To enable library offline -> To take library offline list map -> To list map contents empty map -> To remove media from map open map -> Open map to allow media export close map -> Close map to allow media import load map ID -> Load media ID into map
Usage: mktape [OPTIONS] [REQUIRED-PARAMS]Where OPTIONS are from: -h -- print this message and exit -v -- verbose -D[N] -- set debug level to N [1] -V -- print Version and exit -C config-dir -- override default config dir [ /etc/mhvtl ] -H home-dir -- override default home dir [ /opt/mhvtl ] And REQUIRED-PARAMS are: -l lib -- set Library number -m PCL -- set Physical Cartrige Label (barcode) -s size -- set size in Megabytes -t type -- set to data, clean, WORM, or NULL -d density -- set density to one of: AIT1 AIT2 AIT3 AIT4 DDS1 DDS2 DDS3 DDS4 DLT3 DLT4 SDLT1 SDLT220 SDLT320 SDLT600 LTO1 LTO2 LTO3 LTO4 LTO5 LTO6 LTO7 LTO8 T10KA T10KB T10KC 9840A 9840B 9840C 9840D 9940A 9940B J1A E05 E06 E07
# 查看 [root@localhost dcs-ods-nvtl]# tgtadm --lld iscsi --op show --mode target Target 1: iqn.2021-09.14.com.dcs.tape System information: Driver: iscsi State: ready I_T nexus information: I_T nexus: 1 Initiator: iqn.1991-05.com.microsoft:desktop-uqqtbl0 alias: none Connection: 1 IP Address: 192.168.1.51 LUN information: LUN: 0 Type: controller SCSI ID: IET 00010000 SCSI SN: beaf10 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: null Backing store path: None Backing store flags: LUN: 1 Type: passthrough SCSI ID: IET 00010001 SCSI SN: beaf11 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg0 Backing store flags: LUN: 2 Type: passthrough SCSI ID: IET 00010002 SCSI SN: beaf12 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg1 Backing store flags: LUN: 3 Type: passthrough SCSI ID: IET 00010003 SCSI SN: beaf13 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg10 Backing store flags: LUN: 4 Type: passthrough SCSI ID: IET 00010004 SCSI SN: beaf14 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg11 Backing store flags: LUN: 5 Type: passthrough SCSI ID: IET 00010005 SCSI SN: beaf15 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg2 Backing store flags: LUN: 6 Type: passthrough SCSI ID: IET 00010006 SCSI SN: beaf16 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg3 Backing store flags: LUN: 7 Type: passthrough SCSI ID: IET 00010007 SCSI SN: beaf17 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg4 Backing store flags: LUN: 8 Type: passthrough SCSI ID: IET 00010008 SCSI SN: beaf18 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg5 Backing store flags: LUN: 9 Type: passthrough SCSI ID: IET 00010009 SCSI SN: beaf19 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg6 Backing store flags: LUN: 10 Type: passthrough SCSI ID: IET 0001000a SCSI SN: beaf110 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg7 Backing store flags: LUN: 11 Type: passthrough SCSI ID: IET 0001000b SCSI SN: beaf111 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg8 Backing store flags: LUN: 12 Type: passthrough SCSI ID: IET 0001000c SCSI SN: beaf112 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Prevent removal: No Readonly: No SWP: No Thin-provisioning: No Backing store type: sg Backing store path: /dev/sg9 Backing store flags: Account information: ACL information: ALL [root@localhost dcs-ods-nvtl]#