Likely there's nothing easy you can do to recover the index. If the crash was merely an "outage", and the IO system did not flip bits on files that were committed, then the index should have been intact.
Can you post the ls -l of the index directory? Had you successfully committed to this index before crashing? Mike McCandless http://blog.mikemccandless.com On Fri, Jul 26, 2013 at 10:59 AM, Prakash Chinnakannan <prakash.chinnakan...@gmail.com> wrote: > Hi, > > Today we'd the SAN outage and it looks the lucene index directory got > corrupted. We tried to fix it by using CheckIndex and below is the > exception trace. > > Do we've any other possible ways to recover the index contents? > > ~#] java -cp lucene-3.2.0.jar org. > apache.lucene.index.CheckIndex searchIndex/ -fix > > NOTE: testing will be more thorough if you run java with > '-ea:org.apache.lucene...', so assertions are enabled > > Opening index @ searchIndex/ > > ERROR: could not read any segments file in directory > org.apache.lucene.index.CorruptIndexException: Unknown format version: > -318130790 > at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:272) > at org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:358) > at > org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:753) > at > org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:592) > at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:354) > at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:319) > at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:940) > > Thanks for your help. > > -- > Prakash C --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org