V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
edis0n0
V2EX  ›  Linux

为什么我的 Ubuntu 不支持 btrfs 去重?

  •  
  •   edis0n0 · 2023-01-31 12:46:14 +08:00 · 2071 次点击
    这是一个创建于 444 天前的主题,其中的信息可能已经有所发展或是发生改变。

    看 kernel 文档 https://btrfs.wiki.kernel.org/index.php/User_notes_on_dedupe 是能用 btrfs dedup enable /mnt/mybtrfspart 启用去重,但我执行这条命令提示 btrfs: unknown token 'dedup' 底下的参数说明也没长得像的。

    其它教程例如 https://linuxhint.com/save-disk-space-btrfs-deduplication/ 让安装 duperemove 这个工具然后配 crontab 每隔一段时间执行一次去重,我觉得很不优雅。

    2 条回复    2023-02-04 11:23:20 +08:00
    Tyris
        1
    Tyris  
       2023-01-31 13:10:17 +08:00
    往下看完,kernel 和 btrfs-progs 都要特定版本

    或者试试 https://github.com/Zygo/bees
    documentzhangx66
        2
    documentzhangx66  
       2023-02-04 11:23:20 +08:00
    目前 Windows Server 最新版,以及 btrfs 、zfs ,去重都是定时的。

    没设计为实时,因为实时去重很消耗性能与时间,定时去重本质上是空间换时间的设计。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2901 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:42 · PVG 10:42 · LAX 19:42 · JFK 22:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.