I need help instaling mongodb 64 bit in debian

77 views
Skip to first unread message

Krazhor

unread,
Apr 11, 2016, 11:17:01 AM4/11/16
to mongodb-user

Hi, I have some issues in my unifi controller so I found out that was because my mongodb was 32bit, so I was following this linkhttps://help.ubnt.com/hc/en-us/articles/204911424-UniFi-How-to-remove-prune-older-data-and-adjust-mo...   for the pruning procces but that did not help.

 

I know that the solution for this is to install mongodb 64 bit. My new issue is that I have not been able to install monodb 64-bit.... 

 

I have followed these links. 

https://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/

https://docs.mongodb.org/manual/tutorial/install-mongodb-enterprise-on-linux/

 

I have use apt-get autoclean and purge but for some reason I always end with Mongodb 32bit installed. 

 

Any Suggestion please?

 

System info

Linux unifi 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u3 x86_64 GNU/

Linux Release: 7.9 Codename: wheezy Description: Debian GNU/Linux 7.9 (wheezy)

Unifi 4.8.14

 

Mongodb corrupted regarding 2gb limit


Stephen Steneker

unread,
Apr 29, 2016, 4:28:40 AM4/29/16
to mongodb-user

On Tuesday, 12 April 2016 01:17:01 UTC+10, Krazhor wrote:

Hi, I have some issues in my unifi controller so I found out that was because my mongodb was 32bit, so I was following this linkhttps://help.ubnt.com/hc/en-us/articles/204911424-UniFi-How-to-remove-prune-older-data-and-adjust-mo… for the pruning procces but that did not help.

I know that the solution for this is to install mongodb 64 bit. My new issue is that I have not been able to install monodb 64-bit….

Hi,

I noticed no one has commented on this thread yet. I would suggest following up on this in the Unifi forum if you haven’t already: http://community.ubnt.com/unifi.

I expect Unifi may have some specific requirements for compatibility with their software, so I wouldn’t recommend upgrading mongod independently of advice from someone with knowledge of Unifi’s product requirements.

I’m not familiar with the Unifi environment, but it sounds like you may have reached the ~2GB limit for data files in a 32-bit deployment with MMAP.

An alternative approach to upgrading the mongod used inside the Unifi environment might be to:

  • backup your MongoDB data from the Unifi controller and load this into a 64-bit mongod external to the Unifi environment (note: the 64-bit version of mongod should be the same server version as you are currently running with Unifi).
  • run the Unifi prune script to reduce the data in the 64-bit environment
  • use mongodump to create a backup from your 64-bit mongod
  • drop the old data from your 32-bit Unifi environment and mongorestore the pruned backup

If you do try this approach, be sure to save backups in case anything doesn’t go to plan.

Hope that helps!

Regards,
Stephen

Reply all
Reply to author
Forward
0 new messages