Professional Documents
Culture Documents
Moving Both The Database and Recovery Log
Moving Both The Database and Recovery Log
You can move the database, active log, and archive logs that are on the same file system to various
directories on different file systems for better protection.
mkdir /tsmdb005
mkdir /tsmdb006
mkdir /tsmdb007
mkdir /tsmdb008
mkdir /activelog2
mkdir /archivelog2
mkdir l:\tsm\db005
mkdir m:\tsm\db006
mkdir n:\tsm\db007
mkdir o:\tsm\db008
mkdir p:\tsm\activelog
mkdir q:\tsm\archivelog
4. Create a file that lists the locations of the database directories. This file will be used if the
database must be restored. Enter each location on a separate line. For example, here are
the contents of the dbdirs.txt file:
/tsmdb005
/tsmdb006
/tsmdb007
/tsmdb008
l:\tsm\db005
m:\tsm\db006
n:\tsm\db007
o:\tsm\db008
5. Remove the database instance.
dsmserv removedb TSMDB1
6. Issue the DSMSERV RESTORE DB utility to move the database and create the new active
log. For example:
cp -r /archivelog/* /archivelog2