You can move or change the TSM DB, Active log, Archive Log and Archive failover logs to the new directories or new filesystems if required. Follow the below steps to achieve this goal. However, it is highly recommend to take FULL DB backup before doing these below steps. Also make sure to make a copy of Volhist.out and dsmserv.opt files in safe location just incase if you need to restore the TSM DB.
Moving only TSM database to the new directory
To move the database from one location on the server to another location, follow this procedure
- Back up the database by issuing the following command:
backup db type=full devclass=LTO
- Halt the server.
- Create directories for the database. The directories must be accessible to the user ID of the database manager. For example:
mkdir /tsmdb005
mkdir /tsmdb006
mkdir /tsmdb007
mkdir /tsmdb008
- 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
- Remove the database instance by issuing the following command:
dsmserv removedb TSMDB1
- Issue the DSMSERV RESTORE DB utility to move the database to the new directories. For example:
dsmserv restore db todate=today on=dbdir.file
- Start the server.
Moving only TSM Active log to the new directory
You can move only the active log from one directory to another by following these steps
- First, Halt the server.
- Create a new active log directory by issuing the following command:
mkdir /activelog2
- Update the dsmserv.opt option file for the new active log directory by issuing the following command:
activelogdirectory /activelog2
- Restart the server. The active logs are automatically moved by the database manager from the old directory to the new directory.
- Now you can delete the old directory.
Moving only TSM Archive log to the new directory
You can also move only the TSM archive log from one directory to another. Follow these steps to do this
- First, Halt the server.
- Create an archive log directory by issuing the following command:
mkdir /archivelog2
- Update the dsmserv.opt option file for the new archive log directory by issuing the following command:
archlogdirectory /archivelog2
- Restart the server.
- Move the archive logs from the old directory to the new directory. Preserve any subdirectory structure. Use and verify a recursive copy directory command. For example:
cp -r /archivelog/* /archivelog2
- Now you can remove the old directory.
Moving only the TSM Archive failover log to the new directory
Move only the archive failover log from one directory to another by following these steps
- Halt the server.
- Create an archive failover log directory by issuing the following command:
mkdir /tsmserver1/archfaillog2
- Update the dsmserv.opt option file for the new archive failover log directory by issuing the following command:
archfailoverlogdirectory /tsmserver1/archfaillog2
- Restart the server.
- Copy or move the archive log from the old directory to the new directory. Preserve any subdirectory structure. Use and verify a recursive copy directory command. For example:
cp -r /tsmserver1/archfaillog/* /tsmserver1/archfaillog2
- Now you can remove the old directory.
0 Comment to "Follow these steps to change the TSM DB and Recovery Log filesystems"
Post a Comment