NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am using osmosis version 0.44.1 (after simple apt install at UBUNTU 16 LTS) and fresh PostGIS, there are only few relations (and few Gb on PostGIS geometry) but this command use all my ~60Gb of free disk:

osmosis --read-pbf file=brazil-latest.osm.pbf --tag-filter \
   accept-relations admin_level=4,boundary=administrative  \
   --write-pgsql host=localhost database=pgsnapshot \
   user=postgres password="myPass"  &

How to reduce the disk consume?


Example of relation that need: here.


Dump of error messages:

org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
...
SEVERE: Thread for task 1-read-pbf failed
org.springframework.dao.DataAccessResourceFailureException: StatementCallback; SQL [CREATE INDEX idx_way_nodes_node_id ON way_nodes USING btree (node_id)]; ERROR: could not extend file "base/340840/351416.1": wrote only 4096 of 8192 bytes at block 167425

  Hint: Check free disk space.; nested exception is org.postgresql.util.PSQLException: ERROR: could not extend file "base/340840/351416.1": wrote only 4096 of 8192 bytes at block 167425
  Hint: Check free disk space.

asked 03 Oct '18, 14:41

ppKrauss's gravatar image

ppKrauss
95192225
accept rate: 0%

edited 03 Oct '18, 16:04

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×252
×10

question asked: 03 Oct '18, 14:41

question was seen: 925 times

last updated: 03 Oct '18, 16:04

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum