usage: snapcleaner -D <days> | -N <num> [-d dir] [-u username] [-v] -D <days> cleanup snapshots more than <days> days old -N <num> keep the most recent <num> number of snapshots and cleanup up the remaining ones that are not being pulled -d specify directory holding index data -u specify user to sudo to before running script -v increase verbosity -V output debugging info
Bill On Tue, Feb 17, 2009 at 3:24 AM, Otis Gospodnetic < otis_gospodne...@yahoo.com> wrote: > Hi, > > snapcleaner lets you delete snapshots by one of the following two criteria: > - delete all but last N snapshots > - delete all snapshots older than N days > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > > > ________________________________ > From: sunnyfr <johanna...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Tuesday, February 17, 2009 4:17:39 PM > Subject: Re: delete snapshot?? > > > How can I remove from time to time, because for the script snapcleaner I > just > have the option to delete last day ??? > thanks a lot Noble and sorry again for all this question, > > > Noble Paul നോബിള് नोब्ळ् wrote: > > > > The hardlinks will prevent the unused files from getting cleaned up. > > So the diskspace is consumed for unused index files also. You may need > > to delete unused snapshots from time to time > > --Noble > > > > On Tue, Feb 17, 2009 at 5:24 AM, sunnyfr <johanna...@gmail.com> wrote: > >> > >> Hi Noble, > >> > >> I maybe don't get something > >> Ok if it's hard link but how come i've not space left on device error > and > >> 30G shown on the data folder ?? > >> sorry I'm quite new > >> > >> 6.0G /data/solr/book/data/snapshot.20090216214502 > >> 35M /data/solr/book/data/snapshot.20090216195003 > >> 12M /data/solr/book/data/snapshot.20090216195502 > >> 12K /data/solr/book/data/spellchecker2 > >> 36M /data/solr/book/data/snapshot.20090216185502 > >> 37M /data/solr/book/data/snapshot.20090216203502 > >> 6.0M /data/solr/book/data/index > >> 12K /data/solr/book/data/snapshot.20090216204002 > >> 5.8G /data/solr/book/data/snapshot.20090216172020 > >> 12K /data/solr/book/data/spellcheckerFile > >> 28K /data/solr/book/data/snapshot.20090216200503 > >> 40K /data/solr/book/data/snapshot.20090216194002 > >> 24K /data/solr/book/data/snapshot.20090216200002 > >> 32K /data/solr/book/data/snapshot.20090216184502 > >> 20K /data/solr/book/data/snapshot.20090216191004 > >> 1.1M /data/solr/book/data/snapshot.20090216213502 > >> 1.1M /data/solr/book/data/snapshot.20090216201502 > >> 1.1M /data/solr/book/data/snapshot.20090216213005 > >> 24K /data/solr/book/data/snapshot.20090216191502 > >> 1.1M /data/solr/book/data/snapshot.20090216212503 > >> 107M /data/solr/book/data/snapshot.20090216212002 > >> 14M /data/solr/book/data/snapshot.20090216190502 > >> 32K /data/solr/book/data/snapshot.20090216201002 > >> 2.3M /data/solr/book/data/snapshot.20090216204502 > >> 28K /data/solr/book/data/snapshot.20090216184002 > >> 5.8G /data/solr/book/data/snapshot.20090216181425 > >> 44K /data/solr/book/data/snapshot.20090216190001 > >> 20K /data/solr/book/data/snapshot.20090216183401 > >> 1.1M /data/solr/book/data/snapshot.20090216203002 > >> 44K /data/solr/book/data/snapshot.20090216194502 > >> 36K /data/solr/book/data/snapshot.20090216185004 > >> 12K /data/solr/book/data/snapshot.20090216182720 > >> 12K /data/solr/book/data/snapshot.20090216214001 > >> 5.8G /data/solr/book/data/snapshot.20090216175106 > >> 1.1M /data/solr/book/data/snapshot.20090216202003 > >> 5.8G /data/solr/book/data/snapshot.20090216173224 > >> 12K /data/solr/book/data/spellchecker1 > >> 1.1M /data/solr/book/data/snapshot.20090216202502 > >> 30G /data/solr/book/data > >> thanks a lot, > >> > >> > >> Noble Paul നോബിള് नोब्ळ् wrote: > >>> > >>> they are just hardlinks. they do not consume space on disk > >>> > >>> On Mon, Feb 16, 2009 at 10:34 PM, sunnyfr <johanna...@gmail.com> > wrote: > >>>> > >>>> Hi, > >>>> > >>>> Ok but can I use it more often then every day like every three hours, > >>>> because snapshot are quite big. > >>>> > >>>> Thanks a lot, > >>>> > >>>> > >>>> Bill Au wrote: > >>>>> > >>>>> The --delete option of the rsync command deletes extraneous files > from > >>>>> the > >>>>> destination directory. It does not delete Solr snapshots. To do > that > >>>>> you > >>>>> can use the snapcleaner on the master and/or slave. > >>>>> > >>>>> Bill > >>>>> > >>>>> On Fri, Feb 13, 2009 at 10:15 AM, sunnyfr <johanna...@gmail.com> > >>>>> wrote: > >>>>> > >>>>>> > >>>>>> root 26834 16.2 0.0 19412 824 ? S 16:05 0:08 > >>>>>> rsync > >>>>>> -Wa > >>>>>> --delete rsync://##.##.##.##:18180/solr/snapshot.20090213160051/ > >>>>>> /data/solr/books/data/snapshot.20090213160051-wip > >>>>>> > >>>>>> Hi obviously it can't delete them because the adress is bad it > >>>>>> shouldnt > >>>>>> be > >>>>>> : > >>>>>> rsync://##.##.##.##:18180/solr/snapshot.20090213160051/ > >>>>>> but: > >>>>>> rsync://##.##.##.##:18180/solr/books/snapshot.20090213160051/ > >>>>>> > >>>>>> Where should I change this, I checked my script.conf on the slave > >>>>>> server > >>>>>> but > >>>>>> it seems good. > >>>>>> > >>>>>> Because files can be very big and my server in few hours is getting > >>>>>> full. > >>>>>> > >>>>>> So actually snapcleaner is not necessary on the master ? what about > >>>>>> the > >>>>>> slave? > >>>>>> > >>>>>> Thanks a lot, > >>>>>> Sunny > >>>>>> -- > >>>>>> View this message in context: > >>>>>> http://www.nabble.com/delete-snapshot---tp21998333p21998333.html > >>>>>> Sent from the Solr - User mailing list archive at Nabble.com. > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>> > >>>> -- > >>>> View this message in context: > >>>> http://www.nabble.com/delete-snapshot---tp21998333p22041332.html > >>>> Sent from the Solr - User mailing list archive at Nabble.com. > >>>> > >>>> > >>> > >>> > >>> > >>> -- > >>> --Noble Paul > >>> > >>> > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/delete-snapshot---tp21998333p22048398.html > >> Sent from the Solr - User mailing list archive at Nabble.com. > >> > >> > > > > > > > > -- > > --Noble Paul > > > > > > -- > View this message in context: > http://www.nabble.com/delete-snapshot---tp21998333p22052570.html > Sent from the Solr - User mailing list archive at Nabble.com. >