gferris ([info]gferris) wrote in [info]lj_dev,
@ 2006-04-17 14:54:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
MogileFS - LJ - Replication
Got MogileFS up and running on a single test server running both mogstored and mogilefsd.
For test purposes instead of mounting different drives or partitions at /var/mogdata I just created three local directories dev1, dev2, dev3.

When I create userpics, single copies of the pics are stored to /var/mogdata/dev1/0/000/000 - /var/mogdata/dev3/0/000/000. But it is only storing 1 copy of each userpic (mindevcount is set to 3 for userpics).

Question - Is this working as designed because it is smart enough to realize that dev1-dev3 are really the same file system so why waist space?, or do I have something configured wrong that is preventing replication? (I did notice in the host table for hostid 1 the http_port set to 7500 but there is nothing in the http_get_port).

Thanks.....


(Post a new comment)


[info]marksmith
2006-04-18 10:45 pm UTC (link)
The devcount is a misnomer. It means "minhostcount" really, which his how many hosts to be on. If you have 3 devices but only 1 host, it won't bother copying it to the other devices, as the idea is to have redundancy in the face of host failures, which multiple devices won't give you.

(Reply to this) (Thread)

Thanks
[info]gferris
2006-04-18 11:33 pm UTC (link)
Thanks Mark. I was just happy to get through the install in a half day with the "steller" docs :)....and my zippo Linux experience before a month ago (some Unix 20 years ago when xWindows was a baby).

Nice work and thanks for the quick response.

(Reply to this) (Parent)


Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…