!oNSIfazDqEcwhcOjSL:matrix.org

disko

395 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko108 Servers

Load older messages


SenderMessageTime
14 Mar 2026
@lassulus:lassul.uslassulusI have a vague memory that it also happens on other FS19:48:25
@joerg:thalheim.ioMic92But not 100 percent sure. Would have to check the Kernel code19:49:02
@joerg:thalheim.ioMic92Also this should probably take into account how much memory we give to the vm19:49:58
@lassulus:lassul.uslassulusprobably, but we don't need any cache for paths we copy once from one fs to the other?19:50:21
@joerg:thalheim.ioMic92Well it might also hurt Io scheduling19:50:57
@joerg:thalheim.ioMic92If you flush more often 19:51:09
@joerg:thalheim.ioMic92CP/rsync are probably doing direct I/o as well19:52:10
@joerg:thalheim.ioMic92This usually by passes page cache19:52:32
@lassulus:lassul.uslassuluscp doesn't seem to do it, otherwise this would not happen?19:52:50
@lassulus:lassul.uslassulusor it's a different issue19:53:08
@joerg:thalheim.ioMic92Has been to long since I did that. I with it did something like read into mmap? This would actually not be direct Io but don't remember the mmap flags it used19:54:21
@joerg:thalheim.ioMic92* Has been to long since I read that. I with it did something like read into mmap? This would actually not be direct Io but don't remember the mmap flags it used19:54:43
@joerg:thalheim.ioMic92* Has been to long since I read that. I think it did something like read into mmap? This would actually not be direct Io but don't remember the mmap flags it used19:55:19
@joerg:thalheim.ioMic92Some of them tell the Kernel to not bother with page cache19:56:06
@matthewcroughan:defenestrate.itmatthewcroughanI think it is somehow dependent on the host20:04:40
@matthewcroughan:defenestrate.itmatthewcroughanI have a reproducer now that only fails sometimes20:04:47
@matthewcroughan:defenestrate.itmatthewcroughanEither that or it is dependent on some randomness20:05:42
@matthewcroughan:defenestrate.itmatthewcroughan does xargs sort things on the way in? 20:05:54
@lassulus:lassul.uslassulusgood question, maybe not20:06:20
@matthewcroughan:defenestrate.itmatthewcroughaneven if it was that, and you sorted it, that only means for the same closure you would get the same bug, rather than it failing randomly20:06:45
@matthewcroughan:defenestrate.itmatthewcroughanbut the root cause would still be there20:06:51
@lassulus:lassul.uslassulusmaybe we just create like 8x1gb files and copy that into the new image? for a reproducer20:07:02
@joerg:thalheim.ioMic92
In reply to @lassulus:lassul.us
good question, maybe not
Should be stable because closure info stays the same
20:19:38
@joerg:thalheim.ioMic92The parallel flag might introduce some non-determinism20:20:07
@matthewcroughan:defenestrate.itmatthewcroughan lassulus: if you want a minimal reproducer for ZFS 20:29:49
@matthewcroughan:defenestrate.itmatthewcroughanno PR needed20:29:57
@matthewcroughan:defenestrate.itmatthewcroughan
diff --git a/tests/make-disk-image.nix b/tests/make-disk-image.nix
index eb81f15..2308836 100644
--- a/tests/make-disk-image.nix
+++ b/tests/make-disk-image.nix
@@ -5,10 +5,11 @@
 
 (pkgs.nixos [
   ../module.nix
-  ../example/simple-efi.nix
+  ../example/zfs.nix
   (
     { config, ... }:
     {
+      networking.hostId = "8425e349";
       documentation.enable = false;
       system.stateVersion = config.system.nixos.release;
       disko.memSize = 2048;
20:30:00
@matthewcroughan:defenestrate.itmatthewcroughanThis will cause a kernel panic20:30:10
@matthewcroughan:defenestrate.itmatthewcroughan
nixos-disko-images> + zfs create -up zroot/encrypted -o encryption=aes-256-gcm -o keyformat=passphrase -o keylocation=file:///tmp/secret.key -o mountpoint=none
nixos-disko-images> cannot create 'zroot/encrypted': Failed to open key material file: No such file or directory

Maybe that's the reason though?

20:30:40
@matthewcroughan:defenestrate.itmatthewcroughanYeah okay, maybe that's all it is..20:31:56

Show newer messages


Back to Room ListRoom Version: 10