lw lw · Sep 7, 2023 go to post

On the primary,  I do it as document says, only mirror support journal restore?

If I do journal restore for a database which is not mirrored, it says:


Option? 4
This utility uses the contents of journal files
to bring globals up to date from a backup.

Restore the Journal? Yes => Yes
Catch-up mirrored databases? No => No
Use current journal filter (ZJRNFILT)? yes
Use journal marker filter (MARKER^ZJRNFILT)? yes
Apply filter to every selected file? Yes => Yes
Process all journaled globals in all directories? no
Are journal files imported from a different operating system? No => yes

Directory to restore [? for help]: /data/db/dthis/lwtest2
Redirect to Directory: /data/db/dthis/lwtest2
 => --> /data/db/dthis/lwtest2/
Process all globals in /data/db/dthis/lwtest2? No => yes

Directory to restore [? for help]:

Processing globals from the following datasets:
 1. /data/db/dthis/lwtest2   All Globals
    (Redirect to: /data/db/dthis/lwtest2/)

Specifications correct? Yes => Yes
Are journal files created by this IRIS instance and located in their original
paths? (Uses journal.log to locate journals)? /journal/journal/  enter Yes or No, please
Are journal files created by this IRIS instance and located in their original
paths? (Uses journal.log to locate journals)?   enter Yes or No, please
Are journal files created by this IRIS instance and located in their original
paths? (Uses journal.log to locate journals)? yes
Specify range of files to process

Enter ? for a list of journal files to select the first and last files from
First file to process:

Entry must be from the list, please re-enter

First file to process:

Entry must be from the list, please re-enter

First file to process:  20230905.011
lw lw · Nov 15, 2019 go to post

The cachedb jounal sync takes a long time on my system. It takes about 4 minutes as follows

lw lw · Nov 15, 2019 go to post

my cachedb version:

  Cache Running version:
     Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2017.1.1 (Build 111U_SU) Tue May 23 2017 13:39:47 EDT
 

lw lw · Nov 15, 2019 go to post

Thanks, maybe data was deleted at that time.  I set another time,  the data  recovered.  another question is 

A journal sync can be triggered:

  • Once every two (2) seconds if the system is idle.
  • In an ECP-based distributed cache cluster, by the data server when responding to specific requests (for example, $Increment) from the application servers to guarantee ECP semantics.
  • By a TCOMMIT (in synchronous commit mode, which causes the data involved in that transaction to be flushed to disk) if you are using InterSystems IRIS transactions.
  • As part of every database write cycle by the write daemon.
  • When the journal buffer is full.

if how can I set the size of  journal buffer ,  or force journal sync to be triggered every 2s without waiting for the system to be idle?

lw lw · Aug 28, 2019 go to post

My project needs are as followsd:

1. define the restore log files and answers in the program

2. waiting for log recovery to complete

So my need is to know the execution state of the job, or to execute it in a blocking way.

lw lw · Aug 27, 2019 go to post

It really works! But I don't want it to run in the background, how to do it?