【已解决】节点数据迁移至其他硬盘后pruntime报错

【问题】将Khala-dev-node文件迁移至第二块硬盘后pruntime运行状态是running但是数据不同步
【操作复盘】因为硬盘空间不足,挂载了第二块硬盘到/mnt/newdb,将节点数据拷贝到/mnt/newdb目录下,并将khala-pruntime文件夹同样拷贝至/mnt/newdb目录下。修改了/opt/phala/.env文件内容如下:
NODE_IMAGE=phalanetwork/khala-node

PRUNTIME_IMAGE=phalanetwork/phala-pruntime

PHERRY_IMAGE=phalanetwork/phala-pherry

NODE_VOLUMES=/mnt/newdb:/root/data

PRUNTIME_VOLUMES=/mnt/newdb/pruntime-data:/root/data

CORES=10

version=0.1.6
【报错信息】截图&文字:这是pruntime的log
[2021-10-08T15:35:21Z INFO rocket::rocket] Outcome: Success
[2021-10-08T15:35:21Z INFO rocket::rocket] Response succeeded.
[2021-10-08T15:35:27Z INFO rocket::rocket] POST /get_info application/json:
[2021-10-08T15:35:27Z INFO rocket::rocket] Matched: POST /get_info application/json (get_info_post)
[INFO phactory::bin_api_service] {“payload”:"{“blocknum”:0,“dev_mode”:false,“ecdh_public_key”:null,“gatekeeper”:{“master_public_key”:"",“role”:0},“genesis_block_hash”:null,“git_revision”:“de4d736456888f14ea3238a8b7d110bcd7fb5806”,“headernum”:0,“initialized”:false,“machine_id”:“1ef2c0faae2bec9e3b5be708d83ccbcd”,“memory_usage”:{“rust_peak_used”:1670371,“rust_used”:90037,“total_peak_used”:42045440},“para_headernum”:0,“pending_messages”:0,“public_key”:null,“registered”:false,“running_side_tasks”:0,“score”:0,“state_root”:"",“version”:“0.1.1”}",“signature”:null,“status”:“ok”}
[2021-10-08T15:35:27Z INFO rocket::rocket] Outcome: Success
[2021-10-08T15:35:27Z INFO rocket::rocket] Response succeeded.
[2021-10-08T15:36:21Z INFO rocket::rocket] POST /prpc/PhactoryAPI.GetInfo:
[2021-10-08T15:36:21Z INFO rocket::rocket] Matched: POST /prpc/ (prpc_proxy)
[INFO phactory::prpc_service] Dispatching request: PhactoryAPI.GetInfo
[INFO enclaveapp] pRPC status code: 200, data len: 68
[2021-10-08T15:36:21Z INFO rocket::rocket] Outcome: Success
[2021-10-08T15:36:21Z INFO rocket::rocket] Response succeeded.
[2021-10-08T15:36:21Z INFO rocket::rocket] POST /prpc/PhactoryAPI.InitRuntime:
[2021-10-08T15:36:21Z INFO rocket::rocket] Matched: POST /prpc/ (prpc_proxy)
[INFO phactory::prpc_service] Dispatching request: PhactoryAPI.InitRuntime
[ERROR phactory::prpc_service] Rpc error: AppError(“Failed to load persistent data: IoError(Read seal file failed: Sgx { code: SGX_ERROR_MAC_MISMATCH, message: “Indicates verification error for reports, sealed datas, etc.” } path=”/root/data/runtime-data.seal")")
【补充说明】worker机之前用500G硬盘,称为A硬盘。后来加了一块1T的硬盘称为B硬盘。我试过把节点khala-dev-node文件夹与khala-pruntime-data文件夹移动到B硬盘,然后修改.env文件将两个文件路径指向B硬盘的目录。但是pherry的数据一直是0,后来把khala-pruntime-data指向A硬盘原始目录。运行状态正常,但是pruntime依然报错。难道不能直接拷贝所有数据到新硬盘做数据迁移运行吗?

最新错误信息如下
[INFO phactory::prpc_service] Dispatching request: PhactoryAPI.InitRuntime
[ERROR phactory::prpc_service] Rpc error: AppError(“Failed to load persistent data: IoError(Read seal file failed: Sgx { code: SGX_ERROR_MAC_MISMATCH, message: “Indicates verification error for reports, sealed datas, etc.” } path=”/root/data/runtime-data.seal")")
[INFO enclaveapp] pRPC status code: 500, data len: 212

可能khala-node的数据库损坏 ,同步到52万高度的khala-node 重启khala-node容器。看硬盘性能 启动需要时间的 普通ssd 差不多3到5分钟 nvme 3分钟

新增或减少硬件,修改bios配置等操作都可能会导致“安全隐患”,Phala安全计算对这方面要求比较严格,建议你停止该worker,等7天冷却期,删除PRUNTIME的缓存,确定调整好所有硬件后,重新注册上链开启挖矿。

更换硬件 在更换之前 测试一下新节点的硬件sgx 以及信任等级

新加节点 启动 和同步太慢了 cpu还没少占资源 意味着电没少用


src=http___inews.gtimg.com_newsapp_match_0_9397885421_0.jpg&refer=http___inews.gtimg