点点-求助来了
(Ti D Ber Hfq T4 L Lf)
1
【 TiDB 使用环境】生产环境
【 TiDB 版本】5.0.1
【复现路径】做过哪些操作出现的问题
【遇到的问题:问题现象及影响】
【资源配置】
【附件:截图/日志/监控】
tiup br backup full --pd “${PD_IP}:2379”
–backupts ‘2022-09-08 13:30:00’
–storage “s3://backup-101/snapshot-202209081330?access-key=${access-key}&secret-access-key=${secret-access-key}”
–ratelimit 128 \
br参数怎么来的:${access-key}和${secret-access-key}填写什么
点点-求助来了
(Ti D Ber Hfq T4 L Lf)
4
不会说的是云存储吧!那不代表不用云就没有这个功能吗
你不用s3,直接指定本地路径也可以啊–storage “local:///tmp/backup1”
1 个赞
点点-求助来了
(Ti D Ber Hfq T4 L Lf)
7
tiup br backup full --pd “${PD_IP}:2379”
–backupts ‘2022-09-08 13:30:00’
–storage “/tmp/backup1”
–ratelimit 128
这样吗
点点-求助来了
(Ti D Ber Hfq T4 L Lf)
8
tiup is checking updates for component br …
Starting component br
: /root/.tiup/components/br/v5.4.2/br backup full --pd 192.168.30.141:2379 --backupts 2022-09-08 13:30:00 --storage local:/home/tidb/databak --ratelimit 128
Detail BR log in /tmp/br.log.2023-04-22T13.34.01+0800
[2023/04/22 13:34:01.699 +08:00] [INFO] [collector.go:67] [“Full backup failed summary”] [total-ranges=0] [ranges-succeed=0] [ranges-failed=0]
Error: GC safepoint 440963060007698432 exceed TS 435844546560000000: [BR:Backup:ErrBackupGCSafepointExceeded]backup GC safepoint exceeded
点点-求助来了
(Ti D Ber Hfq T4 L Lf)
9
tiup is checking updates for component br …
Starting component br
: /root/.tiup/components/br/v5.4.2/br backup full --pd 192.168.30.141:2379 --backupts 2022-09-08 13:30:00 --storage local:/home/tidb/databak --ratelimit 128
Detail BR log in /tmp/br.log.2023-04-22T13.34.01+0800
[2023/04/22 13:34:01.699 +08:00] [INFO] [collector.go:67] [“Full backup failed summary”] [total-ranges=0] [ranges-succeed=0] [ranges-failed=0]
Error: GC safepoint 440963060007698432 exceed TS 435844546560000000: [BR:Backup:ErrBackupGCSafepointExceeded]backup GC safepoint exceeded
backupts 2022-09-08 13:30:00
这个时间点也太早了,没有gc数据了
1 个赞
点点-求助来了
(Ti D Ber Hfq T4 L Lf)
12
我知道了,执行命令时的时间是官方文档直接复制过去的,改下时间就好了
点点-求助来了
(Ti D Ber Hfq T4 L Lf)
13
Error: error happen in store 4 at 192.168.30.139:20160: Io(Os { code: 2, kind: NotFound, message: “No such file or directory” }): [BR:KV:ErrKVStorage]tikv storage occur I/O error
点点-求助来了
(Ti D Ber Hfq T4 L Lf)
14
home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/worker.go:73\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371"] [unit-name=“range start:7480000000000000355f69800000000000000100 end:7480000000000000355f698000000000000001fb”] [error=“rpc error: code = Canceled desc = context canceled”] [errorVerbose=“rpc error: code = Canceled desc = context canceled\ngithub.com/tikv/pd/client.(*client).GetAllStores\n\t/go/pkg/mod/github.com/tikv/pd@v1.1.0-beta.0.20211118054146-02848d2660ee/client/client.go:1523\ngithub.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStores\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:142\ngithub.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:179\ngithub.com/pingcap/tidb/br/pkg/utils.WithRetry\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/retry.go:60\ngithub.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:176\ngithub.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRange\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:511\ngithub.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRanges.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:471\ngithub.com/pingcap/tidb/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/worker.go:73\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371”] [unit-name=“range start:74800000000000003d5f69800000000000000100 end:74800000000000003d5f698000000000000001fb”] [error=“rpc error: code = Canceled desc = context canceled”] [errorVerbose=“rpc error: code = Canceled desc = context canceled\ngithub.com/tikv/pd/client.(*client).GetAllStores\n\t/go/pkg/mod/github.com/tikv/pd@v1.1.0-beta.0.20211118054146-02848d2660ee/client/client.go:1523\ngithub.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStores\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:142\ngithub.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:179\ngithub.com/pingcap/tidb/br/pkg/utils.WithRetry\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/retry.go:60\ngithub.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:176\ngithub.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRange\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:511\ngithub.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRanges.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:471\ngithub.com/pingcap/tidb/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/worker.go:73\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371”] [unit-name=“range start:7480000000000000515f720000000000000000 end:7480000000000000515f72ffffffffffffffff00”] [error=“rpc error: code = Canceled desc = context canceled”] [errorVerbose=“rpc error: code = Canceled desc = context canceled\ngithub.com/tikv/pd/client.(*client).GetAllStores\n\t/go/pkg/mod/github.com/tikv/pd@v1.1.0-beta.0.20211118054146-02848d2660ee/client/client.go:1523\ngithub.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStores\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:142\ngithub.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:179\ngithub.com/pingcap/tidb/br/pkg/utils.WithRetry\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/retry.go:60\ngithub.com/pingcap/tidb/br/pkg/conn.GetAllTiKVStoresWithRetry\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/conn/conn.go:176\ngithub.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRange\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:511\ngithub.com/pingcap/tidb/br/pkg/backup.(*Client).BackupRanges.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/backup/client.go:471\ngithub.com/pingcap/tidb/br/pkg/utils.(*WorkerPool).ApplyOnErrorGroup.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/br/br/pkg/utils/worker.go:73\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371”]
Error: error happen in store 4 at 192.168.30.139:20160: Io(Os { code: 2, kind: NotFound, message: “No such file or directory” }): [BR:KV:ErrKVStorage]tikv storage occur I/O error
system
(system)
关闭
15
此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。