<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Solve on</title><link>https://topology2333.github.io/blog/categories/solve/</link><description>Recent content in Solve on</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 27 Jun 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://topology2333.github.io/blog/categories/solve/index.xml" rel="self" type="application/rss+xml"/><item><title>zfs: couldn't save system state</title><link>https://topology2333.github.io/blog/posts/bad-bpool/</link><pubDate>Thu, 27 Jun 2024 00:00:00 +0000</pubDate><guid>https://topology2333.github.io/blog/posts/bad-bpool/</guid><description>&lt;p>bpool 空间不够了。&lt;/p>
&lt;p>在 reddit 上找到了解决方案，用 &lt;a href="https://github.com/Venomtek/zsysctl-manual-gc/">GitHub&lt;/a> 上的脚本成功解决。以下引用自这个 &lt;a href="https://www.reddit.com/r/linuxquestions/comments/13jdzn3/how_to_maintain_20_minimum_free_space_on_bpool/">reddit&lt;/a>。&lt;/p>
&lt;p>尽管 zfs 只是 storing the differences，但是每个 state 都需要大约 100MB 的新存储空间。
由于 zsys 的默认策略是保持至少 20 个状态，这将需要 20 * 100MB = 2GB 的存储空间。这意味着我们要使用整个 boot 分区来进行快照。
还有一个解决方案是参考这篇 &lt;a href="https://didrocks.fr/2020/06/04/zfs-focus-on-ubuntu-20.04-lts-zsys-state-collection/">博客&lt;/a>，方法是手动编辑 &lt;code>zsys.conf&lt;/code> 减少快照存储数量。&lt;/p></description></item></channel></rss>