Steeve

发表的评论

我不知道 systemd timer 可以用于 fstrim。我发现我的 /home 和 / 文件系统没有被自动执行 trim,因为它们是 lvm 和 luks 加密的,只有 /boot 和 /boot/efi 被执行。我不得不调整 /etc/lvm/lvm.conf, /etc/crypttab 和 /etc/fstab 中的一些设置,然后强制 dracut 重建 initramfs 以启用 discards 并让 fstrim 在这些文件系统上运行。https://blog.christophersmart.com/2013/06/05/trim-on-lvm-on-luks-on-ssd/

ix 只是一个 bash 函数,可以用以下方式获取:

curl ix.io/client > ix
chmod +x ix
./ix -h

© . All rights reserved.