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

How much disk space do i need to import planet.osm into openstreetmap database?

0

I want to use osmosis command to import planet-latest.osm.pbf into the openstreetmap db, i want to know how much disk space do i need, and how long time it will spend to do the import task.

asked 02 Nov '16, 07:44

yuyy's gravatar image

yuyy
236222431
accept rate: 20%

edited 05 Nov '16, 14:03

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701

The required time for an import heavily depends in your hardware.

(02 Nov '16, 08:09) scai ♦

Oh,then what about the disk space?

(02 Nov '16, 08:16) yuyy

3 Answers:

1

I guess you will need about 3 TB of disk space and and it will take about 2 weeks.

In order to get a more reliable estimate, run the import with a small(er) extract first. The australia-oceania.osm.pbf from download.geofabrik.de is a nice test case because it is roughly 1/100 of the planet, so import that and multiply the numbers by 100.

answered 02 Nov '16, 09:45

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Ok, thanks to your reply.

(02 Nov '16, 14:05) yuyy

4

You don't want to import the planet with osmosis into an "apidb" database. That database schema is not useful for rendering, most analysis, routing, or anything except hosting OpenStreetMap data to be edited.

If you decide to do this, it will depend on your disks. If using 7200 RPM hard drives, expect it to take 1-3 months. I did this a few years ago when the planet was smaller and it took about a month.

answered 02 Nov '16, 10:00

pnorman's gravatar image

pnorman
2.4k52140
accept rate: 18%

3

I just did a fresh import, but using osm2pgsql, size with slim tables: 558G (on a SSD Samsung 850 pro 1To). Took 38hours.

answered 02 Nov '16, 09:45

Emmanuel%20Lacour's gravatar image

Emmanuel Lacour
562
accept rate: 0%

edited 02 Nov '16, 09:47