如何关闭 Sanoid 对数据集子树的快照?

如何关闭 Sanoid 对数据集子树的快照?

我想设置萨尼德创建我的系统数据集的快照,除了/var/lib/docker.我有以下两个模板:

[template_system]
        frequently = 0
        hourly = 0
        daily = 5
        monthly = 3
        yearly = 0
        autosnap = yes
        autoprune = yes
        
[template_ignore]
        autoprune = no
        autosnap = no
        monitor = no
        frequently = 0
        hourly = 0
        daily = 0
        monthly = 0
        yearly = 0

AFAIU,ignore不应该创建任何快照。

然后我按以下方式使用这两个模板:

[builtin/ROOT]
        use_template = system
        recursive = yes

[builtin/ROOT/ubuntu/var/lib/docker]
        process_children_only = yes
        use_template = ignore
        recursive = yes 

但是,通过这些设置,我仍然看到为 生成快照builtin/ROOT/ubuntu/var/lib/docker,例如:

builtin/ROOT/ubuntu/var/lib/docker/8882d709e8d82bb317bb5b33065e0de6f0cdcc9dab4f6513eb0ac811a3893b47@591379486
builtin/ROOT/ubuntu/var/lib/docker/8882d709e8d82bb317bb5b33065e0de6f0cdcc9dab4f6513eb0ac811a3893b47@autosnap_2024-04-23_10:54:36_daily
builtin/ROOT/ubuntu/var/lib/docker/8882d709e8d82bb317bb5b33065e0de6f0cdcc9dab4f6513eb0ac811a3893b47@autosnap_2024-04-24_04:17:46_daily
builtin/ROOT/ubuntu/var/lib/docker/8882d709e8d82bb317bb5b33065e0de6f0cdcc9dab4f6513eb0ac811a3893b47@autosnap_2024-04-25_01:50:31_daily
builtin/ROOT/ubuntu/var/lib/docker/8882d709e8d82bb317bb5b33065e0de6f0cdcc9dab4f6513eb0ac811a3893b47@autosnap_2024-04-26_04:33:42_daily
builtin/ROOT/ubuntu/var/lib/docker/8882d709e8d82bb317bb5b33065e0de6f0cdcc9dab4f6513eb0ac811a3893b47@autosnap_2024-04-28_09:52:35_daily
builtin/ROOT/ubuntu/var/lib/docker/8882d709e8d82bb317bb5b33065e0de6f0cdcc9dab4f6513eb0ac811a3893b47@autosnap_2024-04-28_10:15:00_monthly

为了进行比较,对于system数据集,我创建了相同的快照,还有每月的:

builtin/ROOT/ubuntu/var/lib@autosnap_2024-04-14_14:01:03_monthly
builtin/ROOT/ubuntu/var/lib@autosnap_2024-04-23_10:54:36_daily
builtin/ROOT/ubuntu/var/lib@autosnap_2024-04-24_04:17:46_daily
builtin/ROOT/ubuntu/var/lib@autosnap_2024-04-25_01:50:31_daily
builtin/ROOT/ubuntu/var/lib@autosnap_2024-04-26_04:33:42_daily
builtin/ROOT/ubuntu/var/lib@autosnap_2024-04-28_09:52:35_daily

所以看来ignore的每月和system每日设置应用于 下的数据集builtin/ROOT/ubuntu/var/lib/docker,这当然不是我想要的。我希望 Sanoid 既不为这些数据集创建每日快照也不每月创建快照。我该如何实现这一目标?

相关内容