This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Nominatim - Tuning DB Results in “Out of Disk Space” Error?

0

I built a Nominatim Server on GCP with 128 GB of RAM and 950 GB SSD. I finished the initial import of the pbf data, created all the indexes and search indices. Now I'm trying to tune the db, but it's saying I don't have enough disk space. How much more disk space do I need to re-calibrate the word frequencies?

Command:

sudo -u $USERNAME -H sh -c "$BUILD_UTILS/update.php --recompute-word-counts"

Error:

ERROR:  could not extend file "base/16386/13231037.2": wrote only 4096 of 8192 bytes at block 302206
HINT:  Check free disk space.

Update:

After allocating more disk space, I'm getting this error -

ERROR:  could not write to file "base/pgsql_tmp/pgsql_tmp3657.4": No space left on device

asked 15 Sep '20, 17:14

rirhun's gravatar image

rirhun
26559
accept rate: 0%

edited 15 Sep '20, 17:37


2 Answers:

0

The output will be about 7GB, I don't know how much the temporary table during the processing will take. You can delete the planet.pbf file you imported, that's no longer needed, will free 65GB on the harddrive.

answered 15 Sep '20, 17:23

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Thanks for the lightning fast response @mtmail.

I already deleted the planet.pbf file so I would like to think that I have more than enough space left.

(15 Sep '20, 17:25) rirhun

0

It was a partition issue. I had to resize the partition from the VM and it seems to be ok now.

answered 15 Sep '20, 21:18

rirhun's gravatar image

rirhun
26559
accept rate: 0%

Source code available on GitHub .