I commented on that commit, but just in case, for future readers: If you add:
boot.supportedFilesystems = [ "zfs" ]; ... to your configuration.nix, then /etc/zfs will be created, and /etc/zfs/zpool.cache will also be created when you import or create a ZFS pool. If you have this option in your configuration.nix and import a pool but even so, zpool.cache isn't created, please file a new issue in the nixpkgs github repository. (BTW, you can also, you can use the "zdb -e" option to invoke zdb on pools that don't have a cache file, but it's better to add "zfs" to the list of supported filesystems). On Tue, Apr 28, 2015 at 6:11 AM, Roger Qiu <[email protected]> wrote: > 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 > _______________________________________________ > nix-dev mailing list > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
