惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 罗志威

lotus 删除过期扇区 (转) lotus 1.16.0 延长扇区过期时间 (转) 教你炒股票29:转折的力度与级别 教你炒股票28:回复(一) 教你炒股票27:回复 教你炒股票27:盘整背驰与历史性底部 教你炒股票25:回复(1) 教你炒股票25:每日解盘 教你炒股票25:吻,MACD、背弛、中枢 教你炒股票24:MACD对背弛的辅助判断 教你炒股票21:缠中说禅买卖点分析的完备性 教你炒股票19:学习缠中说禅技术分析理论的关键 - 罗志威 教你炒股票18:不被面首的雏男是不完美的 - 罗志威 教你炒股票15:没有趋势,没有背驰 - 罗志威 教你炒股票7:给赚了指数亏了钱的一些忠告 教你炒股票6:本ID如何在五粮液、包钢权证上提款的! 教你炒股票4:什么是理性?今早买N中工就是理性! 缠论108课序篇--股市闲谈:G点是G点,大牛不用套! 缠中说禅的博客
lotus 1.16.0 最小快照导出 导入 (转)
罗志威 · 2022-10-04 · via 博客园 - 罗志威

原文地址:https://mixboot.blog.csdn.net/article/details/126065029

lotus 1.16.0 最小快照导出 导入
系列文章目录
前言
一、lotus
二、导出最小快照
1.后台导出快照
三、导入快照
四、运行 lotus
五、导出快照时间
参考
前言
lotus 1.16.0 最小快照

一、lotus
# lotus --version
lotus version 1.16.0+mainnet+git.01254ab32
1
2
二、导出最小快照
1.后台导出快照
screen -S chia
1
lotus chain export --recent-stateroots=901 --skip-old-msgs my-snapshot.car
1
快照导出完成
68G Jul 29 12:26 my-snapshot.car
1
三、导入快照
参考
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
1

运行
lotus daemon stop
1
# mv lotus/datastore/chain/ lotus/datastore/chain_backup
# mkdir lotus/datastore/chain
# du -sh lotus/datastore/*
1
2
3
导入快照
lotus daemon --import-snapshot my-snapshot.car --halt-after-import
1
四、运行 lotus
nohup lotus daemon > /seal/daemon.log 2>&1 &
1
五、导出快照时间
最小快照导出时间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}

参考
Compacting the chain data

————————————————
版权声明:本文为CSDN博主「mixboot」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u010953692/article/details/126065029