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

Roger Qiu roger.qiu at polycademy.com
Tue Apr 28 06:11:25 CEST 2015


Hello,

I found the commit relating to my problem: 
https://github.com/NixOS/nixpkgs/commit/12e77fdc3f6f223be1a4d5c88d6c79bff63ae70c#commitcomment-10932244

I made a comment regarding the lack of zpool.cache file. It's required 
for `zdb` to work. Perhaps we can generate the `zpool.cache` file at 
startup?

Thanks,
Roger

On 28/04/2015 3:22 PM, Roger Qiu wrote:
> 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