diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 3feb15f..79f5e93 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "2025/xg-infra-upgrade-2025.md", + "file": "2021/zfs-snapshots.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "xg-infra-upgrade-2025" + "title": "zfs-snapshots" } } ] @@ -52,7 +52,7 @@ "state": { "type": "search", "state": { - "query": "tag: #freebsd infra", + "query": "snap", "matchingCase": false, "explainSearch": false, "collapseAll": false, @@ -165,8 +165,8 @@ }, "active": "316987f51496a482", "lastOpenFiles": [ - "2024/Gitea build on FreeBSD 14.2.md", "2025/xg-infra-upgrade-2025.md", + "2024/Gitea build on FreeBSD 14.2.md", "2021/zfs-snapshots.md", "2024/So you wanna do FreeBSD 14.1 and native Home Assistant?.md", "2024/freebsd-notes.md", diff --git a/2025/xg-infra-upgrade-2025.md b/2025/xg-infra-upgrade-2025.md index 0ab8f1b..33c7934 100644 --- a/2025/xg-infra-upgrade-2025.md +++ b/2025/xg-infra-upgrade-2025.md @@ -102,6 +102,18 @@ data/test-dataset/dataset-1 128M 410G 128M /data/test-dataset/dataset-1 https://klarasystems.com/articles/openzfs-storage-best-practices-and-use-cases-part-3-databases-and-vms/ https://github.com/openzfs/zfs/issues/7631 +## Syncthing per-share zfs subvolume + +For important shares data we set copies=2 and checksum=sha256 +``` +# zfs create zpool/syncthing/shares/myshare +# zfs set copies=2 zpool/syncthing/shares/myshare +# zfs set checksum=sha256 zpool/syncthing/shares/myshare +``` + +Which shares?: +* jerry/pyrotechnics +* jerry/private ## ZFS snapshot visibility Hide the `.zfs/snapshot` directory in the dataset so Syncthing doesn't sync it by accident when not ignored via `.stignore`: @@ -123,6 +135,7 @@ See https://docs.oracle.com/cd/E78901_01/html/E78912/gprhq.html * [[freebsd-notes]] * [[freebsd-jail-vanilla]] +* [[zfs-snapshots]] * [[So you wanna do FreeBSD 14.1 and native Home Assistant?]] * [[computers-and-machines]]