We have a server containing LOTS of files (/var/lib/mlocate/mlocate.db is 3GB) and every night when updatedb runs we get warnings about the root filesystem almost filling up.
We have located this to the time when updatedb runs and creates it's temporary db.
Isn't there a way to configure updatedb to tell it where to store its temporary db?
If not, why not?
Thanks for your report.
The temporary database is created in the same directory as the destination database (/var/lib/mlocate in this case) to make sure the new database can "atomically" replace the old version using rename(2) without causing a service disruption to your users.