Skip to Content
avatar image
Former Member

MaxDB recovery with rsync

Here is brief about scenario : Server1 was working good but due to migration we did server to server copy (rsync) and built Server2. Server2 also working good, but Database backup not happening due to hardware block corruption so need to again change hardware. Here is option which we are trying

Built Server 3 from server 1 using rsync and decided to apply logs which are generated on server 2 from migration time to till date. Lets say last log post migration was 5166 and current log is 5180. Copied all log files to Server 3 and start log recovery with recover_start log 5167 command, it's completed with rc=0 and DB start automatically started in Online mode. We again started DB in admin mode and started apply further logs with recover_replace command but its failing rc='-7075'.

Checked links -->

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 16, 2017 at 08:45 AM

    Hello James,

    Thanks for update.

    In our scenario, we shutdown SAP on source system (server1) and then started rsync and completed copy to target host (server2). Now as Server 2 has hardware issues so we are using Server 1 again for copying to new lpar Server3 and using server 2 log files.

    We did not used restore initialization option and only used recovery log files. The first log 5167 got applied correctly and DB came online and now when applying others its giving error.

    As I understand, now DB is online so further logs not possible to get applied but when I tried to apply 5167 again, it went well with RC=0 ?

    How to do forward recovery post rsync ? as we have log files post completion of rsync

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 16, 2017 at 12:29 AM


    The key point is if you restore backup and recover log from other database, once the target database is online, then you have no way to continue to apply log. This is the design, because you will use "restore initialization option" to do this restore, this option will reformat the log before FIRST online database, then there is no way to apply log.

    SAP note 129352 also helps our scenario.

    Best regards,

    Add comment
    10|10000 characters needed characters exceeded