Migrating from Centos to Ubuntu

Have a 2TB MongoDB v4.4.3 running as stand-alone instance on Centos.
Need to migrate the databases to Ubuntu.

My options are:

  1. Mongodump / mongorestore - will take days to complete.
  2. Create a replica on Ubuntu with same MongoDB version and sync the data - will also take days.
  3. Install v4.4.3 on Ubuntu and copy dbPath from Centos.

Minimum downtime is critical.
Is option 3 (copy dbPath ) supported?

1 Like

physical file copy requires compatibility on many things i believe, if there are some tricks that have been applied on centos but not supported on ubuntu, then it won’t work.

That being said, it is very easy to just try it. Otherwise no.1 or 2 can be used.