配置TSM磁带库
#定义library
tsm: SERVER1>def library library1 libtype=scsi
ANR2017I Administrator ADMIN issued command: DEFINE LIBRARY library1 libtype=scsi
ANR8400I Library LIBRARY1 defined.
tsm: SERVER1>q libr
ANR2017I Administrator ADMIN issued command: QUERY LIBRARY
Library Name Library ACS Private Scratch WORM External Shared LanFree ObeyMountRetention
Type Id Category Category Scratch Manager
Category
------------ ---------- --- -------- -------- -------- -------------- ------ ------- ------------------
LIBRARY1 SCSI No
- #定义路径
tsm: SERVER1>def path server1 library1 srctype=server destt=library device=/dev/tsmscsi/lb0
ANR2017I Administrator ADMIN issued command: DEFINE PATH server1 library1 srctype=server destt=library device=/dev/tsmscsi/lb0
ANR8953I Library LIBRARY1 with serial number is updated with the newly discovered serial number 37971e590.
ANR1720I A path from SERVER1 to LIBRARY1 has been defined.
tsm: SERVER1>q path
ANR2017I Administrator ADMIN issued command: QUERY PATH
Source Name Source Type Destination Destination On-Line
Name Type
----------- ----------- ----------- ----------- -------
SERVER1 SERVER LIBRARY1 LIBRARY Yes
tsm: SERVER1>upda library library1 autolabel=yes
ANR2017I Administrator ADMIN issued command: UPDATE LIBRARY library1 autolabel=yes
ANR8465I Library LIBRARY1 updated.
tsm: SERVER1>def drive library1 drive0
ANR2017I Administrator ADMIN issued command: DEFINE DRIVE library1 drive0
ANR8366E DEFINE DRIVE: Invalid value for ELEMENT parameter.
ANS8001I Return code 3.
ANR2017I Administrator ADMIN issued command: ROLLBACK
tsm: SERVER1>show slots library1
ANR2017I Administrator ADMIN issued command: show slots library1
PVR slot information for library LIBRARY1.
Library : LIBRARY1
Product Id : Scalar i500
Support module : 2
Mount count : 0
Drives : 2
Slots : 4
Changers : 1
Import/Exports : 0
Device : /dev/tsmscsi/lb0
Drive 0, element 2051
Drive 1, element 2052
Changer 0, element 0
more... (<ENTER> to continue, 'C' to cancel)
Slot 0, status Full, element number 1, barcode not present, barcode value <>, devT=LTO, mediaT=-1, elemT=ANY
Slot 1, status Full, element number 2, barcode not present, barcode value <>, devT=LTO, mediaT=-1, elemT=ANY
Slot 2, status Full, element number 3, barcode not present, barcode value <>, devT=LTO, mediaT=-1, elemT=ANY
Slot 3, status Full, element number 4, barcode not present, barcode value <>, devT=LTO, mediaT=-1, elemT=ANY
slot element range 1 - 4
tsm: SERVER1>
- #定义drive
tsm: SERVER1>def drive library1 drive0 element=2051
ANR2017I Administrator ADMIN issued command: DEFINE DRIVE library1 drive0 element=2051
ANR8404I Drive DRIVE0 defined in library LIBRARY1.
tsm: SERVER1>def drive library1 drive1 element=2052
ANR2017I Administrator ADMIN issued command: DEFINE DRIVE library1 drive1 element=2052
ANR8404I Drive DRIVE1 defined in library LIBRARY1.
tsm: SERVER1>q drive
ANR2017I Administrator ADMIN issued command: QUERY DRIVE
Library Name Drive Name Device Type On-Line
------------ ------------ ----------- -------------------
LIBRARY1 DRIVE0 UNKNOWN Yes
LIBRARY1 DRIVE1 UNKNOWN Yes
tsm: SERVER1>def path server1 drive0 srct=server destt=drive libr=library1 device=/dev/tsmscsi/mt0
ANR2017I Administrator ADMIN issued command: DEFINE PATH server1 drive0 srct=server destt=drive libr=library1 device=/dev/tsmscsi/mt0
ANR8955I Drive DRIVE0 in library LIBRARY1 with serial number is updated with the newly discovered serial number 37971e591.
ANR1720I A path from SERVER1 to LIBRARY1 DRIVE0 has been defined.
tsm: SERVER1>q driv
ANR2017I Administrator ADMIN issued command: QUERY DRIVE
Library Name Drive Name Device Type On-Line
------------ ------------ ----------- -------------------
LIBRARY1 DRIVE0 LTO Yes
LIBRARY1 DRIVE1 UNKNOWN Yes
tsm: SERVER1>def path server1 drive1 srct=server destt=drive libr=library1 device=dev/tsmscsi/mt1
ANR2017I Administrator ADMIN issued command: DEFINE PATH server1 drive1 srct=server destt=drive libr=library1 device=dev/tsmscsi/mt1
ANR8420E DEFINE PATH: An I/O error occurred while accessing drive DRIVE1.
ANS8001I Return code 15.
ANR2017I Administrator ADMIN issued command: ROLLBACK
tsm: SERVER1>def path server1 drive1 srct=server destt=drive libr=library1 device=/dev/tsmscsi/mt1
ANR2017I Administrator ADMIN issued command: DEFINE PATH server1 drive1 srct=server destt=drive libr=library1 device=/dev/tsmscsi/mt1
ANR8955I Drive DRIVE1 in library LIBRARY1 with serial number is updated with the newly discovered serial number 37971e592.
ANR1720I A path from SERVER1 to LIBRARY1 DRIVE1 has been defined.
tsm: SERVER1>q driv
ANR2017I Administrator ADMIN issued command: QUERY DRIVE
Library Name Drive Name Device Type On-Line
------------ ------------ ----------- -------------------
LIBRARY1 DRIVE0 LTO Yes
LIBRARY1 DRIVE1 LTO Yes
tsm: SERVER1>q path
ANR2017I Administrator ADMIN issued command: QUERY PATH
Source Name Source Type Destination Destination On-Line
Name Type
----------- ----------- ----------- ----------- -------
SERVER1 SERVER LIBRARY1 LIBRARY Yes
SERVER1 SERVER DRIVE0 DRIVE Yes
SERVER1 SERVER DRIVE1 DRIVE Yes
tsm: SERVER1>def dev library1 devt=lto format=ultrium2c libr=library1
ANR2017I Administrator ADMIN issued command: DEFINE DEVCLASS library1 devt=lto format=ultrium2c libr=library1
ANR2203I Device class LIBRARY1 defined.
tsm: SERVER1>q dev
ANR2017I Administrator ADMIN issued command: QUERY DEVCLASS
Device Device Storage Device Format Est/Max Mount
Class Access Pool Type Capacity Limit
Name Strategy Count (MB)
--------- ---------- ------- --------- ------ -------- ------
DISK Random 3
LIBRARY1 Sequential 0 LTO ULTRI- DRIVES
UM2C
tsm: SERVER1>def stgpool hzqpool library1 maxscratch=2
ANR2017I Administrator ADMIN issued command: DEFINE STGPOOL hzqpool library1 maxscratch=2
ANR2200I Storage pool HZQPOOL defined (device class LIBRARY1).
tsm: SERVER1>q stg
ANR2017I Administrator ADMIN issued command: QUERY STGPOOL
Storage Device Estimated Pct Pct High Low Next Stora-
Pool Name Class Name Capacity Util Migr Mig Mig ge Pool
Pct Pct
----------- ---------- ---------- ----- ----- ---- --- -----------
ARCHIVEPOOL DISK 5.0 M 0.0 0.0 90 70
BACKUPPOOL DISK 10.0 M 0.0 0.0 90 70
HZQPOOL LIBRARY1 0.0 M 0.0 0.0 90 70
SPACEMGPOOL DISK 0.0 M 0.0 0.0 90 70
tsm: SERVER1>upd stg backuppool nextpool=hzqpool
ANR2017I Administrator ADMIN issued command: UPDATE STGPOOL backuppool nextpool=hzqpool
ANR2202I Storage pool BACKUPPOOL updated.
tsm: SERVER1>q stg
ANR2017I Administrator ADMIN issued command: QUERY STGPOOL
Storage Device Estimated Pct Pct High Low Next Stora-
Pool Name Class Name Capacity Util Migr Mig Mig ge Pool
Pct Pct
----------- ---------- ---------- ----- ----- ---- --- -----------
ARCHIVEPOOL DISK 5.0 M 0.0 0.0 90 70
BACKUPPOOL DISK 10.0 M 0.0 0.0 90 70 HZQPOOL
HZQPOOL LIBRARY1 0.0 M 0.0 0.0 90 70
SPACEMGPOOL DISK 0.0 M 0.0 0.0 90 70
tsm: SERVER1>label libv library1 search=yes labels=barcode overwrite=yes checkin=scr
ANR2017I Administrator ADMIN issued command: LABEL LIBVOLUME library1 search=yes labels=barcode overwrite=yes checkin=scr
ANR0984I Process 5 for LABEL LIBVOLUME started in the BACKGROUND at 12:12:07 PM.
ANR8799I LABEL LIBVOLUME: Operation for library LIBRARY1 started as process 5.
ANS8003I Process number 5 started.
tsm: SERVER1>ANR8810I Volume AD0001 has been labeled in library LIBRARY1.
ANR8810I Volume AD0002 has been labeled in library LIBRARY1.
ANR8810I Volume AD0003 has been labeled in library LIBRARY1.
ANR8810I Volume AD0004 has been labeled in library LIBRARY1.
ANR8801I LABEL LIBVOLUME process 5 for library LIBRARY1 completed; 4 volume(s) labeled, 4 volume(s) checked-in.
ANR0985I Process 5 for LABEL LIBVOLUME running in the BACKGROUND completed with completion state SUCCESS at 12:12:07 PM.
tsm: SERVER1>qu vol
ANR2017I Administrator ADMIN issued command: QUERY VOLUME
Volume Name Storage Device Estimated Pct Volume
Pool Name Class Name Capacity Util Status
------------------------ ----------- ---------- --------- ----- --------
/opt/tivoli/tsm/server/- ARCHIVEPOOL DISK 5.0 M 0.0 On-Line
bin/archive.dsm
/opt/tivoli/tsm/server/- BACKUPPOOL DISK 10.0 M 0.0 On-Line
bin/backup.dsm
tsm: SERVER1>def vol hzqpool ad0002
ANR2017I Administrator ADMIN issued command: DEFINE VOLUME hzqpool ad0002
ANR2206I Volume AD0002 defined in storage pool HZQPOOL (device class LIBRARY1).
tsm: SERVER1>ANR4502W No files have been defined for automatically storing sequential volume history information.
tsm: SERVER1>q vol
ANR2017I Administrator ADMIN issued command: QUERY VOLUME
Volume Name Storage Device Estimated Pct Volume
Pool Name Class Name Capacity Util Status
------------------------ ----------- ---------- --------- ----- --------
/opt/tivoli/tsm/server/- ARCHIVEPOOL DISK 5.0 M 0.0 On-Line
bin/archive.dsm
/opt/tivoli/tsm/server/- BACKUPPOOL DISK 10.0 M 0.0 On-Line
bin/backup.dsm
AD0002 HZQPOOL LIBRARY1 0.0 M 0.0 Empty
tsm: SERVER1>q libv
ANR2017I Administrator ADMIN issued command: QUERY LIBVOLUME
Library Name Volume Name Status Owner Last Use Home Device
Element Type
------------ ----------- ---------------- ---------- --------- ------- ------
LIBRARY1 AD0001 Scratch 1 LTO
LIBRARY1 AD0002 Private 2 LTO
LIBRARY1 AD0003 Scratch 3 LTO
LIBRARY1 AD0004 Scratch 4 LTO
tsm: SERVER1>q vol
ANR2017I Administrator ADMIN issued command: QUERY VOLUME
Volume Name Storage Device Estimated Pct Volume
Pool Name Class Name Capacity Util Status
------------------------ ----------- ---------- --------- ----- --------
/opt/tivoli/tsm/server/- ARCHIVEPOOL DISK 5.0 M 0.0 On-Line
bin/archive.dsm
/opt/tivoli/tsm/server/- BACKUPPOOL DISK 10.0 M 0.0 On-Line
bin/backup.dsm
AD0002 HZQPOOL LIBRARY1 0.0 M 0.0 Empty
tsm: SERVER1>
坚持,专注