lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sakunthalakishan <sakunthalakis...@hotmail.com>
Subject Re: old index files not deleted on slave
Date Wed, 29 Dec 2010 04:35:17 GMT

 We have master, slave setup. Every 5 minutes, index will be replicated from
Master to Slave and will be installed on slave.  But on Linux on the slave
when the snapinstaller script is called, it is failing and showing below
error in logs.
 
/bin/rm: cannot remove
`/ngs/app/esearcht/Slave2index/data/index/.nfs000000000001110300000749':
Device or resource busy
 
This error is occuring in snapinstaller script at below lines.
  cp -lr ${name}/ ${data_dir}/index.tmp$$ && \
  /bin/rm -rf ${data_dir}/index && \
  mv -f ${data_dir}/index.tmp$$ ${data_dir}/index
 
It is not able to remove the index folder. So the index.tmp files are keep
growing in the data directory.
 
Our data directory is "/ngs/app/esearcht/Slave2index/data".  When  checked
with ls -al in the index directory, there are some .nfs files still there,
which are not letting index directory to be deleted.  And these .nfs files
are still being used by SOLR in jboss.
 
This setup is giving issue only in linux.  Is this known bug on linux?  
 
-- 
View this message in context: http://lucene.472066.n3.nabble.com/old-index-files-not-deleted-on-slave-tp2113493p2160924.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message