From d9eaaf807f10b7f20855e231cb897f21f7876d36 Mon Sep 17 00:00:00 2001 From: Jerry Jacobs Date: Thu, 19 Dec 2024 20:01:11 +0100 Subject: [PATCH] vault backup: 2024-12-19 20:01:11 --- .obsidian/workspace.json | 11 ++++++----- 2025/xg-infra-upgrade-2025.md | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 5bff931..3feb15f 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "2024/Gitea build on FreeBSD 14.2.md", + "file": "2025/xg-infra-upgrade-2025.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "Gitea build on FreeBSD 14.2" + "title": "xg-infra-upgrade-2025" } } ] @@ -52,7 +52,7 @@ "state": { "type": "search", "state": { - "query": "tag: #freebsd ", + "query": "tag: #freebsd infra", "matchingCase": false, "explainSearch": false, "collapseAll": false, @@ -73,7 +73,8 @@ "title": "Bookmarks" } } - ] + ], + "currentTab": 1 } ], "direction": "horizontal", @@ -164,8 +165,8 @@ }, "active": "316987f51496a482", "lastOpenFiles": [ - "2025/xg-infra-upgrade-2025.md", "2024/Gitea build on FreeBSD 14.2.md", + "2025/xg-infra-upgrade-2025.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 649170c..18f22ca 100644 --- a/2025/xg-infra-upgrade-2025.md +++ b/2025/xg-infra-upgrade-2025.md @@ -72,6 +72,29 @@ Improvements & things to not forget: 2. Set zfs-auto-snapshot property (for zfstools) : `zfs set ..` 3. Create share in Syncthing web GUI 4. Ignore .zfs folder (to not propagate to connected peers): filter `.zfs` + +# ZFS dataset datablock copies + +For extra redundancy amount of datablock copies can be set and tested: + +``` +# zfs create data/test-dataset/dataset-1 +# zfs list +# zfs set copies=2 data/test-dataset/dataset-1 +# zfs get copies data/test-dataset/dataset-1 +root@mango:/data/test-dataset/dataset-1 # dd if=/dev/random of=testfile bs=64K count=1024 +1024+0 records in +1024+0 records out +67108864 bytes transferred in 0.609759 secs (110058049 bytes/sec) +root@mango:/data/test-dataset/dataset-1 # ls -lah +total 131146 +drwxr-xr-x 2 root wheel 3B Dec 19 19:56 . +drwxr-xr-x 3 root wheel 3B Dec 19 19:55 .. +-rw-r--r-- 1 root wheel 64M Dec 19 19:57 testfile +root@mango:/data/test-dataset/dataset-1 # zfs list | grep dataset-1 +data/test-dataset/dataset-1 128M 410G 128M /data/test-dataset/dataset-1 +``` + # See also * [[freebsd-notes]]