Results 1 to 10 of 10

Thread: My 160 GB disk is full because mlocate.db

  1. #1
    Join Date
    Oct 2008
    Beans
    42

    My 160 GB disk is full because mlocate.db

    I have this:

    root@lucian-laptop:/var/lib/mlocate# ls -lh
    total 122G
    -rw-r----- 1 root mlocate 7.3M 2010-05-08 08:03 mlocate.db
    -rw------- 1 root root 61G 2010-05-18 20:09 mlocate.db.4xfaBr
    -rw------- 1 root root 40G 2010-03-28 03:18 mlocate.db.eAIFn8
    -rw------- 1 root root 11G 2010-04-25 15:23 mlocate.db.ppE9Il
    -rw------- 1 root root 273M 2010-02-28 11:48 mlocate.db.rTzhmB
    -rw------- 1 root root 11G 2010-03-14 15:42 mlocate.db.ub4Evy


    I am not sure who is creating this.

    Let me know if you have any ideas.
    "A friend is one who has the same enemies as you have. " ---- Abraham Lincoln

  2. #2
    Join Date
    Aug 2005
    Location
    Adelaide, SA, Australia
    Beans
    549
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: My 160 GB disk is full because mlocate.db

    That's very strange. mlocate is just a database of all the files in your root directory which is for searching purposes.
    When you use the command 'locate' to find files it uses this database.
    You should be fine to delete all the files but leave mlocate.db.
    I'm not sure why it is creating all those huge files.

  3. #3
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,660
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: My 160 GB disk is full because mlocate.db

    Are you shutting off the computer abruptly? The locate command needs a long time to index all of the files on your machine for a new install. If you don't leave your machine running for a while (several hours) then it's possible that the locate indexing never gets finished. What other drives are on this system?

    The old mlocate files could be leftovers from interrupted indexing with previous installs.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  4. #4
    Join Date
    Oct 2008
    Beans
    42

    Re: My 160 GB disk is full because mlocate.db

    Quote Originally Posted by tgalati4 View Post
    Are you shutting off the computer abruptly? The locate command needs a long time to index all of the files on your machine for a new install. If you don't leave your machine running for a while (several hours) then it's possible that the locate indexing never gets finished. What other drives are on this system?

    The old mlocate files could be leftovers from interrupted indexing with previous installs.
    I never shout down the computer, I mean if I did it once was couple of months ago when I had a crash. But that is pretty much the only time I can remember. I usually put it on stand by or hibernate.

    I have only one hard disk on the computer but I have a ssh fs on the server that I load once in a while and leave it like that. Could that be the issue ... hmmmmm

    PS: also when i want to unmount the sshfs (I usually have 3 paths mounted) I can unmount two just fine but the third (who is the home directory on the server) it never get unmounted, I get some errors and I have to use the lsof to find the PID and kill it and only then I can unmount it.
    Last edited by lmicu; May 19th, 2010 at 04:27 AM.
    "A friend is one who has the same enemies as you have. " ---- Abraham Lincoln

  5. #5
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: My 160 GB disk is full because mlocate.db

    fuse.sshfs was added recently to PRUNEFS in /etc/updatedb.conf. This should have excluded sshfs lookups. I am wondering if you need to tweak this file and add your sshfs mountpoint to PRUNEPATHS.
    https://bugs.launchpad.net/ubuntu/+s...te/+bug/371749

  6. #6
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,660
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: My 160 GB disk is full because mlocate.db

    True, otherwise, locate will try to index entire filesystems that are mounted via FUSE. This would be a bug or a feature depending on how annoying or useful this condition is for you.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  7. #7
    Join Date
    Oct 2008
    Beans
    42

    Talking Re: My 160 GB disk is full because mlocate.db

    Ok, I added fuse.sshfs in to PRUNEFS in /etc/updatedb.conf then I mounted the sshfs and it is looking good, no more 64GB of log files.

    Thank you guys!

    PS: I will make it solved in a week, just to be sure this is actually working.
    "A friend is one who has the same enemies as you have. " ---- Abraham Lincoln

  8. #8
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    8,660
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: My 160 GB disk is full because mlocate.db

    When you think about it, isn't google just a large mlocate database?
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  9. #9
    Join Date
    Dec 2007
    Location
    Austin
    Beans
    26
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: My 160 GB disk is full because mlocate.db

    FYI, I've got a 3-4 year-old version of redhat (well, centos, actually) with the same problem (33GB worth of mlocate.db.* files with todays timestamp). There's no fusefs on this system, fuse.glusterfs and gfs and gfs2 are already in /etc/updatedb.conf ... investigating.

  10. #10
    Join Date
    Feb 2007
    Beans
    23,340
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: My 160 GB disk is full because mlocate.db

    From the Ubuntu Forums Code of Conduct.
    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.
    Thread closed.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •