Not the answer you need?
Register and ask your own question!

Percona for single server

dgoguetdgoguet Current User Role Poster
Hi!
I'm test driving percona backup for mongodb for a single server (so, no replicaset in connection URI), but I get an error message:
Error starting backup: no confirmation that backup has successfully started. Replsets status:
<no replset has started backup>
What is the right way to backup a single server?
Thanks!

Best Answer

Answers

  • csilvacsilva Current User Role Poster
    edited July 23
    Hi, @AndrewPogrebnoi
    I'm trying to backup a database from a container, I've the same error, how could I make it work?  :/
    Error starting backup: no confirmation that backup has successfully started. Replsets status: <no replset has started backup>
  • AndrewPogrebnoiAndrewPogrebnoi Percona Staff Role Contributor
    Hi @csilva

    Could you provide more context please:
    1. What pbm version do you use?
    2. Mongo cluster topology  -is it replicaset or sharded cluster?
    3. What do you mean by backup a database from a container? What exactly do you have in a container - pbm, pbm-agents, mongo, all together? 
    4. What do you have in pbm-agents' logs?
  • csilvacsilva Current User Role Poster
    @AndrewPogrebnoi
    I'm using version 1.2.0, It's running in kubernetes, I have only one instance of MongoDB and I'm trying to backup what is storing that instance. My  pbm instance is running in other container in kubernetes, and in my logs I've got this:
    2020/07/23 15:14:08 [ERROR] backup: node check: mongod node can not be used to fetch a consistent backup because it has
    no oplog. Please restart it as a primary in a single-node replicaset to make it compatible with PBM's backup method usin
    g the oplog
  • AndrewPogrebnoiAndrewPogrebnoi Percona Staff Role Contributor
    @csilva
    Ok, got it. PBM doesn't support non replicated environments and there is no way to make it does. It is a design constraint. You can use PBM with a single-node replicaset though. Just restart your node as a primary in a single-node replicaset as the error message suggests.
    Or you can use mongodump (https://docs.mongodb.com/manual/reference/program/mongodump/) to backup a standalone node.

    Cheers.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.