Re: ZFS on Guix, again

2021-03-08 Thread raid5atemyhomework
BUMP > Hi Ludo, > > > > I agree with 宋文武 regarding ‘file-system-service-type’. > > > raid5atemyhomework raid5atemyhomew...@protonmail.com skribis: > > > > > > > However, for the case where the user expects the "typical" ZFS style of > > > > managing file systems, we need to mount all the ZFS file

Re: ZFS on Guix, again

2021-02-24 Thread raid5atemyhomework
Hi Ludo, > > I agree with 宋文武 regarding ‘file-system-service-type’. > > raid5atemyhomework raid5atemyhomew...@protonmail.com skribis: > > > > > However, for the case where the user expects the "typical" ZFS style of > > > managing file systems, we need to mount all the ZFS file systems and > > >

Re: ZFS on Guix, again

2021-02-22 Thread raid5atemyhomework
Hi Ludo' > Hi, > > Sorry for the delay; this isn’t as simple as it looks! > > I agree with 宋文武 regarding ‘file-system-service-type’. > > raid5atemyhomework raid5atemyhomew...@protonmail.com skribis: > > > However, for the case where the user expects the "typical" ZFS style of > > managing file sy

Re: ZFS on Guix, again

2021-02-22 Thread Ludovic Courtès
Hi, Sorry for the delay; this isn’t as simple as it looks! I agree with 宋文武 regarding ‘file-system-service-type’. raid5atemyhomework skribis: > However, for the case where the user expects the "typical" ZFS style of > managing file systems, we need to mount all the ZFS file systems and ensure

Re: ZFS on Guix, again

2021-02-20 Thread 宋文武
raid5atemyhomework writes: > Hi guix-devel, > > I had some questions on the big ZFS guix bugpatches a week ago, and > did not find any response, so I am back here pestering everyone. Hello, thank you for working on ZFS for guix! > > [...] > There are two alternatives: > > * Go with what I alrea

ZFS on Guix, again

2021-02-20 Thread raid5atemyhomework
Hi guix-devel, I had some questions on the big ZFS guix bugpatches a week ago, and did not find any response, so I am back here pestering everyone. Anyway: * I am wary of calling the service type that accepts kernel modules as `linux-loadable-module-service-type`: * The equivalent existing

Re: ZFS on Guix

2021-02-10 Thread Efraim Flashner
On Mon, Feb 08, 2021 at 09:32:27AM +, raid5atemyhomework wrote: > > * the shepherd services defined in `configuration.scm` > > seem one-shot services to me, so maybe add '(one-shot? #t)'. > > I was wary of making the `zfs-scan` one-shot, since there is a dependent > service on top of it. N

Re: ZFS on Guix

2021-02-09 Thread raid5atemyhomework
Hello Danny, > I just wanted to say that I'm not ignoring your patch, I'm just not qualified > to review it. I hope someone steps up to it--otherwise I can't really tell > whether (mbegin %state-monad...) inside a random service procedure is a good > idea. > > Then again, provenance-service-type d

Re: ZFS on Guix

2021-02-08 Thread Maxime Devos
On Mon, 2021-02-08 at 09:32 +, raid5atemyhomework wrote: > > * the shepherd services defined in `configuration.scm` > > seem one-shot services to me, so maybe add '(one-shot? #t)'. > > I was wary of making the `zfs-scan` one-shot, since there is a dependent > service on top of it. Not to m

Re: ZFS on Guix

2021-02-08 Thread raid5atemyhomework
> * the shepherd services defined in `configuration.scm` > seem one-shot services to me, so maybe add '(one-shot? #t)'. I was wary of making the `zfs-scan` one-shot, since there is a dependent service on top of it. Not to mention restarting `zfs-scan` could be useful if for example you were d

Re: ZFS on Guix

2021-02-08 Thread Maxime Devos
Hi raid5atemyhomework, I can't help you with ZFS, but I think I've found some small issues with the configuration file: * the shepherd services defined in `configuration.scm` seem one-shot services to me, so maybe add '(one-shot? #t)'. * in the 'stop' of zfs-automount, the code changes the wor

Re: ZFS on Guix

2021-02-08 Thread raid5atemyhomework
Hi guix-developers and users, Here are some notes I made about how to get `/` on ZFS, maybe someone else can think about it. --- Most importantly, it seems for this style we need to consider first `/boot` ***not*** on ZFS, and have `/` on ZFS. I presume grub has some way to read ZFS pools

Re: ZFS on Guix

2021-02-07 Thread raid5atemyhomework
Hi Joshua, > raid5atemyhomework raid5atemyhomew...@protonmail.com writes: > > > The patchset currently dying on issues.guix.gnu.org would provide a nice > > simple single-step way to enable very basic ZFS support on your Guix > > system. Until it gets merged, however, you can still enable very v

Re: ZFS on Guix

2021-02-07 Thread Joshua Branson
raid5atemyhomework writes: > The patchset currently dying on issues.guix.gnu.org would provide a nice > simple single-step way to enable *very basic* ZFS support on your Guix > system. Until it gets merged, however, you can still enable *very very > basic* ZFS support on your Guix system by f

Re: ZFS on Guix

2021-02-07 Thread Danny Milosavljevic
I just wanted to say that I'm not ignoring your patch, I'm just not qualified to review it. I hope someone steps up to it--otherwise I can't really tell whether (mbegin %state-monad...) inside a random service procedure is a good idea. Then again, provenance-service-type does it and there it seem

Re: ZFS on Guix

