当前位置:网站首页>Lotus 1.16.0 minimum snapshot export import
Lotus 1.16.0 minimum snapshot export import
2022-07-30 16:35:00 【mixboot】
系列文章目录
lotus
lotus 1.16.0 Minimal snapshot export 导入
前言
lotus 1.16.0 最小快照
一、lotus
# lotus --version
lotus version 1.16.0+mainnet+git.01254ab32
二、导出最小快照
1.Export snapshots in the background
screen -S chia
lotus chain export --recent-stateroots=901 --skip-old-msgs my-snapshot.car
- The snapshot export is complete
68G Jul 29 12:26 my-snapshot.car
三、导入快照
- 参考
lotus daemon stop
mv ~/.lotus/datastore/chain ~/.lotus/datastore/chain_backup
mkdir ~/.lotus/datastore/chain
lotus daemon --import-snapshot my-snapshot.car --halt-after-import
lotus daemon
lotus sync status
lotus sync wait
- 运行
lotus daemon stop
# mv lotus/datastore/chain/ lotus/datastore/chain_backup
# mkdir lotus/datastore/chain
# du -sh lotus/datastore/* - 导入快照
lotus daemon --import-snapshot my-snapshot.car --halt-after-import
四、运行 lotus
nohup lotus daemon > /seal/daemon.log 2>&1 &
五、导出快照时间
- Minimum snapshot export time
1h30m
# cat daemon.log | grep export
2022-07-29T10:54:35.818+0800 INFO chainstore store/snapshot.go:171 export started
2022-07-29T12:10:28.248+0800 INFO chainstore store/snapshot.go:103 export {
"height": "2024640"}
2022-07-29T12:13:22.675+0800 INFO chainstore store/snapshot.go:103 export {
"height": "2021760"}
......
2022-07-29T12:26:59.062+0800 INFO chainstore store/snapshot.go:103 export {
"height": "2880"}
2022-07-29T12:26:59.627+0800 INFO chainstore store/snapshot.go:103 export {
"height": "0"}
2022-07-29T12:26:59.722+0800 INFO chainstore store/snapshot.go:182 export finished {
"duration": 5543.90347304}
参考
边栏推荐
- 【SOC】Classic output hello world
- 字符串加千分位符与递归数组求和
- How to use Redis for distributed applications in Golang
- 【HMS core】【FAQ】Account、IAP、Location Kit and HarmonyOS典型问题合集1
- 华为云WeLink携手伙伴,共建协同办公生态
- Public Key Retrieval is not allowed error solution
- C#西门子S7 协议通过偏移量的方式读写PLC DB块
- 如何注册域名、备案以及解析
- Visual Studio编辑器 2019:scanf函数返回值被忽略(C4996)报错及解决办法
- vivo announced to extend the product warranty period, the system launched a variety of functional services
猜你喜欢
随机推荐
大厂面试官眼中的好简历到底长啥样
LeetCode-283-移动零
如何在分面中添加数学表达式标签?
Promise Notes (1)
华为云数据治理生产线DataArts,让“数据‘慧’说话”
SocialFi 何以成就 Web3 去中心化社交未来
李沐d2l(七)kaggle房价预测+数值稳定性+模型初始化和激活函数
How to remove last character from string in php
游戏窗口化的逆向分析
如何注册域名、备案以及解析
The service already exists! Solution
【SOC】Classic output hello world
CMake库搜索函数居然不搜索LD_LIBRARY_PATH
Jetpack Compose 到底优秀在哪里?| 开发者说·DTalk
C语言学习之旅 【函数(二)】
How to remove first character from php string
3D激光SLAM:LeGO-LOAM论文解读---激光雷达里程计与建图
【HMS core】【FAQ】push kit、AR Engine、广告服务、扫描服务典型问题合集2
【Linux操作系统】 虚拟文件系统 | 文件缓存
Horizontal Pod Autoscaler(HPA)








