You need to make sure that both the indexing and searching process use the same lock directory.
-----Original Message----- From: Supriya Kumar Shyamal [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 4:16 PM To: java-user@lucene.apache.org Subject: FS lock on NFS mounted filesystem for indexing Hi All, I got a strange problem during the indexer process running on Redhat ES4 Linux machine .. java.io.FileNotFoundException: /u01/export/index/books/_2s.fnm (No such file or directory) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212) at org.apache.lucene.store.FSIndexInput$Descriptor.<init>(FSDirectory.java: 425) at org.apache.lucene.store.FSIndexInput.<init>(FSDirectory.java:434) at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:324) at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:56) at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:144) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:129) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:110) at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:674) at org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:658) at org.apache.lucene.index.IndexWriter.maybeMergeSegments(IndexWriter.java: 646) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:453) at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:436) After looking through the mailinglist probaly I am thinking that when the indexer runs on NFS mounted filesystem then its a problem of filesystem locking because I run the indexer and parallaly I also search on the index. I am using Lucene 1.9.1 version with JDK1.5 VM on Redhat ES4 64 bit Linux Dual Core Opteron processor. Any information will be very greatful. Thanks, supriya --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]