Time for today's "how to debug a problem" lesson.

On Wed, Jan 11, 2012 at 7:26 AM, L. V. Lammert <[email protected]> wrote:
> Have a 4.3 server with a really weird problem: locate ONLY indexes one [user
> file] partition! IOW, no binaries are indexed, nor is /usr/, /var, ..

Lesson #1: examine the anomalous data for clues.

So, you're saying that
    locate /usr | grep ^/usr | head

returns nothing but
    locate /home | grep ^/home | head

returns something?  (/home being a stand-in for whatever your unsaid
"[user file] partition" is)

Perhaps you should investigate how those two directories differ?


> The locate database seems to be normal:
>
> Database: /var/db/locate.database
> Compression: Front: 19.48%, Bigram: 65.90%, Total: 14.52%
> Filenames: 218512, Characters: 14825215, Database size: 2153551
> Bigram characters: 734303, Integers: 5440, 8-Bit characters: 3

Lesson #2: step through the problem computation and verify the
correctness of intermediate stages.

So you've run locate.updatedb manually.  It's just a shell script, so
perhaps you should run the commands in it manually, one by one and
examining the intermediate output of pipes, etc.  Be sure to do so in
a shell that reproduces how locate.updatedb is called from
/etc/weekly!


Philip Guenther

Reply via email to