Background: I am a Linux newbie. I have set up an OSM planet import and pre-rendered alot of the planet on a Windows machine. Now I want to take the next step and move to a Linux box so I can render tiles on the fly and use things like mod_tile to keep my database up to date via http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/ .

Questions:

  1. My company's IT is setting up a virtual Linux box for me to test/play on with 500 GB of space. They have asked me some questions about the Linux configuration that I need help on. What filesystem should I create in Linux? After some research I came up with either XFS or JFS using the FHS standard. XFS or JFS and not ext3 becuase something about the number of inodes available in ext3 could run out after millions of tiles causing my system to become logically out of space??? Does this make sense and does anyone have any suggestions on this?
  2. They also asked me how I want my 500GB allocated to each volume inside the filesystem, mentioning terms like "UO1". I have no idea what this means or how to answer. Can someone help me?
  3. My company only supports Redhat. Does anyone know if Redhat will impose any issues regarding the questions above or following the instructions at http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/ ?

Thanks, Matt

asked 17 Oct '12, 19:39

maw269's gravatar image

maw269
1157714
accept rate: 0%

edited 25 Nov '13, 14:49

aseerel4c26's gravatar image

aseerel4c26 ♦
31.9k16237548

I'm not a filesystem expert but ext4 with the dir_index option should suffice.

(17 Oct '12, 20:05) scai ♦
1

Well Redhat uses a different package manager than Ubuntu so those two "apt-get" commands at the beginning aren't going to work. I haven't used Redhat in a while but I think it has a "yum" command that will install packages much like apt-get does. Package names and versions might not match up exactly either although I would imagine that they would be fairly close.

(18 Oct '12, 05:42) ToeBee

Were you able to implement this on Redhat? If yes, can you please share what challenges you faced, and the workaround you had to use? Thank you in advance.

(27 Jun '14, 16:10) dk2005

I suspect that it's not going to be straightforward. The switch2osm instructions say "get XYZ from Ubuntu, build ABC from source". I'm guessing that you'd get two sorts of problems:

  • Your Redhat version may have versions of packages to what are in Ubuntu 12.04, which work differently, or some may not be available.
  • There may filesystem differences for e.g. Apache which means that you need to play around with e.g. mod_tile to get it to work. If you don't have a local Ubuntu system to compare with resolving this may be tricky.

I'd be tempted to progress to a "planet import and update in Redhat" in stages:

  1. First of all create a small VM somewhere (perhaps at home) and install Ubuntu in it, and then run through the switch2osm instructions, but using a very small country as the import data. Get rendering and updates to it working.
  2. Do the same again, but with Redhat. You'll probably need to figure out where to get some packages and versions from, and probably build more from source. You'll also need to compare file locations between Ubuntu and Redhat, and edit config files and rebuild accordingly.
  3. Once you've done that you should be able to scale up to a larger VM and be able to at least understand the questions your IT department (bless 'em) are asking.

With regard to the specific questions:

  • I believe that the way that rendered tiles are stored was changed a year or more ago, so I suspect running out of inodes on ext3 is unlikely to be an issue, at least in stage (2) above.
  • A poke around on the Internet suggests that "u01", "u02" etc. are Redhat's way of specifying "/usr" etc. When doing (2) if everything is on one partition no part will run out of space first and you can see where stuff goes, and modify install scripts accordingly if necessary.

(I've not used a Redhat system for around 10 years, so take this answer with a large pinch of salt!)

permanent link

answered 18 Oct '12, 10:16

SomeoneElse's gravatar image

SomeoneElse ♦
31.7k63327741
accept rate: 15%

edited 25 Nov '13, 14:49

aseerel4c26's gravatar image

aseerel4c26 ♦
31.9k16237548

1

Excellent suggestions everyone. I will start with Ubuntu then transition to Redhat (fingers crossed). I will start small and not worry so much about disk allocation at this moment. Once I have everything up and running, I can get a feel for the actual space required for items that will not grow (applications) and also get a feel for the % of space required for items that will grow when moving to larger geographies (the DB and tilestore). I can then scale this space accordingly.

It also sounds like I will have to do some research to find Redhat eqivalents to Ubuntu commands. I hope I don't have to build too many things from source as that is out of my lane, but I have some developers at the office that can help me, I suppose.

I will get back to this forum if I get things working and maybe create a page somewhere with the Redhat eqivalent to http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/.

If you come by this page in the future and don't find my final results, ping me because I probably forgot to update this page. Cheers

(18 Oct '12, 17:50) maw269
1

Well, I've gotten all the way to installing mapnik0.7.3 and creating a static image with generate_image.py. No luck so far with getting mod_tile to compile. Not looking good :-(

(25 Feb '13, 22:32) maw269
Your answer
toggle preview

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:

×152
×97
×26

question asked: 17 Oct '12, 19:39

question was seen: 7,479 times

last updated: 27 Jun '14, 16:59

powered by OSQA