Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Taking backup of Lucene DB

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


emailgane at yahoo

May 25, 2012, 4:02 AM

Post #1 of 2 (127 views)
Permalink
Taking backup of Lucene DB

Hello all,

We want to place our search db in SAN drive and want to replicate the data to another SAN. We have a replication software to do this process.

My question is whether we could do that for search db? While indexing (for testing purpose), i just copied the db files and dropped in another system. When i started my application in another system, I could see my search database whiped out. Only write lock remains. The behaviour is unpredictable.

I am not using SnapshotDeletionPolicy. Is that any other way to acheive this using SAN replicator?

Regards
Ganesh

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


lucene at mikemccandless

May 25, 2012, 5:24 AM

Post #2 of 2 (119 views)
Permalink
Re: Taking backup of Lucene DB [In reply to]

The simplest way is to stop all index writing (close the IndexWriter),
do the copy, then start your IndexWriter again.

If that's a problem (usually it is!) then use SnapshotDeletionPolicy
to protect the commit point (ie prevent any of the files it uses from
being deleted) while you are making the copy... this way you can take
a hot backup without pausing index writing...

Mike McCandless

http://blog.mikemccandless.com

On Fri, May 25, 2012 at 7:02 AM, Ganesh <emailgane [at] yahoo> wrote:
> Hello all,
>
> We want to place our search db in SAN drive and want to replicate the data to another SAN. We have a replication software to do this process.
>
> My question is whether we could do that for search db? While indexing (for testing purpose), i just copied the db files and dropped in another system. When i started my application in another system, I could see my search database whiped out. Only write lock remains. The behaviour is unpredictable.
>
> I am not using SnapshotDeletionPolicy. Is that any other way to acheive this using SAN replicator?
>
> Regards
> Ganesh
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.