IBM Tivoli Storage Manager, Version 7.1

Moving only the active log, archive log, or archive failover log

You can move only the active log, archive log, or archive failover log from one directory to another. You can move the logs as part of performance tuning, replacing a hard disk drive, or changing to a file system with more space.

Procedure

  1. Stop the server.
  2. Create a directory by using the following commands for the log that you want to move.
    Table 1. Commands for new directories
    Log name Command
    Active log AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems
    mkdir /activelog2
    Windows operating systems
    mkdir p:\tsm\activelog
    Archive log AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems
    mkdir /archivelog2
    Windows operating systems
    mkdir q:\tsm\archivelog
    Archive failover log AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems
    mkdir /tsmserver1/archfaillog2
    Windows operating systems
    mkdir e:\tsmserver1\archfaillog2
  3. Update the dsmserv.opt option file for the new directory by using one of the following commands.
    Table 2. Server option example to update the dsmserv.opt option file
    Log name Server option example
    Active log AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems
    activelogdirectory /activelog2
    Windows operating systems
    activelogdirectory p:\tsm\activelog
    Archive log AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems
    archlogdirectory /archivelog2
    Windows operating systems
    archlogdirectory q:\tsm\archivelog
    Archive failover log AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems
    archfailoverlogdirectory
    /tsmserver1/archfaillog2
    Windows operating systems
    archfailoverlogdirectory
    e:\tsmserver1\archfaillog2
  4. Restart the server.
  5. Move or copy the logs from the old directory to the new directory.
    Table 3. Commands to move or copy the logs
    Log name Command
    Active log No action is necessary. The active logs are automatically moved by the database manager from the old directory to the new directory.
    Archive log Preserve the subdirectory structure. Use and verify a recursive copy directory command. For example:

    AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems
    cp -r /archivelog/* /archivelog2
    Windows operating systems
    xcopy /s k:\tsm\archivelog\*
    q:\tsm\archivelog
    Archive failover log Preserve the subdirectory structure. Use and verify a recursive copy directory command. For example:

    AIX operating systems HP-UX operating systems Linux operating systems Oracle Solaris operating systems
    cp -r /tsmserver1/archfaillog/*
    /tsmserver1/archfaillog2
    Windows operating systems
    xcopy /s c:\tsmserver1\archfaillog\*
    f:\tsmserver1\archfaillog2
  6. Optional: Remove the old directory by using the rmdir command.


Feedback