2021-02-07 Thread raid5atemyhomework
e` or `linux-libre-lts` since those could be updated to past what the ZFS on Guix supports, be explicit with what kernel version you have. Just remember to update to a later LTS version if ZFS on Guix ever gets updated to a later version. Then, you need to create a ZFS package, by adding

Re: ZFS on Guix

2021-01-09 Thread raid5atemyhomework
Hi guix-developers, > Now, my understanding is that `/etc/` directory is recreated at each `guix > system reconfigure`. Thus, if ZFS maintains information in `/etc/zfs/` then > on a reconfigure the information is lost. > > If so --- for Guix, what should I use instead? > Okay, a `guix system r

Re: ZFS on Guix

2021-01-09 Thread raid5atemyhomework
Hi guix-developers, I just found out that ZFS on Linux maintains a file `/etc/zfs/zpool.cache` which contains information on ZPOOLs (i.e. ZFS-managed RAID arrays). I just didn't encounter this file before on Guix because the file is created if and only if the directory `/etc/zfs/` exists, and

Re: ZFS on Guix

2021-01-06 Thread raid5atemyhomework
Latest patchset: https://issues.guix.gnu.org/45692

Re: ZFS on Guix

2021-01-05 Thread raid5atemyhomework
Hi guix-developers, Another issue here is that ZFS prefers to not be managed via `/etc/fstab`/`mount`/`umount`. Instead, at startup ZFS magically imports ZFS pools and mounts ZFS datasets in the correct place, as configured in the `mountpoint` properties of the dataset. This magic is actually

Re: ZFS on Guix

2021-01-05 Thread raid5atemyhomework
Thank you Carlo! I've now tested the new tests I added in `gnu/tests/linux-modules.scm`, and the existing tests as well, and they all pass. Hope to get some review on that patch! Thanks raid5atemyhomework

Re: ZFS on Guix

2021-01-05 Thread Carlo Zancanaro
Apologies for the short reply, but that permission issue can be solved in the short term by changing the permissions on /dev/kvm (I set it to 777 to force it when necessary, because I don't know what the right permissions are). The proper solution is probably to add your user to a kvm group on y

Re: ZFS on Guix

2021-01-05 Thread raid5atemyhomework
Hi Carlo, Thanks, I modified patch as below. I also can't get `guix system vm` to run in my hacking env, so I couldn't make a VM for testing like you did. I got this: ``` Formatting '/gnu/store/imdlq0cay61d2cw3199g04z9bp16qx8j-qemu-image', fmt=qcow2 cluster_size=65536 compression_type=zlib si

Re: ZFS on Guix

2021-01-05 Thread Carlo Zancanaro
Hi raid5atemyhomework, On Wed, Jan 06 2021, raid5atemyhomework wrote: I have this patch below for creating a new `kernel-loadable-module-service-type`, which can be extended by another service to add kernel-loadable modules provided by packages, hope for a review. I tried out building a VM u

Re: ZFS on Guix

2021-01-05 Thread raid5atemyhomework
Hi Carlo and guix-developers, I have this patch below for creating a new `kernel-loadable-module-service-type`, which can be extended by another service to add kernel-loadable modules provided by packages, hope for a review. >From 984602faba1e18b9eb64e62970147aab653d997f Mon Sep 17 00:00:00 20

Re: ZFS on Guix

2021-01-05 Thread raid5atemyhomework
ability to push kernel modules into the operating system. Here's a sketch of an attempt to add that feature so we can conveniently add ZFS on Guix by just adding a `(service zfs-service-type...)`. First, we need a new `kernel-loadable-module-service-type` in `gnu/services.scm`: ```s

Re: ZFS on Guix

2021-01-04 Thread raid5atemyhomework
Available here: https://issues.guix.gnu.org/45643 Please review! Hopefully it gets merged! > Yes, I found that out after a little more digging. > > I have a preliminary patch here: https://issues.guix.gnu.org/45592 > However I will make a patchset based on this in order to support /home on ZFS >

Re: ZFS on Guix

2021-01-04 Thread raid5atemyhomework
Yes, I found that out after a little more digging. I have a preliminary patch here: https://issues.guix.gnu.org/45592 However I will make a patchset based on this in order to support /home on ZFS and managing ZFS the "legacy" way by (file-system ...) declaration, please wait. > Hi, > > the rea

Re: ZFS on Guix

2021-01-03 Thread Danny Milosavljevic
Hi, the reason is that our "zfs" package uses ("util-linux" ,util-linux "lib") and then does (substitute* "lib/libzfs/libzfs_mount.c" (("/bin/mount") (string-append util-linux "/bin/mount")) (("/bin/umount") (string-append util-linux "/bin/umou

Re: ZFS on Guix

2021-01-02 Thread raid5atemyhomework
Hi guix-developers, I just did a an `strace -f zfs mount tank`, and got this interesting bit in a child process: execve("/gnu/store/a45p39mgqvfd8kjwibyr0q42klmw7gmf-util-linux-2.35.1-lib/bin/mount", ["/gnu/store/a45p39mgqvfd8kjwibyr0"..., "--no-canonicalize", "-t", "zfs", "-o", "defaults,

ZFS on Guix

2021-01-02 Thread raid5atemyhomework
Hi guix-developers, I'm trying to get ZFS working on a test VM running Guix System. Attempting to do a simple `guix install zfs` does not work, as I reported in https://issues.guix.gnu.org/45401 , ZFS 0.8.5 is only up to kernel 5.9 but latest guix has kernel 5.10. I created a procedure to modi