How to Re-intialize MongoDB in Openstack

Following is the procedure to re-initialize MongoDB in OpenStack



1. Stop mongod on all the nodes (if it is running). If service is in fail state then leave it as is
2. Remove all the files in /var/lib/mongod. If you are moving the mongodb directory and making new one make sure to run restorecon command     # mv /var/lib/mongodb /var/lib/mongodb-old      # mkdir /var/lib/mongodb     # chown mongodb.mongodb /var/lib/mongodb     # restorecon /var/lib/mongodb
3. start the mongodb on first controller
4. Get the mongo service ip from ceilometer.conf file     # cat /etc/ceilometer/ceilometer.conf | grep mongo     connection=mongodb://x.y.z.a:27017,x.y.z.b:27017,x.y.z.c:27017/ceilometer?replicaSet=tripleo
5. login to the mongodb     # mongo x.y.z.a
6. Intiate the replicaset     > rs.initiate()
7. Make the current node as master     >rs.isMaster(“x.y.z.a”)
8. Start the mongodb on other two controllers
9. Add other two nodes as members from first controller     >rs.add(“x.y.z.b”)     &…

About Me

Professional Summary

  • Seasoned professional with 17+ years of experience in the Information Technology sector. A strong combination of technology understanding, relationship building skills and business acumen, gained through a diverse variety of working in different roles and responsibilities.

  • Technical Expertise in Solutions Architecture of Virtualization, Cloud Services Infrastructure and Solutions.

  • Vast experience in Enterprise Architecture, Consulting, Partner Enablement and People Leadership

  • Understanding of Business and Technology Systems, lead Architect in Solution Design, Planning, Deployment, Implementation of Private and Hybrid Cloud Services.

  • Lead the Transformation and Automation of Virtualization and Cloud Services (IaaS & PaaS) with DevOps.

Certifications


  • TOGAF 9.1 (Level 1 & 2)
  • Red Hat Certified Engineer (RHCE)
  • Red Hat Certified Virtualization Associate
  • VMware 4.0 Certified
  • Microsoft Certified System Engineer (MCSE)
  • Cisco Certified Network Associate (CCNA)

Popular posts from this blog

How to Re-intialize MongoDB in Openstack