Good night dear,
I’m taking an error when performing pbm restore and I already checked the documentation and I didn’t understand the problem, see if you can help me.
[root@trs-v-mngo-1p02 ~]# pbm status
Cluster:
========
trs_replicaset:
- trs_replicaset/trs-v-mngo-1p01:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-1p02:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-2p01:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-2p02:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-7p02:27017: pbm-agent v1.4.1 OK
PITR incremental backup:
========================
Status [OFF]
Currently running:
==================
(none)
Backups:
========
FS /mongodb/dfs
Snapshots:
2021-03-30T03:10:59Z 16.00GB [complete: 2021-03-30T03:21:19]
PITR chunks:
2021-03-29T12:32:36 - 2021-03-29T19:16:09 1.10MB
2021-03-28T23:11:55 - 2021-03-29T12:20:23 2.14MB
[root@trs-v-mngo-1p02 ~]# pbm list
Backup snapshots:
2021-03-30T03:10:59Z [complete: 2021-03-30T03:21:19]
PITR <off>:
2021-03-28T23:11:55 - 2021-03-29T12:20:23
2021-03-29T12:32:36 - 2021-03-29T19:16:09
Segue o erro quando executo o pbm restore
[root@trs-v-mngo-1p02 ~]# pbm restore --time="2021-03-29T19:16:09" --mongodb-uri="mongodb://pbmuser:password@trs-v-mngo-1p02:27017"
...............Error: no confirmation that restore has successfully started. Replsets status:
<no replset has started restore>
[root@trs-v-mngo-1p02 ~]# pbm logs
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p01:27017] got command pitrestore [name: 2021-03-31T20:41:18.783807038Z, point-in-time ts: 1617074479] <ts: 1617223278>
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p02:27017] [pitr/2021-03-30T03:21:19Z] Node in not suitable for restore
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p01:27017] got epoch {1617074485 1}
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p01:27017] [pitr/2021-03-30T03:21:19Z] Node in not suitable for restore
2021-03-31T20:41:20Z E [trs_replicaset/trs-v-mngo-1p02:27017] [pitr/2021-03-30T03:21:19Z] restore: define last oplog slice: get: mongo: no documents in result
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p01:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p01:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p01:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p02:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p02:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p02:27017] [pitr/2021-03-29T19:16:09Z] recovery started
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p02:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p02:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p01:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-7p02:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p02:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-7p02:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p01:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-7p02:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p01:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
[root@trs-v-mngo-1p02 ~]# pbm logs
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p01:27017] got command pitrestore [name: 2021-03-31T20:41:18.783807038Z, point-in-time ts: 1617074479] <ts: 1617223278>
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p02:27017] [pitr/2021-03-30T03:21:19Z] Node in not suitable for restore
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p01:27017] got epoch {1617074485 1}
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p01:27017] [pitr/2021-03-30T03:21:19Z] Node in not suitable for restore
2021-03-31T20:41:20Z E [trs_replicaset/trs-v-mngo-1p02:27017] [pitr/2021-03-30T03:21:19Z] restore: define last oplog slice: get: mongo: no documents in result
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p01:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p01:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p01:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p02:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p02:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p02:27017] [pitr/2021-03-29T19:16:09Z] recovery started
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p02:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p02:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p01:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-7p02:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p02:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-7p02:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p01:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-7p02:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p01:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
[root@trs-v-mngo-1p02 ~]# pbm logs
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p01:27017] got command pitrestore [name: 2021-03-31T20:41:18.783807038Z, point-in-time ts: 1617074479] <ts: 1617223278>
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p02:27017] [pitr/2021-03-30T03:21:19Z] Node in not suitable for restore
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p01:27017] got epoch {1617074485 1}
2021-03-31T20:41:19Z I [trs_replicaset/trs-v-mngo-2p01:27017] [pitr/2021-03-30T03:21:19Z] Node in not suitable for restore
2021-03-31T20:41:20Z E [trs_replicaset/trs-v-mngo-1p02:27017] [pitr/2021-03-30T03:21:19Z] restore: define last oplog slice: get: mongo: no documents in result
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p01:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p01:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p01:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p02:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p02:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-1p02:27017] [pitr/2021-03-29T19:16:09Z] recovery started
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p02:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p02:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p01:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-7p02:27017] got command pitrestore [name: 2021-03-31T20:42:01.079660884Z, point-in-time ts: 1617045369] <ts: 1617223321>
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p02:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-7p02:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p01:27017] got epoch {1617074485 1}
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-7p02:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
2021-03-31T20:42:01Z I [trs_replicaset/trs-v-mngo-2p01:27017] [pitr/2021-03-29T19:16:09Z] Node in not suitable for restore
The uri I exported on bash_profile as follows:
export PBM_MONGODB_URI=mongodb://pbmuser:password@trs-v-mngo-1p01:27017,trs-v-mngo-1p02:27017,trs-v-mngo-2p01:27017,trs-v-mngo-2p02:27017,trs-v-mngo-7p02:27017/admin?replicaSet=trs_replicaset
[root@trs-v-mngo-1p02 ~]# cat /etc/sysconfig/pbm-agent
PBM_MONGODB_URI="mongodb://pbmuser:password@trs-v-mngo-1p02:27017"
[root@trs-v-mngo-1p02 ~]# cat /mongodb/pbm_config.yml
storage:
type: filesystem
filesystem:
path: /mongodb/dfs
pitr:
enabled: true
On the other hand, pbm backup works normally
[root@trs-v-mngo-1p02 ~]# pbm backup
Starting backup '2021-03-31T22:27:09Z'....................
Backup '2021-03-31T22:27:09Z' to remote store '/mongodb/dfs' has started
[root@trs-v-mngo-1p02 ~]# pbm status
Cluster:
========
trs_replicaset:
- trs_replicaset/trs-v-mngo-1p01:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-1p02:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-2p01:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-2p02:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-7p02:27017: pbm-agent v1.4.1 OK
PITR incremental backup:
========================
Status [OFF]
Currently running:
==================
Snapshot backup "2021-03-31T22:27:09Z", started at 2021-03-31T22:27:26Z. Status: snapshot backup. [op id: 6064f73ddd56da03da297aaa]
Backups:
========
FS /mongodb/dfs
Snapshots:
2021-03-31T22:27:09Z 0.00B [running: running / 2021-03-31T22:27:28]
2021-03-30T03:10:59Z 16.00GB [complete: 2021-03-30T03:21:19]
PITR chunks:
2021-03-29T12:32:36 - 2021-03-29T19:16:09 1.10MB
2021-03-28T23:11:55 - 2021-03-29T12:20:23 2.14MB
[root@trs-v-mngo-1p02 ~]# pbm status
Cluster:
========
trs_replicaset:
- trs_replicaset/trs-v-mngo-1p01:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-1p02:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-2p01:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-2p02:27017: pbm-agent v1.4.1 OK
- trs_replicaset/trs-v-mngo-7p02:27017: pbm-agent v1.4.1 OK
PITR incremental backup:
========================
Status [OFF]
Currently running:
==================
Snapshot backup "2021-03-31T22:27:09Z", started at 2021-03-31T22:27:26Z. Status: snapshot backup. [op id: 6064f73ddd56da03da297aaa]
Backups:
========
FS /mongodb/dfs
Snapshots:
2021-03-31T22:27:09Z 0.00B [running: running / 2021-03-31T22:27:28]
2021-03-30T03:10:59Z 16.00GB [complete: 2021-03-30T03:21:19]
PITR chunks:
2021-03-29T12:32:36 - 2021-03-29T19:16:09 1.10MB
2021-03-28T23:11:55 - 2021-03-29T12:20:23 2.14MB
[root@trs-v-mngo-1p02 ~]# pbm logs
2021-03-31T22:22:27Z I [trs_replicaset/trs-v-mngo-7p02:27017] got epoch {1617074485 1}
2021-03-31T22:22:28Z I [trs_replicaset/trs-v-mngo-7p02:27017] [pitr/2021-03-30T03:21:19Z] Node in not suitable for restore
2021-03-31T22:22:28Z I [trs_replicaset/trs-v-mngo-2p01:27017] got command pitrestore [name: 2021-03-31T22:22:27.466686762Z, point-in-time ts: 1617074479] <ts: 1617229347>
2021-03-31T22:22:28Z I [trs_replicaset/trs-v-mngo-2p01:27017] got epoch {1617074485 1}
2021-03-31T22:22:28Z I [trs_replicaset/trs-v-mngo-2p01:27017] [pitr/2021-03-30T03:21:19Z] Node in not suitable for restore
2021-03-31T22:22:28Z I [trs_replicaset/trs-v-mngo-1p02:27017] got command pitrestore [name: 2021-03-31T22:22:27.466686762Z, point-in-time ts: 1617074479] <ts: 1617229347>
2021-03-31T22:22:28Z I [trs_replicaset/trs-v-mngo-1p02:27017] got epoch {1617074485 1}
2021-03-31T22:22:28Z I [trs_replicaset/trs-v-mngo-1p02:27017] [pitr/2021-03-30T03:21:19Z] recovery started
2021-03-31T22:22:29Z E [trs_replicaset/trs-v-mngo-1p02:27017] [pitr/2021-03-30T03:21:19Z] restore: define last oplog slice: get: mongo: no documents in result
2021-03-31T22:27:09Z I [trs_replicaset/trs-v-mngo-1p02:27017] got command backup [name: 2021-03-31T22:27:09Z, compression: s2] <ts: 1617229629>
2021-03-31T22:27:09Z I [trs_replicaset/trs-v-mngo-2p01:27017] got command backup [name: 2021-03-31T22:27:09Z, compression: s2] <ts: 1617229629>
2021-03-31T22:27:09Z I [trs_replicaset/trs-v-mngo-1p02:27017] got epoch {1617074485 1}
2021-03-31T22:27:09Z I [trs_replicaset/trs-v-mngo-2p01:27017] got epoch {1617074485 1}
2021-03-31T22:27:10Z I [trs_replicaset/trs-v-mngo-1p01:27017] got command backup [name: 2021-03-31T22:27:09Z, compression: s2] <ts: 1617229629>
2021-03-31T22:27:10Z I [trs_replicaset/trs-v-mngo-1p01:27017] got epoch {1617074485 1}
2021-03-31T22:27:10Z I [trs_replicaset/trs-v-mngo-2p02:27017] got command backup [name: 2021-03-31T22:27:09Z, compression: s2] <ts: 1617229629>
2021-03-31T22:27:10Z I [trs_replicaset/trs-v-mngo-7p02:27017] got command backup [name: 2021-03-31T22:27:09Z, compression: s2] <ts: 1617229629>
2021-03-31T22:27:10Z I [trs_replicaset/trs-v-mngo-2p02:27017] got epoch {1617074485 1}
2021-03-31T22:27:10Z I [trs_replicaset/trs-v-mngo-7p02:27017] got epoch {1617074485 1}
2021-03-31T22:27:26Z I [trs_replicaset/trs-v-mngo-2p01:27017] [backup/2021-03-31T22:27:09Z] backup started