Hi, <div><br></div><div>in the file /var/lib/nfs/etabI get this:</div><div><br></div><div><div>/nfsdata  nodo1(rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,no_subtree_check,secure_locks,acl,fsid=45793,mapping=identity,anonuid=65534,anongid=65534)</div>
<div><br></div><div>the version of nfs are this:</div><div><br></div><div><div>nfs-utils-1.0.9-42.el5</div><div>nfs-utils-lib-1.0.8-7.6.el5</div><div><br></div><div>thanks</div><div><br></div><div>ESG</div></div><div><br>
</div><br><div class="gmail_quote">2010/4/21 Steven Whitehouse <span dir="ltr"><<a href="mailto:swhiteho@redhat.com">swhiteho@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Did you set fsid= on the export? Which NFS version are you using?<br>
<br>
Steve.<br>
<div><div></div><div class="h5"><br>
On Wed, 2010-04-21 at 17:00 +0200, ESGLinux wrote:<br>
> HI,<br>
><br>
><br>
> look at the error that happens when two nodes are writing to the<br>
> index:<br>
><br>
><br>
>  java.io.IOException: Stale NFS file handle<br>
>         at java.io.RandomAccessFile.writeBytes(Native Method)<br>
>         at java.io.RandomAccessFile.write(RandomAccessFile.java:466)<br>
>         at<br>
> org.apache.lucene.store.FSIndexOutput.flushBuffer(FSDirectory.java:503)<br>
>         at<br>
> org.apache.lucene.store.BufferedIndexOutput.flush(BufferedIndexOutput.java:84)<br>
>         at<br>
> org.apache.lucene.store.BufferedIndexOutput.close(BufferedIndexOutput.java:98)<br>
>         at<br>
> org.apache.lucene.store.FSIndexOutput.close(FSDirectory.java:506)<br>
>         at<br>
> org.apache.lucene.index.FieldsWriter.close(FieldsWriter.java:48)<br>
>         at<br>
> org.apache.lucene.index.SegmentMerger.mergeFields(SegmentMerger.java:191)<br>
>         at<br>
> org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:88)<br>
>         at<br>
> org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:709)<br>
>         at<br>
> org.apache.lucene.index.IndexWriter.mergeSegments(IndexWriter.java:686)<br>
>         at<br>
> org.apache.lucene.index.IndexWriter.optimize(IndexWriter.java:543)<br>
><br>
> I think in this case one node has writen to the index and the other<br>
> donīt. Could it be a problem? does GFS anything with this situation?<br>
><br>
><br>
> Thanks,<br>
><br>
><br>
> ESG<br>
><br>
><br>
><br>
> 2010/4/21 Jeff Sturm <<a href="mailto:jeff.sturm@eprize.com">jeff.sturm@eprize.com</a>><br>
>         We use Lucene over GFS (no NFS), but the design of our<br>
>         application updates Lucene from only one node at a time.<br>
><br>
><br>
><br>
>         In general applications that utilize POSIX locking can handle<br>
>         concurrent updates safely on GFS even with multiple nodes.  It<br>
>         wasn't clear to us whether Lucene supports this, however, and<br>
>         in your case NFS adds a layer to the mix.<br>
><br>
><br>
><br>
>         <a href="mailto:From%3Alinux-cluster-bounces@redhat.com">From:linux-cluster-bounces@redhat.com</a><br>
>         [mailto:<a href="mailto:linux-cluster-bounces@redhat.com">linux-cluster-bounces@redhat.com</a>] On Behalf Of<br>
>         ESGLinux<br>
>         Sent: Wednesday, April 21, 2010 8:22 AM<br>
>         To: linux clustering<br>
>         Subject: [Linux-cluster] gfs+nfs+lucene, anyone had tried?<br>
><br>
><br>
><br>
><br>
><br>
>         Hi All,<br>
><br>
><br>
><br>
><br>
>         Iīm mounting a cluster using NFS over GFS and Iīm going to<br>
>         store a lucene index on it.<br>
><br>
><br>
><br>
><br>
><br>
>         There are two nodes that write in this index, and Iīm worried<br>
>         about the index corruption.<br>
><br>
><br>
><br>
><br>
><br>
>         So anyone have implemented something like this? any problem I<br>
>         can find?<br>
><br>
><br>
><br>
><br>
><br>
>         Thanks in advance,<br>
><br>
><br>
><br>
><br>
><br>
>         ESG<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
>         --<br>
>         Linux-cluster mailing list<br>
>         <a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
>         <a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
><br>
><br>
> --<br>
> Linux-cluster mailing list<br>
> <a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
<br>
<br>
--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a></div></div></blockquote></div><br></div>