mongodb-persistent template lock file issue

Solution Verified - Updated -

Issue

  • The OpenShift mongodb-persistent template is not working.
  • the mongo container creates a new lock file and fails starting up mongo

    I STORAGE [initandlisten] exception in initAndListen: 98 Unable to lock file: /var/lib/mongodb/data/mongod.lock errno:5 Input/output error. Is a mongod instance already running?, terminating 
    2018-08-13T08:48:09.782+0000 I CONTROL [initandlisten] dbexit: rc: 100 
    

Environment

  • OpenShift Container Platform 3.9
  • MongoDB 3.2
  • MongoDB 3.4
  • PV mounted as NFS version 3

    (rw,relatime,vers=3,...)
    

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content