post-cleanup and preCleanup files in moveChunk directory

992 views
Skip to first unread message

Mark Kwan

unread,
Feb 28, 2011, 1:40:32 PM2/28/11
to mongodb-user
I know the post-cleanup and preCleanup files in the moveChunk
directory are related to data migration between shards. What's not
clear to me (and I don't see it in the docs) are if these files are
supposed to be cleaned up after a successful chunk move. Over 10% of
my disk space is now being used by this directory and most of that
data has a timestamp over a month old. Are those files just there for
logging purposes, or are they still there because something in the
migration process failed? Is there a reason not to delete these
files?


sridhar

unread,
Feb 28, 2011, 2:37:48 PM2/28/11
to mongodb-user
Mark, the files are not automatically deleted upon moving a chunk. You
can definitely safely delete older files e.g. over a week

sridhar

unread,
Feb 28, 2011, 4:08:00 PM2/28/11
to mongodb-user

Markus Gattol

unread,
Feb 28, 2011, 4:54:04 PM2/28/11
to mongodb-user

Mark Kwan

unread,
Feb 28, 2011, 9:27:00 PM2/28/11
to mongodb-user
Ah, I saw your web page Markus, but I missed the point in the Sharding
FAQ that explicitly indicated that they can/should be removed.

So, on error, Mongo will automatically retry and make use of those
files? It's not a manual fixing process like restoring conflicting
data in rollback files?


On Feb 28, 1:54 pm, Markus Gattol <markus.gat...@gmail.com> wrote:
> have a look athttp://www.markus-gattol.name/ws/mongodb.html#post-cleanup_or_removed...

Scott Hernandez

unread,
Feb 28, 2011, 9:35:28 PM2/28/11
to mongod...@googlegroups.com
On Mon, Feb 28, 2011 at 6:27 PM, Mark Kwan <mark...@gmail.com> wrote:
> Ah, I saw your web page Markus, but I missed the point in the Sharding
> FAQ that explicitly indicated that they can/should be removed.
>
> So, on error, Mongo will automatically retry and make use of those
> files?  It's not a manual fixing process like restoring conflicting
> data in rollback files?

They are mostly used during the moveChunk process but are kept for
redundancy afterwards.

It can be used for manual restoration of moved chunks; I know of a
situation where shard data was lost but they were able to restore the
data that had been moved onto it from other shards using these files.

> On Feb 28, 1:54 pm, Markus Gattol <markus.gat...@gmail.com> wrote:
>> have a look athttp://www.markus-gattol.name/ws/mongodb.html#post-cleanup_or_removed...
>

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages