This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tsm:tsm_operation_db [2021/01/01 21:25] 127.0.0.1 external edit |
tsm:tsm_operation_db [2025/01/29 21:52] (current) manu |
||
---|---|---|---|
Line 40: | Line 40: | ||
</code> | </code> | ||
* Restart the server. | * Restart the server. | ||
+ | |||
+ | ==== Restore DB ===== | ||
+ | |||
+ | **Usefull files to backup with the DB** | ||
+ | * /<instance>/cert* : contains the certificates exchanged with the TSM nodes | ||
+ | * /<instance>/volhist.dat and devconf.dat : Server history | ||
+ | * /opt/tivoli/tsm/client/ba/bin/dsmcert.kdb and dsmcert.sth : contains the certificate to use dsmadmc command line, can be reset by deleting these files and on server reset admin account: # upd admin admin SESSIONSECurity=TRANSitional | ||
+ | * certificate for Operation Center | ||
+ | |||
+ | |||
+ | === Restore from library === | ||
+ | |||
+ | For tape libraries, you need to add one line per K7, with element number on the VTL | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 885BCML5 4097 101*/ | ||
+ | <cli> | ||
+ | /* Device Configuration */ | ||
+ | SET SERVERNAME TSM_OPECGDY | ||
+ | DEFINE LIBRARY TS3100 LIBTYPE=SCSI SERIAL="00L2U78V8326_LL0" SHARED=NO AUTOLABEL=NO RESETDRIVE=YES | ||
+ | DEFINE DRIVE TS3100 DRIVE1 ELEMENT=256 ONLINE=Yes WWN="2001000E1114975E" SERIAL="1068045826" | ||
+ | DEFINE DRIVE TS3100 DRIVE2 ELEMENT=257 ONLINE=Yes WWN="2004000E1114975E" SERIAL="1068069878" | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 885BCML5 4097 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 886BCML5 4104 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 887BCML5 4100 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 888BCML5 4096 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 889BCML5 4103 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 895BCML5 4107 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 896BCML5 4111 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 897BCML5 4115 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 898BCML5 4106 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 899BCML5 4112 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 915BCML5 4116 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 916BCML5 4102 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 917BCML5 4098 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 918BCML5 4101 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 919BCML5 4105 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 935BCML5 4113 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 936BCML5 4114 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 937BCML5 4099 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 938BCML5 4108 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 939BCML5 4110 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 940BCML5 4109 101*/ | ||
+ | /* LIBRARYINVENTORY SCSI TS3100 941BCML5 4117 101*/ | ||
+ | DEFINE PATH TSM_OPECGDY TS3100 SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=lb2.1.0.5 ONLINE=YES | ||
+ | DEFINE PATH TSM_OPECGDY DRIVE1 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=TS3100 DEVICE=mt2.0.0.5 ONLINE=YES | ||
+ | DEFINE PATH TSM_OPECGDY DRIVE2 SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=TS3100 DEVICE=mt3.0.0.5 ONLINE=YES | ||
+ | DEFINE DEVCLASS ULTRIUM5 DEVT=LTO FORMAT=ULTRIUM5C MOUNTL=DRIVES MOUNTWAIT=15 MOUNTRETENTION=15 PREFIX=ADSM LIBRARY=TS3100 WORM=NO DRIVEENCRYPTION=ALLOW LBPROTECT=NO | ||
+ | SERVERBACKUPNODEID 1 | ||
+ | </cli> | ||
==== Moving the database ==== | ==== Moving the database ==== | ||
Line 64: | Line 112: | ||
/tsmdb008 | /tsmdb008 | ||
</code> | </code> | ||
- | * Remove the database instance. | + | * Remove the database instance, connected as instance owner |
<code> | <code> | ||
- | TSM:SERVER1> dsmserv removedb TSMDB1 | + | # dsmserv removedb TSMDB1 |
</code> | </code> | ||
* Issue the DSMSERV RESTORE DB utility to move the database to the new directories. For example: | * Issue the DSMSERV RESTORE DB utility to move the database to the new directories. For example: | ||
<code> | <code> | ||
- | TSM:SERVER1> dsmserv restore db todate=today on=dbdir.file | + | # dsmserv restore db todate=today on=dbdir.file |
</code> | </code> | ||
* Start the server. | * Start the server. |