Star

备份后恢复失败

  • nebula 版本:v2.0.0 master
  • 部署方式(分布式 / 单机 / Docker / DBaaS):单机
  • 硬件信息
    • 磁盘( 推荐使用 SSD) ssd
    • CPU、内存信息:128g
  • 问题的具体描述
    1、从备份后的文件恢复到其他服务器的图数据库
    2、执行 ./br restore full --config “/bdp/nebula-console/config/restore_example.yaml”
[root@webserver nebula-console]# ./br restore full --config "/bdp/nebula-console/config/restore_example.yaml"
{"level":"info","ts":1612345364.2736974,"caller":"cmd/validate.go:33","msg":"checking ssh","addr":"192.168.97.53:9559"}
{"level":"info","ts":1612345364.3907235,"caller":"storage/storage.go:31","msg":"parsed external storage","schema":"local","path":"/data/store"}
{"level":"info","ts":1612345365.7066286,"caller":"remote/ssh.go:87","msg":"ssh will exec","addr":"192.168.97.53","cmd":"ls /data/store/BACKUP_2021_02_03_11_26_48","user":"root"}
{"level":"info","ts":1612345365.7387745,"caller":"remote/ssh.go:96","msg":"Command execution completed","result":"BACKUP_2021_02_03_11_26_48.meta\n"}
{"level":"info","ts":1612345365.7827017,"caller":"remote/ssh.go:87","msg":"ssh will exec","addr":"192.168.97.53","cmd":"ls /data/store/BACKUP_2021_02_03_11_26_48","user":"root"}
{"level":"info","ts":1612345365.8502014,"caller":"remote/ssh.go:96","msg":"Command execution completed","result":"BACKUP_2021_02_03_11_26_48.meta\n"}
{"level":"info","ts":1612345365.850258,"caller":"restore/restore.go:74","msg":"download metafile","cmd":["cp","/data/store/BACKUP_2021_02_03_11_26_48/BACKUP_2021_02_03_11_26_48.meta","/tmp/"]}
{"level":"info","ts":1612345367.1845243,"caller":"remote/ssh.go:87","msg":"ssh will exec","addr":"192.168.97.53","cmd":"cd /bdp/nebula2a/ && scripts/nebula.service stop storaged","user":"root"}
{"level":"info","ts":1612345367.1848018,"caller":"remote/ssh.go:87","msg":"ssh will exec","addr":"192.168.97.53","cmd":"cd /bdp/nebula2a/ && scripts/nebula.service stop metad","user":"root"}
{"level":"info","ts":1612345367.3310761,"caller":"remote/ssh.go:96","msg":"Command execution completed","result":"[WARN] The maximum files allowed to open might be too few: 1024\n[INFO] Stopping nebula-metad...\n[INFO] Done\n"}
{"level":"info","ts":1612345367.3314135,"caller":"remote/ssh.go:96","msg":"Command execution completed","result":"[WARN] The maximum files allowed to open might be too few: 1024\n[INFO] Stopping nebula-storaged...\n[INFO] Done\n"}
{"level":"info","ts":1612345368.8615744,"caller":"remote/ssh.go:87","msg":"ssh will exec","addr":"192.168.97.53","cmd":"rm -rf /bdp/nebula2a/data/meta/nebula && mkdir -p /bdp/nebula2a/data/meta/nebula","user":"root"}
{"level":"info","ts":1612345368.8617477,"caller":"remote/ssh.go:87","msg":"ssh will exec","addr":"192.168.97.53","cmd":"rm -rf /bdp/nebula2a/data/storage/nebula && mkdir -p /bdp/nebula2a/data/storage/nebula","user":"root"}
{"level":"info","ts":1612345368.9120028,"caller":"remote/ssh.go:96","msg":"Command execution completed","result":""}
{"level":"info","ts":1612345368.9120567,"caller":"remote/ssh.go:96","msg":"Command execution completed","result":""}
{"level":"info","ts":1612345368.9122503,"caller":"restore/restore.go:143","msg":"download","ip":"192.168.96.96:9779","storage":"192.168.97.53:9779"}
{"level":"info","ts":1612345370.294548,"caller":"remote/ssh.go:87","msg":"ssh will exec","addr":"192.168.97.53","cmd":"cp -rf /data/store/BACKUP_2021_02_03_11_26_48/meta/__statis__.sst /data/store/BACKUP_2021_02_03_11_26_48/meta/__indexes__.sst /data/store/BACKUP_2021_02_03_11_26_48/meta/__tags__.sst /data/store/BACKUP_2021_02_03_11_26_48/meta/__parts__.sst /data/store/BACKUP_2021_02_03_11_26_48/meta/__edges__.sst /data/store/BACKUP_2021_02_03_11_26_48/meta/__spaces__.sst /data/store/BACKUP_2021_02_03_11_26_48/meta/__configs__.sst /data/store/BACKUP_2021_02_03_11_26_48/meta/__users__.sst /data/store/BACKUP_2021_02_03_11_26_48/meta/__index__.sst  /bdp/nebula2a/data/meta","user":"root"}
{"level":"info","ts":1612345370.2947335,"caller":"remote/ssh.go:87","msg":"ssh will exec","addr":"192.168.97.53","cmd":"cp -rf /data/store/BACKUP_2021_02_03_11_26_48/storage/192.168.96.96:9779/12 /data/store/BACKUP_2021_02_03_11_26_48/storage/192.168.96.96:9779/1 /data/store/BACKUP_2021_02_03_11_26_48/storage/192.168.96.96:9779/24 /data/store/BACKUP_2021_02_03_11_26_48/storage/192.168.96.96:9779/48 /data/store/BACKUP_2021_02_03_11_26_48/storage/192.168.96.96:9779/83 /data/store/BACKUP_2021_02_03_11_26_48/storage/192.168.96.96:9779/66 /data/store/BACKUP_2021_02_03_11_26_48/storage/192.168.96.96:9779/95 /data/store/BACKUP_2021_02_03_11_26_48/storage/192.168.96.96:9779/112  /bdp/nebula2a/data/storage/nebula","user":"root"}
{"level":"error","ts":1612345370.3405151,"caller":"remote/ssh.go:93","msg":"ssh run failed","error":"Process exited with status 1","stacktrace":"github.com/vesoft-inc/nebula-storage/util/br/pkg/remote.(*Client).ExecCommandBySSH\n\t/bdp/nebula-storage/util/br/pkg/remote/ssh.go:93\ngithub.com/vesoft-inc/nebula-storage/util/br/pkg/restore.(*Restore).downloadStorage.func1.1\n\t/bdp/nebula-storage/util/br/pkg/restore/restore.go:156\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/root/go/pkg/mod/golang.org/x/sync@v0.0.0-20190423024810-112230192c58/errgroup/errgroup.go:57"}
{"level":"error","ts":1612345370.3410401,"caller":"remote/ssh.go:93","msg":"ssh run failed","error":"Process exited with status 1","stacktrace":"github.com/vesoft-inc/nebula-storage/util/br/pkg/remote.(*Client).ExecCommandBySSH\n\t/bdp/nebula-storage/util/br/pkg/remote/ssh.go:93\ngithub.com/vesoft-inc/nebula-storage/util/br/pkg/restore.(*Restore).downloadMeta.func1.1\n\t/bdp/nebula-storage/util/br/pkg/restore/restore.go:118\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/root/go/pkg/mod/golang.org/x/sync@v0.0.0-20190423024810-112230192c58/errgroup/errgroup.go:57"}
{"level":"error","ts":1612345370.341149,"caller":"restore/restore.go:433","msg":"restore error","stacktrace":"github.com/vesoft-inc/nebula-storage/util/br/pkg/restore.(*Restore).RestoreCluster\n\t/bdp/nebula-storage/util/br/pkg/restore/restore.go:433\ngithub.com/vesoft-inc/nebula-storage/util/br/cmd.newFullRestoreCmd.func2\n\t/bdp/nebula-storage/util/br/cmd/restore.go:72\ngithub.com/spf13/cobra.(*Command).execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:850\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:958\ngithub.com/spf13/cobra.(*Command).Execute\n\t/root/go/pkg/mod/github.com/spf13/cobra@v1.1.1/command.go:895\nmain.main\n\t/bdp/nebula-storage/util/br/main.go:15\nruntime.main\n\t/usr/lib/golang/src/runtime/proc.go:204"}
Error: Process exited with status 1
1赞

这个工具还没正式发布,等GA之后才发布使用

@monadbobo

你可以执行下错误日志里面最下面的几个cp命令,看看会报什么错?

现在版本的BR有一些bug,GA版本会修复所有已知bug.

浙ICP备20010487号