| Summary: | updatedb in Fedora 16 is not indexing other mounted filesystems | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Louis van Dyk <louis> | ||||
| Component: | mlocate | Assignee: | Miloslav Trmač <mitr> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 16 | CC: | mitr | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-01-09 12:25:34 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Louis van Dyk
2012-01-08 20:52:21 UTC
Thanks for your report. Please modify the last line of /etc/cron.daily/mlocate.cron to read > /usr/bin/updatedb --debug-pruning -f "$nodevs" then as root run > /etc/cron.daily/mlocate.cron 2>log and attach the generated "log" file. Created attachment 551541 [details]
Requested Log file output
Thanks. This is caused by system mounting a tmpfs over /media , which automatically excludes everything in that subtree. updatedb is therefore behaving as designed, and I can't see a simple way to do it otherwise. You can do one of these things to disable the /media exclusion: * Disable the /media mount ( http://lists.fedoraproject.org/pipermail/users/2011-December/410968.html ) * Remove tmpfs from PRUNEFS in updatedb.conf * Mount your disks elsewhere. I can't say I understand why the /media mount exists, but it was clearly intentional (see bug 693449 for example). Many thanks Miloslav Knowing that I was doing something contrary to "normal" system practices is just as good as a bug fix. Thanks for the link to that article, it explains everything well. I personally think that mounting /media as a tmpfs is silly, but I guess I will now have to make another plan. I now also understand why the process had worked on Fedora 14. So I agree that for mlocate you have implemented the best behaviour, but for my purposes I will then remove tmpfs from PRUNEFS in my updatebd.conf. |