How to recover data if the simulated data disk is damaged? #2964
Replies: 5 comments 3 replies
-
|
我感觉rustfs还有一段时间得打磨,我这几天也在弄,但是发现了一些问题,而且排查起来还很麻烦。 |
Beta Was this translation helpful? Give feedback.
-
|
rustfs-linux-x86_64-musl-latest.zip 这个最新版本你创建用户之后,能用新用户登录成功吗? |
Beta Was this translation helpful? Give feedback.
-
|
对 yjgs 存储桶进行手动深度健康修复任务,提示运行成功,但是文件也没恢复 No heal operation currently running. |
Beta Was this translation helpful? Give feedback.
-
|
@mxt-gith-qq Does the 1.jpg/xl.meta file exist on other normal disks? |
Beta Was this translation helpful? Give feedback.
-
|
It is recommended to refrain from writing data immediately and back up the data directories of the remaining three normal disks. I verified the same scenario on the current RustFS main in a 4-node/4-disk distributed mode: after uploading 1.jpg to 5.jpg and then clearing one of the disks, restarting the cluster, all five objects were restored to the cleared disk, and S3 GET read verifications all passed. Therefore, the current version does not reproduce the "only partial object recovery" issue in a distributed 4-node/4-disk environment. For your environment, it is recommended to follow the steps below:
If the problem persists after a deep heal, please provide the following:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
目的:在服务器搭建RustFS系统,想模拟磁盘损坏恢复数据的过程。
服务器信息:操作系统为银河麒麟,有5块磁盘(4块挂载盘),Linux bogon 4.19.90-89.11.v2401.ky10.x86_64 #1 SMP Tue May 7 18:33:01 CST 2024 x86_64 x86_64 x86_64 GNU/Linux
以下是我的操作步骤:
1 格式化磁盘,并给磁盘设置标签,以便后续挂载
2 创建目录并授权
3 挂载
4 下载并安装RustFS
5 配置环境变量(单机多盘模式)
6 配置系统服务
7 重新加载服务配置,防火墙开通相关端口略过
8 启动rustfs服务
9 访问文件系统
10 创建存储桶yjgs,并上传5张jpg图片,分别为1.jpg、2.jpg、3.jpg、4.jpg和5.jpg
执行上面的10步操作后,开始模拟磁盘/dev/sdb损坏
1)、关闭或不关闭Rustfs服务的情况下,将/data/rustfs0目录的文件全部清空;
2)、重启Rustfs服务,发现/data/rustfs0目录只恢复了2.jpg、3.jpg和5.jpg三个文件;
请问如何操作或配置能将/data/rustfs0目录下的文件全部恢复,麻烦给出详细的解决方案,谢谢!
Beta Was this translation helpful? Give feedback.
All reactions