[Nix-dev] ZFS on NixOS regarding the `/etc/zfs/zpool.cache` file.

Roger Qiu roger.qiu at polycademy.com
Tue Apr 28 05:22:43 CEST 2015


Hi,

To people using ZFS on NixOS, does your `zdb` command work?

I tried using `zdb` and it just gives:

```
cannot open '/etc/zfs/zpool.cache': No such file or directory
```

This file `/etc/zfs/zpool.cache` file does not exist if you follow the 
instructions regarding installing ZFS on NixOS.

This line 
https://github.com/NixOS/nixos/blob/master/modules/tasks/filesystems/zfs.nix#L6 
hints that the current ZFS package doesn't handle the 
`/etc/zfs/zpool.cache` file.

What's missing, and how would we set up the `zpool.cache` file?

Thanks,
Roger

-- 
Founder of Matrix AI
http://matrix.ai/
+61420925975



More information about the nix-dev mailing list