From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eEgfG+XS8F9WHAAA0tVLHw (envelope-from ) for ; Sat, 02 Jan 2021 20:09:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qBTrFuXS8F8fMwAA1q6Kng (envelope-from ) for ; Sat, 02 Jan 2021 20:09:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0B88A940105 for ; Sat, 2 Jan 2021 20:09:08 +0000 (UTC) Received: from localhost ([::1]:34148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvnD1-0001QP-OZ for larch@yhetil.org; Sat, 02 Jan 2021 15:09:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvaDb-0008Vt-Rt for guix-devel@gnu.org; Sat, 02 Jan 2021 01:16:51 -0500 Received: from mail-40132.protonmail.ch ([185.70.40.132]:54498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvaDX-000416-Ue for guix-devel@gnu.org; Sat, 02 Jan 2021 01:16:51 -0500 Date: Sat, 02 Jan 2021 06:16:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1609568204; bh=KTyBhCua3267vi/rYynBPx1LPU44vZAWorca+1PcawA=; h=Date:To:From:Reply-To:Subject:From; b=WqlvvPdPsiZdUTPqSGN7xDNysWWYQhZhgqtzl2MudeYn7iY9nGPa22tJQqBH6rAO6 eClrv9nO/PHOX60npiljfqiDUYx1O1VJ2/jr2lRq0M8VhSMu4Q6dE+QdHkv3Bip7nK nUdlM+0DAvTK3IrUKZhlgOmUIDgbuI6UG53Y7uFE= To: "guix-devel@gnu.org" From: raid5atemyhomework Subject: ZFS on Guix Message-ID: <_1CLe9QSGsoMlu5WxBMXm4CbFLM_M9iRG1XQF9GDsK0GP208jpngdymfix4tAfoLP94mhMTt-Tx6OP2xN_n78Jhx5KQzkiqPpIci_44C9OI=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.132; envelope-from=raid5atemyhomework@protonmail.com; helo=mail-40132.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 02 Jan 2021 15:08:54 -0500 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: raid5atemyhomework Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=WqlvvPdP; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 0B88A940105 X-Spam-Score: -1.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: t7iwhFJtKcY5 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 i= n https://issues.guix.gnu.org/45401 , ZFS 0.8.5 is only up to kernel 5.9 bu= t latest guix has kernel 5.10. I created a procedure to modify the base `zfs` package and compile it for a= different Linux kernel: ```scheme (define (make-zfs-package kernel) (package (inherit zfs) (name (string-append "zfs-for-" (package-name kernel) "-" (package-version kernel) "-version")) (arguments (cons* #:linux kernel (package-arguments zfs))))) ``` Then in my system configuration `.scm`, I selected a specific Linux and had= its module added to the boot and had it loaded in a Shepherd service: ```scheme (define system-kernel linux-libre-5.4) (define system-zfs (make-zfs-package system-kernel)) ;; ... (operating-system (kernel system-kernel) (kernel-loadable-modules (list (list system-zfs "module"))) ;; ... (packages (cons* system-zfs ; ... %base-packages)) ;; ... (services (cons* (service kernel-module-loader-service-type '("zfs")) ; ... %base-services)) ;; ... ) ``` As I documented here: https://issues.guix.gnu.org/45592#1 Now ZFS is loaded at boot (`lsmod | grep zfs` shows ZFS loaded), and `zfs v= ersion` and `zpool list` don't error out. However, when I created some extra space in the QEMU image and created a pa= rtition `vda3`, I get an error in `zpool create tank vda3`. The error is `cannot mount 'tank': Input/output error`. I've also tried adding a new device to the QEMU boot as well, also the same= occurs. Looking at a partition editor, the partition does get formatted as zfs, it = just won't mount. Has anyone ever managed to get ZFS working on Guix? Any tips? Is it enoug= h to `modprobe` it in a system service or does it have to somehow be added = to the Linux command line? Maybe it only works on even older Linux-libre v= ersions than 5.4? Thanks raid5atemyhomework