>At 2:37 PM +0000 9/4/01, Franck Horlaville wrote:
>>Later on I restarted the machine, forgetting an update was in progress.
>
>IIRC, you're using Mac OS X. (I don't remember which version.) I
>just did a little test on my iMac running 10.0.4. Let's just say I
>don't think the "reboot" and "shutdown" features on the GUI and the
>BSD layer are completely integrated. And I'm not sure on a reboot if
>the process would necessarily get enough time to clean up the
>databases before it's killed--the standard UNIX routines supply some
>delay between a SIGTERM and a SIGKILL.
>
>(For the interested, I ran the BSD shutdown and got a text prompt in
>a few seconds.)
oooookkkkkk ..... So you heavily recommend to use the bsd shutdown
when a dig is in progress. Can you give me (possibly off the list) a
list of actions to put this into light so I can forward it to Apple ?
>
>>Then I re-launched the update, forgetting this time I had changed
>>the script adding "-a".
>
>That's not such a big deal--remember all the -a means is that it's
>going on a .work set of files. So if this update completed, you're
>fine--make sure the .work versions are moved on top of the old
>versions and keep going.
What I meant is that the update was done halfway with the regular
databases and halfway with .work databases. Apparently this is not
the problem. Shutting down too fast, like you exposed above may be
the culprit.
>
>>Is there some kind of way I can know the databases are good or bad ?
>
>If you're using the 3.2 release, one of the new "httools" is htstat,
>which will give you statistics on the databases, a list of the URLs,
>etc.
Well here's the answer:
fh% ./htstat -c ../conf/myconf.conf
htstat: Total documents: 162
htstat: Total words: 0
Bus error
cd ../db
ll
-rw-r--r-- 1 root admin 10534912 Sep 1 19:33 db.docdb
-rw-r--r-- 1 fh admin 11149312 Sep 5 09:04 db.docdb.work
-rw-r--r-- 1 root admin 5300224 Sep 1 19:33 db.docs.index
-rw-r--r-- 1 fh admin 5341184 Sep 5 09:04 db.docs.index.work
-rw-r--r-- 1 root admin 127549440 Sep 1 19:33 db.excerpts
-rw-r--r-- 1 fh admin 117825536 Sep 5 09:04 db.excerpts.work
-rw-r--r-- 1 root admin 107259904 Sep 1 19:33 db.words.db
-rw-r--r-- 1 fh admin 84798464 Sep 5 09:04 db.words.db.work
-rw-r--r-- 1 fh admin 16384 Sep 5 08:49 db.words.db.work_weakcmpr
-rw-r--r-- 1 root admin 16384 Sep 1 19:33 db.words.db_weakcmpr
I guess my database (around 40000 pages) is completely hosed ...
thanks
--
Franck Horlaville
Athena Online
+212 (0) 37 68 28 08
http://www.athena.online.co.ma/
mailto:[EMAIL PROTECTED]
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html