1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

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

Discussion in 'BCP / DRP' started by FBatista69, Nov 14, 2011.

  1. FBatista69

    FBatista69 New Member

    Joined:
    Mar 8, 2008
    Messages:
    15
    Likes Received:
    0
    Occupation:
    IT Architect
    Location:
    Portugal - Lisbon
    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.  
  3. mikeymac

    mikeymac Moderator

    Joined:
    Jun 20, 2003
    Messages:
    904
    Likes Received:
    27
    Location:
    Syracuse, NY
    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
    
    
     
  4. FBatista69

    FBatista69 New Member

    Joined:
    Mar 8, 2008
    Messages:
    15
    Likes Received:
    0
    Occupation:
    IT Architect
    Location:
    Portugal - Lisbon
    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
     
  5. THE_WIPET

    THE_WIPET Senior Member

    Joined:
    May 10, 2006
    Messages:
    562
    Likes Received:
    16
    Location:
    Montreal
    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.
     
  6. FBatista69

    FBatista69 New Member

    Joined:
    Mar 8, 2008
    Messages:
    15
    Likes Received:
    0
    Occupation:
    IT Architect
    Location:
    Portugal - Lisbon
    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
     
  7. FBatista69

    FBatista69 New Member

    Joined:
    Mar 8, 2008
    Messages:
    15
    Likes Received:
    0
    Occupation:
    IT Architect
    Location:
    Portugal - Lisbon
    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>
     
  8. Jeroen

    Jeroen Senior Member

    Joined:
    Oct 2, 2002
    Messages:
    355
    Likes Received:
    12
    Occupation:
    AIX + storage administrator
    Location:
    netherlands
    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.
     
  9. FBatista69

    FBatista69 New Member

    Joined:
    Mar 8, 2008
    Messages:
    15
    Likes Received:
    0
    Occupation:
    IT Architect
    Location:
    Portugal - Lisbon
    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?
     

Share This Page