You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kbcli version
Kubernetes: v1.25.8-gke.1000
KubeBlocks: 0.5.3-beta.8
kbcli: 0.5.3-beta.8
Create mongodb cluster and do backup, then restore
`kbcli cluster list-instances cluster-letcbo --namespace default `
NAME NAMESPACE CLUSTER COMPONENT STATUS ROLE ACCESSMODE AZ CPU(REQUEST/LIMIT) MEMORY(REQUEST/LIMIT) STORAGE NODE CREATED-TIME
cluster-letcbo-mongodb-0 default cluster-letcbo mongodb Running primary ReadWrite us-central1-c 200m / 200m 644245094400m / 644245094400m data:2Gi gke-yjtest-default-pool-ce006ea7-w18c/10.128.15.202 Jun 26,2023 19:32 UTC+0800
cluster-letcbo-mongodb-1 default cluster-letcbo mongodb Running secondary Readonly us-central1-c 200m / 200m 644245094400m / 644245094400m data:2Gi gke-yjtest-default-pool-ce006ea7-chjh/10.128.15.206 Jun 26,2023 19:31 UTC+0800
cluster-letcbo-mongodb-2 default cluster-letcbo mongodb Running secondary Readonly us-central1-c 200m / 200m 644245094400m / 644245094400m data:2Gi gke-yjtest-default-pool-ce006ea7-7n4n/10.128.15.201 Jun 26,2023 19:31 UTC+0800
`kbcli cluster backup cluster-letcbo --type datafile --namespace default `
Backup backup-default-cluster-letcbo-20230626193705 created successfully, you can view the progress:
kbcli cluster list-backups --name=backup-default-cluster-letcbo-20230626193705 -n default
check backup status
`kbcli cluster list-backups cluster-letcbo --namespace default `
NAME CLUSTER TYPE STATUS TOTAL-SIZE DURATION CREATE-TIME COMPLETION-TIME EXPIRATION
backup-default-cluster-letcbo-20230626193705 cluster-letcbo datafile InProgress Jun 26,2023 19:37 UTC+0800 Jul 03,2023 19:37 UTC+0800
backup_status:datafile-InProgress
check backup status done
backup_status:backup-default-cluster-letcbo-20230626193705 cluster-letcbo datafile Completed 17s Jun 26,2023 19:37 UTC+0800 Jun 26,2023 19:37 UTC+0800 Jul 03,2023 19:37 UTC+0800
cluster restore backup
`kbcli cluster restore cluster-letcbo-backup --backup backup-default-cluster-letcbo-20230626193705 --namespace default `
The new restored cluster is creating for more than 10 mins because the pods are restarted again after running
k get pod
NAME READY STATUS RESTARTS AGE
cluster-letcbo-backup-mongodb-0 3/3 Running 1 (2m39s ago) 4m56s
cluster-letcbo-backup-mongodb-1 3/3 Running 0 15s
cluster-letcbo-backup-mongodb-2 3/3 Running 0 4m56s
k get pod
NAME READY STATUS RESTARTS AGE
cluster-letcbo-backup-mongodb-0 3/3 Running 1 (2m43s ago) 5m
cluster-letcbo-backup-mongodb-1 3/3 Running 0 19s
cluster-letcbo-backup-mongodb-2 3/3 Terminating 0 5m
k get pod
NAME READY STATUS RESTARTS AGE
cluster-letcbo-backup-mongodb-0 0/3 ContainerCreating 0 14s
cluster-letcbo-backup-mongodb-1 3/3 Running 0 108s
cluster-letcbo-backup-mongodb-2 3/3 Running 0 60s
After all pods restarted and turn to running, the cluster is running
The text was updated successfully, but these errors were encountered:
kbcli version
Kubernetes: v1.25.8-gke.1000
KubeBlocks: 0.5.3-beta.8
kbcli: 0.5.3-beta.8
The text was updated successfully, but these errors were encountered: