Add simple zfs example and make-disk-image test for it#1235
Open
MatthewCroughan wants to merge 2 commits intonix-community:masterfrom
Open
Add simple zfs example and make-disk-image test for it#1235MatthewCroughan wants to merge 2 commits intonix-community:masterfrom
MatthewCroughan wants to merge 2 commits intonix-community:masterfrom
Conversation
This is a real world example that contains some nice features like zstd compression and noatime, just to show what's possible. A user could just use this as-is and change only the disk path
This uses the simple zfs on root example to test that zfs disk images can be made in CI
1ee9e02 to
06a3e1c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This test and example is good to keep track of. The example is how I actually use disko on my own setups, and I think it's a good starter template to get the most out of ZFS in the real world, and worth sharing. Can refine if there is disagreement on some of the values.
The long standing dreaded "cp: Cannot allocate memory" issue seems to be limited to ZFS, and can only be reproduced at the moment on kernel 6.19, and not the default kernelPackages, which is set to LTS 6.12.
To reproduce that issue, add
boot.kernelPackages = pkgs.linuxPackages_6_19;totests/make-disk-image-zfs.nixlike so: