we have mongodb sitting @ 600gb. we've deleted lot of documents, , in hopes of shrinking it, repaired onto 2tb drive.
it ran hours, running out of 2tb space. when looked @ repair directory, had created way more files original database??
anyway, i'm trying alternative options. first thought create new mongodb, , copy each row old new. possible this, , what's fastest way?
i have lot of success in copying database using db.copydatabase command:
link mongodb copydatabase
i have used mongovue, software makes easy copy databases 1 location - monogovue (which jus ta graphical interface on top of monogo).
if have no luck copydatabase, can suggest try dump , restore database external file, mongodump or lvcreate
here full read on backup , restore should allow copy database easily: http://docs.mongodb.org/manual/core/backups/
Comments
Post a Comment