Results 1 to 8 of 8
  1. #1
    Newcomer FBatista69's Avatar
    Join Date
    Mar 2008
    Location
    Portugal - Lisbon
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Restore TSM Server on DRP Site on different Hadware (Library with only One Drive)

    Hi guys,

    I need some guidance in order to accomplish a TSM Server 5.5 restore on DRP Site in different hardware. I Have DB being copied to the DRP Server, devconfig and Volhist. Both environments are configured with the same TSM server version, same Operating System (Windows) but the tape libraries are different, i have a TS3100 with 2 LTO 5 Drives on Production and a TS3200 with One LTO 5 Drive on DRP.


    The plan is to restore a SAP Server in the DRP Site, but for that i need to restore TSM database and only then go for the server.

    After restoring the database, setting TSM devices, what would be my next steps?
    Can i restore directly from offsite tapes?
    Do i need to restore tape pool first? How can i do this with only one drive? Is it possible?

    Please feel free to ask for some information that you consider relevant, i would be more much appreciated for any help.

    Best regards

    Francisco Batista

  2. #2
    Moderator mikeymac's Avatar
    Join Date
    Jun 2003
    Location
    Syracuse, NY
    Posts
    896
    Thanks
    9
    Thanked 12 Times in 12 Posts

    Default

    Hi, Francisco! Welcome to adsm.org.

    I've never run a TSM server on Windows, so my knowledge is limited there.

    You can restore directly from your offsite tapes. If you have Disaster Recovery Manager (DRM) running, check out the stanza of the DRPlan called "RECOVERY.SCRIPT.DISASTER.RECOVERY.MODE"

    This snippet is from one of my AIX systems, but I think the same steps will apply in your environment (copy volhist and devconfig to the default installation directory, mark "onsite" tapes as destroyed, offsite tapes as available, etc.) :

    Code:
     # Set the server working directory.
    cd /usr/tivoli/tsm/server/bin
     # Restore server options, volume history, device configuration files.
    cp /apps/tsm/drm/plan/mytsmserver.DSMSERV.OPT.FILE \
        /usr/tivoli/tsm/server/bin/dsmserv.opt
    cp /apps/tsm/drm/plan/mytsmserver.VOLUME.HISTORY.FILE \
        /usr/tivoli/tsm/server/bin/volhist.txt
    cp /apps/tsm/drm/plan/mytsmserver.DEVICE.CONFIGURATION.FILE \
        /usr/tivoli/tsm/server/bin/devconfig.txt
    export DSMSERV_CONFIG=/usr/tivoli/tsm/server/bin/dsmserv.opt
     # Create and format log and database files.
    /apps/tsm/drm/plan/mytsmserver.LOGANDDB.VOLUMES.CREATE 2>&1 \
    | tee /apps/tsm/drm/plan/mytsmserver.LOGANDDB.VOLUMES.CREATE.log
     # Initalize the log and database files.
    /apps/tsm/drm/plan/mytsmserver.LOGANDDB.VOLUMES.INSTALL 2>&1 \
    | tee /apps/tsm/drm/plan/mytsmserver.LOGANDDB.VOLUMES.INSTALL.log
     # Restore the server database to latest version backed up per the
    # volume history file.
    /usr/bin/dsmserv restore db todate=11/12/2011 totime=07:46:40 source=dbb
     # Start the server.
    nohup /usr/bin/dsmserv &
    print Please start new server console with command dsmadmc -CONSOLE.
    print Press enter to continue recovery script execution.
    read pause
     # Register Server Licenses.
    dsmadmc -id=$1 -pass=$2 -serv=$3 -ITEMCOMMIT \
      -OUTFILE=/apps/tsm/drm/plan/mytsmserver.LICENSE.REGISTRATION.log \
         macro /apps/tsm/drm/plan/mytsmserver.LICENSE.REGISTRATION
     # Tell Server these copy storage pool volumes are available for use.
     # Recovery Administrator: Remove from macro any volumes not obtained from vault.
    dsmadmc -id=$1 -pass=$2 -serv=$3 -ITEMCOMMIT \
      -OUTFILE=/apps/tsm/drm/plan/mytsmserver.COPYSTGPOOL.VOLUMES.AVAILABLE.log \
         macro /apps/tsm/drm/plan/mytsmserver.COPYSTGPOOL.VOLUMES.AVAILABLE
     # Volumes in this macro were not marked as 'offsite' at the time
    # PREPARE ran. They were likely destroyed in the disaster.
     # Recovery Administrator: Remove from macro any volumes not destroyed.
    dsmadmc -id=$1 -pass=$2 -serv=$3 -ITEMCOMMIT \
      -OUTFILE=/apps/tsm/drm/plan/mytsmserver.COPYSTGPOOL.VOLUMES.DESTROYED.log \
         macro /apps/tsm/drm/plan/mytsmserver.COPYSTGPOOL.VOLUMES.DESTROYED
     # Mark primary storage pool volumes as ACCESS=DESTROYED.
    # Recovery administrator: Remove from macro any volumes not destroyed.
    dsmadmc -id=$1 -pass=$2 -serv=$3 -ITEMCOMMIT \
      -OUTFILE=/apps/tsm/drm/plan/mytsmserver.PRIMARY.VOLUMES.DESTROYED.log \
         macro /apps/tsm/drm/plan/mytsmserver.PRIMARY.VOLUMES.DESTROYED

  3. #3
    Newcomer FBatista69's Avatar
    Join Date
    Mar 2008
    Location
    Portugal - Lisbon
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Already copied DSMSERV VOLHIST and DEVCONFIG to the drp machine and have the same TSM and components version to start the instalation.

    Thanks for your reply, i will try to follow the procedure today and will let you know how it goes. Thanks for putting me in the right track.

    Talk to you soon.

    Thanks a lot

  4. #4
    Senior Member THE_WIPET's Avatar
    Join Date
    May 2006
    Location
    Montreal
    Posts
    562
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    This help me alot when I did my first DR test with TSM 5.5. on windows.

    http://www.redbooks.ibm.com/abstracts/sg246844.html


    If you use the DRM when preparing your vault, look at the "planexpl.vbs" in the \Program file\tivoli\TSM\server

    there is a good script with a little bit of tweeking that can help you do a DR test. But the Redbook help me alot.

  5. #5
    Newcomer FBatista69's Avatar
    Join Date
    Mar 2008
    Location
    Portugal - Lisbon
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi guys,

    Thanks for your replies, yesterday finally i managed to teste the restore after having everything set up to go.
    I spent some time reading the Disaster Recovery redbook, it was very helpfull, but still have some doubts, specially after trying the restoration yesterday night.
    On the primary TSM system i ran the prepare command, copied devconfig, volhist, dsmserv.dsk and opt, moved all the DRMedia to the disaster site.
    On the restore server, i configured with the same disk structure, installed TSM and all components (ISC, AC, Baclient) on the same paths as the primary system.
    Now where i think i went wrong ...
    I have run the initialization wizards before running the PRIMARY.VOLUMES.REPLACEMENT.CREATE.CMD script (generated after exploding the DRMPlan).
    Result: After running the script i ended with a TSM server not able to start, and i saw some messages saying that some files were in use.

    Should i just install TSM and all the components and not initialize in order to run the script?

    Should the devconfig, volhist, be copied to someplace on the new server? Per my understanding, all the files are reconstructed automatically by the DRM scripts.

    Can someone please guide me through this process, i'm not a guy that asks for help on the first problems, but need to move on and i confess this is my first DRM recovery.

    Thanks in advance.

    Best regards.

    Francisco Batista

  6. #6
    Newcomer FBatista69's Avatar
    Join Date
    Mar 2008
    Location
    Portugal - Lisbon
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Just one more update....

    Just tried to run the PRIMARY.VOLUMES.REPLACEMENT.CREATE.CMD without initializing the TSM Server, probably not new to you guys, but no TSM server started, no service installed on Windows.

    This is the end of the script output:

    ANR0366I Database format in progress; 7980 megabytes of 8000 processed.
    ANR0366I Database format in progress; 7984 megabytes of 8000 processed.
    ANR0366I Database format in progress; 7988 megabytes of 8000 processed.
    ANR0366I Database format in progress; 7992 megabytes of 8000 processed.
    ANR0366I Database format in progress; 7996 megabytes of 8000 processed.
    ANR0367I Database format completed.
    ANR0353I Recovery log analysis pass in progress.
    ANR0354I Recovery log redo pass in progress.
    ANR0355I Recovery log undo pass in progress.
    ANR0352I Transaction recovery complete.
    ANR0992I Server installation complete.
    ANR0900I Processing options file E:\program files\tivoli\tsm\server1\dsmserv.o-
    pt.
    ANR7800I DSMSERV generated at 15:32:37 on Jan 19 2011.
    Tivoli Storage Manager for Windows
    Version 5, Release 5, Level 5.2
    Licensed Materials - Property of IBM
    (C) Copyright IBM Corporation 1990, 2009.
    All rights reserved.
    U.S. Government Users Restricted Rights - Use, duplication or disclosure
    restricted by GSA ADP Schedule Contract with IBM Corporation.
    ANR4726I The ICC support module has been loaded.
    ANR8200I TCP/IP Version 4 driver ready for connection with clients on port
    1500.
    ANR0200I Recovery log assigned capacity is 2000 megabytes.
    ANR0201I Database assigned capacity is 8000 megabytes.
    ANR4600I Processing volume history file E:\PROGRAM FILES\TIVOLI\TSM\SERVER1\VO-
    LHIST.OUT.
    ANR8840E Unable to open device LB2.1.0.1 with file handle 2.
    ANR8418E DEFINE PATH: An I/O error occurred while accessing library LB2.1.0.2.
    ANR0906I Line No. : 18
    ANR0907I Statement : DEFINE PATH TSM LB2.1.0.2 SRCTYPE=SERVER
    DESTTYPE=LIBRARY DEVICE=LB2.1.0.1 ONLINE=YES
    ANR3239E Error 262 while creating device class DBBACKUP.
    ANR1794W TSM SAN discovery is disabled by options.
    Wait for the server to start. Ensure that the Administrative command
    line client option file is set up to communicate with this server, then
    press enter to continue recovery script execution.
    Press any key to continue . . .
    E:\DRM_FILES\RECPLAN>

  7. #7
    Senior Member
    Join Date
    Oct 2002
    Location
    netherlands
    Posts
    334
    Thanks
    0
    Thanked 9 Times in 9 Posts

    Default

    ANR8840E Unable to open device LB2.1.0.1 with file handle 2

    Does the disaster recovery have the library on device LB2.1.0.1?
    Check in the device manager on which address you see the library and adjust the devconfig file if it is different then on the original server.
    Same goes for the paths of the drives.

  8. #8
    Newcomer FBatista69's Avatar
    Join Date
    Mar 2008
    Location
    Portugal - Lisbon
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Guys,

    Just for an update and to thank you for the input.

    I managed to start TSM Server on the recovery machine, in fact like some of you suggested, i had a problem with the stupide library, and i managed to get throught that by defining a manual library.

    Well I managed to restore files from copypool tapes to the machine that should be restored (SAP Server). Everything was running fine, today i installed the TDP for SAP R3 for Oracle, i managed to get it communicating and authenticating with the TSM Server but when i try to restore the database files (no matter some tablesapce or the entire database) i can't get anything from TSM.

    Last small step for finishing the recovery, and the most important, but backup utility reports no files found!!!!! I have a guy from SAP working with me on this and i says this is not SAP, it leaves me with the problem with my hands.

    Does anyone has ever restored an SAP system while testing DRP?

Similar Threads

  1. Replies: 0
    Last Post: 03-23-2011, 12:23 PM
  2. increasing restore speeds for the COPY POOLS (DRP)
    By smetter in forum Performance Tuning
    Replies: 3
    Last Post: 05-25-2010, 09:28 AM
  3. DRP TSM on AIX
    By AlanAyala in forum Disaster Recovery Module
    Replies: 2
    Last Post: 04-02-2008, 02:51 PM
  4. Restore tape from site of production to rescue site...
    By chris_magic in forum Disaster Recovery Module
    Replies: 7
    Last Post: 11-26-2007, 01:32 PM
  5. Recover and restore tsm from lto library system to standalone drive system
    By bs19440 in forum Restore / Recovery Discussion
    Replies: 2
    Last Post: 07-20-2006, 07:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •