Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Slackware

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-2008, 06:04 PM
jjg
 
Posts: n/a
updatedb never terminates!

hello, *

I am running Slack 12.1, and I try to do an updatedb, which never seems to
finish. Last time I had a similar problem, one of my file systems was
corrupted. However, when I checked this morning, all file systems were
clean.
Suggestion, anyone?
Reply With Quote
  #2 (permalink)  
Old 06-29-2008, 09:37 PM
Henrik Carlqvist
 
Posts: n/a
Re: updatedb never terminates!

jjg <jjge@xs4all.nl> wrote:
> I am running Slack 12.1, and I try to do an updatedb, which never seems to
> finish.


You could try "strace -p" on the pid of updatedb to see what it is doing.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost

Reply With Quote
  #3 (permalink)  
Old 06-29-2008, 11:09 PM
Michael Black
 
Posts: n/a
Re: updatedb never terminates!

On Sun, 29 Jun 2008, jjg wrote:

> hello, *
>
> I am running Slack 12.1, and I try to do an updatedb, which never seems to
> finish. Last time I had a similar problem, one of my file systems was
> corrupted. However, when I checked this morning, all file systems were
> clean.
> Suggestion, anyone?
>

The first time after the install, it sure seems to take time. Of course,
later it usually runs as a cron job late at night so you don't notice.

Did you have any DVDs or CDs mounted at the time? I seem to recall
doing that at least once, and it would add to the time since it's
territory that hasn't been databased yet.

Michael

Reply With Quote
  #4 (permalink)  
Old 06-29-2008, 11:39 PM
Res
 
Posts: n/a
Re: updatedb never terminates!

On Sun, 29 Jun 2008, Michael Black wrote:

>
> On Sun, 29 Jun 2008, jjg wrote:
>
>> hello, *
>>
>> I am running Slack 12.1, and I try to do an updatedb, which never seems to
>> finish. Last time I had a similar problem, one of my file systems was
>> corrupted. However, when I checked this morning, all file systems were
>> clean.
>> Suggestion, anyone?
>>

> The first time after the install, it sure seems to take time. Of course,
> later it usually runs as a cron job late at night so you don't notice.
>
> Did you have any DVDs or CDs mounted at the time? I seem to recall
> doing that at least once, and it would add to the time since it's territory
> that hasn't been databased yet.



That shouldn't matter unless updatedb.conf is botched up, by default
updatedb will not look at NFS or CD/DVD filesystems.

If in doubt, add something like /media and /mnt into PRUNEPATHS


--
Cheers
Res
--- Usenet policy, and why I might ignore you ---
1/ GoogleGroups are UDP'd on my nntp server. If you use them, don't
waste your time or energy replying to me.

2/ If only cleanfeed filtered out trolls as well as spam, usenet would be
a nicer place.
Reply With Quote
  #5 (permalink)  
Old 06-30-2008, 05:29 AM
Giovanni
 
Posts: n/a
Re: updatedb never terminates!

On 06/29/08 20:04, jjg wrote:
> hello, *
>
> I am running Slack 12.1, and I try to do an updatedb, which never
> seems to finish. Last time I had a similar problem, one of my file
> systems was corrupted. However, when I checked this morning, all
> file systems were clean. Suggestion, anyone?


Do you have an NFS mounted? If the remote machine is not responding
updatedb lasts forever.

Ciao
Giovanni
--
A computer is like an air conditioner,
it stops working when you open Windows.
Registered Linux user #337974 < http://giovanni.homelinux.net/ >
Reply With Quote
  #6 (permalink)  
Old 06-30-2008, 06:11 AM
Helmut Hullen
 
Posts: n/a
Re: updatedb never terminates!

Hallo, jjg,

Du meintest am 29.06.08:

> I am running Slack 12.1, and I try to do an updatedb, which never
> seems to finish. Last time I had a similar problem, one of my file
> systems was corrupted. However, when I checked this morning, all file
> systems were clean.
> Suggestion, anyone?


Maybe you use the original "/etc/updatedb.conf" which uses wrong
delimiters for "PRUNEPATH" ans "FSPATH".

"man slocate" and "man updatedb" show that "slocate" needs "," as
delimiter, not " ".

Viele Gruesse
Helmut

"Ubuntu" - an African word, meaning "Slackware is too hard for me".

Reply With Quote
  #7 (permalink)  
Old 06-30-2008, 08:12 AM
Res
 
Posts: n/a
Re: updatedb never terminates!

On Mon, 30 Jun 2008, Helmut Hullen wrote:

>
> Hallo, jjg,
>
> Du meintest am 29.06.08:
>
>> I am running Slack 12.1, and I try to do an updatedb, which never
>> seems to finish. Last time I had a similar problem, one of my file
>> systems was corrupted. However, when I checked this morning, all file
>> systems were clean.
>> Suggestion, anyone?

>
> Maybe you use the original "/etc/updatedb.conf" which uses wrong
> delimiters for "PRUNEPATH" ans "FSPATH".
>
> "man slocate" and "man updatedb" show that "slocate" needs "," as
> delimiter, not " ".


I use defaults on my file servers and network backup servers and
PRUNEFS PRUNEPATHS both work fine without commas, else my update would
still be running when it was time to start again.


--
Cheers
Res
--- Usenet policy, and why I might ignore you ---
1/ GoogleGroups are UDP'd on my nntp server. If you use them, don't
waste your time or energy replying to me.

2/ If only cleanfeed filtered out trolls as well as spam, usenet would be
a nicer place.
Reply With Quote
  #8 (permalink)  
Old 06-30-2008, 08:51 AM
jjg
 
Posts: n/a
Re: updatedb never terminates!

Helmut Hullen wrote:

> Hallo, jjg,
>
> Du meintest am 29.06.08:
>
>> I am running Slack 12.1, and I try to do an updatedb, which never
>> seems to finish. Last time I had a similar problem, one of my file
>> systems was corrupted. However, when I checked this morning, all file
>> systems were clean.
>> Suggestion, anyone?

>
> Maybe you use the original "/etc/updatedb.conf" which uses wrong
> delimiters for "PRUNEPATH" ans "FSPATH".
>
> "man slocate" and "man updatedb" show that "slocate" needs "," as
> delimiter, not " ".


Well, I changed the spaces into commas, but updatedb still hangs ;-)
Reply With Quote
  #9 (permalink)  
Old 06-30-2008, 08:54 AM
jjg
 
Posts: n/a
Re: updatedb never terminates!

<posted & mailed>

jjg wrote:

> hello, *
>
> I am running Slack 12.1, and I try to do an updatedb, which never seems to
> finish. Last time I had a similar problem, one of my file systems was
> corrupted. However, when I checked this morning, all file systems were
> clean.
> Suggestion, anyone?


Update: in ps ax I see the process running updatedb in state D
(uninterruptable sleep). It never wakes up, that seems clear.
Worse yet, if I do a shutdown now -r the system restarts allright, but it
does not seem to bother to unmount the file systems...
Reply With Quote
  #10 (permalink)  
Old 06-30-2008, 06:27 PM
Henrik Carlqvist
 
Posts: n/a
Re: updatedb never terminates!

jjg <jjge@xs4all.nl> wrote:
> Update: in ps ax I see the process running updatedb in state D
> (uninterruptable sleep). It never wakes up, that seems clear.


So it is waiting for disk. Do you see any disk related error messages from
dmesg?

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:13 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108