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 8OroLPKKQGDLFQAA0tVLHw (envelope-from ) for ; Thu, 04 Mar 2021 07:23:30 +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 UCTgKPKKQGBvMgAA1q6Kng (envelope-from ) for ; Thu, 04 Mar 2021 07:23:30 +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 B6CECF0FC for ; Thu, 4 Mar 2021 08:23:29 +0100 (CET) Received: from localhost ([::1]:49686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHiKW-0002UH-TM for larch@yhetil.org; Thu, 04 Mar 2021 02:23:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHiKA-0002Ty-Ol for bug-guix@gnu.org; Thu, 04 Mar 2021 02:23:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHiK6-0006JR-7q for bug-guix@gnu.org; Thu, 04 Mar 2021 02:23:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHiK6-0001U1-3u for bug-guix@gnu.org; Thu, 04 Mar 2021 02:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46555: LVM swap continuously fails guix system: error: service 'swap-/dev/mapper/guix-swap' requires 'device-mapping-guix-swap', which is not provided by any service Resent-From: Shyam Saran Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 04 Mar 2021 07:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46555 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 46555-submit@debbugs.gnu.org id=B46555.16148425735673 (code B ref 46555); Thu, 04 Mar 2021 07:23:02 +0000 Received: (at 46555) by debbugs.gnu.org; 4 Mar 2021 07:22:53 +0000 Received: from localhost ([127.0.0.1]:57546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHiJw-0001TR-E5 for submit@debbugs.gnu.org; Thu, 04 Mar 2021 02:22:52 -0500 Received: from mail-ej1-f66.google.com ([209.85.218.66]:45308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHiJu-0001TE-DY for 46555@debbugs.gnu.org; Thu, 04 Mar 2021 02:22:51 -0500 Received: by mail-ej1-f66.google.com with SMTP id mm21so47036349ejb.12 for <46555@debbugs.gnu.org>; Wed, 03 Mar 2021 23:22:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1oYpjCuVL2pdRPvHhj+o8CoBRr/M64cEPZsb0a/mRy4=; b=Jn/avavn8bk6C7yrAl0350+o1w8KFNyTuwpX306jXKdN6Q92dzGnEXV8qk0lXj5YH8 kxwAhhY1L2Iq2Z06yWn+WsjppbxyI8PPncotvGiKK2HfjAe6aY7Ea92kFNr/zKdNIbmU LuFftrKvcmgp56Ey9ns/F8UxIRzIEOPNucVWBYCIZ9N7cSQDoJ2bPL7tEgldLWcU0Ede gyLcrIKvc/wu0prT6Aj9mIoPK0b+XYMSmCOW3IpN4XQyLHGliRtJbnj1AFaGrGpiZZDF tARrl5tZgvwdIoE0NZhdVGrsimoBlqB6nzxSYc1y12veNvRFyoNO4aabztgiZzaz9vJb T+kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1oYpjCuVL2pdRPvHhj+o8CoBRr/M64cEPZsb0a/mRy4=; b=KbeWM5Ka1/KOZnSBLW+UCrPlhAnLCAY01smH7vf+gui981bXgUB+A8qehGERkTygUY /PjqgrpvaeS+uOw3E8AkImjuJdsXZ3QU4YmzqPUDrX6LrU4vuhip7gVCfsE2k5WKxurC UFO2ZQgF1S9BZMZLgFNTV/Dm+hx5XE88pdt5J1kU3/pep3IVkk31pj0ggc7jueZ1W9tA 3rBxRW5/a7iP+5oMDfcs5kCtcuJN2GgygGxdhvVepj7YFszUCc4jj4wIQozptw0PrF81 GzU2xp1r/0R6zfgSqixTDeko0lkAEd5iecgLHkQpytcTZDbN/ynL1Seu8dB+l0xDN93x ng7w== X-Gm-Message-State: AOAM530WXrHReHJqBThI2wvbQ/GeJpkesOzxNl0vYVBShxgsKJfyjKoY Mi0lyC3tjKoY4+7y4Xn3MBA7m7CZvmgLPKs+vr/uW2ZxNq4= X-Google-Smtp-Source: ABdhPJyK7ncL426f6PjsA7hPX8RMNyEz0O+DBGQTSGxnRlXDihoBCjFAqTAmNoqykGkjA+R/F36nfJQRGtI032+LWg4= X-Received: by 2002:a17:907:7692:: with SMTP id jv18mr2689128ejc.475.1614842564523; Wed, 03 Mar 2021 23:22:44 -0800 (PST) MIME-Version: 1.0 References: <875z2ke9xe.fsf@gnu.org> <8735xkz3m2.fsf@gnu.org> <875z2bw7h2.fsf@gnu.org> In-Reply-To: From: Shyam Saran Date: Thu, 4 Mar 2021 12:52:33 +0530 Message-ID: Content-Type: multipart/alternative; boundary="0000000000006d373805bcb0d5c7" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 46555@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614842610; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=1oYpjCuVL2pdRPvHhj+o8CoBRr/M64cEPZsb0a/mRy4=; b=KX84QqZORBi1B8DQgqYDwGErnrrH/A6syl/1yhfc0bWy48Cx7vNqlOhXoVWrEPqMls4s7e ay4UotqniX9F2NQfe6xS72QP6mgH2h6z9HMjLAS3G7EAbOQ6gW8CcVyfJDqawUe8YWiz3X kEBf1kljPD9ytSlG/2st0OrqYgGsnVZVbLu19pd1RNNHEnpo6SdutXAd379uxsNXgEfGy5 8NC3WuOAFwA6wPUa12bDL9inzgVG/DOMPMPyWLwHXMu/owLXSgVJD/jTYLKQfgOZtRRMHP K5rFfKv8jC+Hs7WtusaZCU7IHUSala83YjibujPC0hWqliprncLgpYqnQkLtlw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614842610; a=rsa-sha256; cv=none; b=Zj4nszV8U8ZjnWAn0uOr4Khcww6T4KUFTN8Gl8L8VnvhbPqLra7dSAIWAAGoxEe2jWKbjx 6cqhX+L6XeRxqaQukWqMcrDQ41SYSUUYNF9MsxMtUNVKslfUHQQy++Bluh3k7QCGCwQtZe ohbyXXICGn7EfIBJ8es0Rw+A1yFsYt/QQ/JzZW89SYzYbcH+woC3hjjmqAvZBrsQly/M1B 5egd+rFviPJg2NuJMZXehliPxue3syvItakPR9aqp1dnj4slbfzwf0UOOhsTqqknljTiCB Vv2RyJp/5gZcWAQZHc9sE02nqApfGDN6OaMEOwuuz7EXPu8+1xScIEjY5RMjZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="Jn/avavn"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="Jn/avavn"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B6CECF0FC X-Spam-Score: -1.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: b5GcIwHRlnLX --0000000000006d373805bcb0d5c7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sorry again, it is excellently working In boot I had noticed enabling swap DEVICE swap signature is missing on DEVICE than understood I had not marked it as swap $ cat /proc/swaps; sudo swapon --all --verbose ; sudo swapon -s ; free -h Filename Type Size Used Priority /dev/mapper/guix-swap partition 1048572 0 -2 Filename Type Size Used Priority /dev/mapper/guix-swap partition 1048572 0 -2 total used free shared buff/cache available Mem: 31Gi 1.6Gi 28Gi 1.0Mi 1.6Gi 29Gi Swap: 1.0Gi 0B 1.0Gi Thanks very much for great help and GNU, Guix, and all the stuff. Thanks again Shyam On Tue, 2 Mar 2021 at 21:42, Shyam Saran wrote: > Hi > > after reconfigure > > building > /gnu/store/qnskr1r67lp92bgy136hqvm7r96s3qrd-upgrade-shepherd-services.scm= .drv... > guix system: warning: exception caught while executing 'start' on service > 'swap-/dev/mapper/guix-swap': > In procedure swapon: "/dev/mapper/guix-swap": Invalid argument > guix system: warning: some services could not be upgraded > hint: To allow changes to all the system services to take effect, you wil= l > need to reboot. > > after 2 reboots also > > $ cat /proc/swaps > > 27s > Filename Type Size Used Priority > $ swapon -s > $ sudo swapon -s > $ swapon --all --verbose > $ sudo swapon --all --verbose > $ > > > > > I do not see swap is getting enabled. > > > Thanks > > > > On Tue, 2 Mar 2021 at 16:12, Shyam Saran wrote= : > >> Sorry >> >> I had forgot to remove >> >> dependency from /boot/efi >> >> >> So it was causing this error >> >> attached the file, reconfiguring the whole system >> hoping it must work >> >> >> >> Thanks very much for all the help :) >> >> >> >> >> On Tue, 2 Mar 2021 at 16:04, Shyam Saran >> wrote: >> >>> As mentioned I had removed all dependency for root "/" fs >>> >>> but result is same >>> >>> $ guix system build ~/tmp/config.scm >>> guix system: warning: the following groups appear more than once: users >>> guix system: error: service 'swap-/dev/mapper/guix-swap' requires >>> 'device-mapping-guix-swap', which is not provided by any service >>> >>> Then again removed all dependencies from all fs /var /gnu /tmp etc >>> But the result is the same. >>> >>> $ guix system build ~/tmp/config.scm >>> guix system: warning: the following groups appear more than once: users >>> guix system: error: service 'swap-/dev/mapper/guix-swap' requires >>> 'device-mapping-guix-swap', which is not provided by any service >>> >>> >>> Thanks >>> >>> >>> On Mon, 1 Mar 2021 at 14:56, Ludovic Court=C3=A8s wrote: >>> >>>> Hi Shyam, >>>> >>>> Shyam Saran skribis: >>>> >>>> > Result of application of system build command >>>> > >>>> > $ guix system build ~/tmp/config.scm >>>> > >>>> > 2s >>>> > guix system: warning: the following groups appear more than once: >>>> users >>>> > guix system: error: service 'swap-/dev/mapper/guix-swap' requires >>>> > 'device-mapping-guix-swap', which is not provided by any service >>>> >>>> The problem here is that you had: >>>> >>>> (file-system >>>> (mount-point "/") >>>> ;; =E2=80=A6 >>>> (needed-for-boot? #t) >>>> (dependencies %localmachine-mapped-devices)) >>>> >>>> All the needed-for-boot file systems had all the mapped devices in >>>> =E2=80=98dependencies=E2=80=99. Thus, no =E2=80=98device-mapping-guix= -swap=E2=80=99 Shepherd service >>>> was created, because that device mapping was needed at boot. >>>> >>>> The solution is to remove the =E2=80=98dependencies=E2=80=99 field for= all your file >>>> systems. Since they have /dev/mapper/=E2=80=A6 as their =E2=80=99devi= ce=E2=80=99, you don=E2=80=99t >>>> need =E2=80=98dependencies=E2=80=99: it=E2=80=99s automatically inferr= ed. If, after this >>>> change, you run: >>>> >>>> guix system shepherd-graph /tmp/config.scm| xdot - >>>> >>>> you can see that the =E2=80=98swap-/dev/mapper/guix-swap=E2=80=99 serv= ice depends on >>>> =E2=80=98device-mapping-guix-swap=E2=80=99. >>>> >>>> HTH! >>>> >>>> Ludo=E2=80=99. >>>> >>> --0000000000006d373805bcb0d5c7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Sorry again, it is ex= cellently working

In boot I had noticed

enabling= swap DEVICE
swap signature is missing on DEVICE

than= understood I had not marked it as swap

$ cat /proc/swaps; sudo= swapon --all --verbose ; sudo swapon -s ; free -h
Filename Type Siz= e Used Priority
/dev/mapper/guix-swap =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0partition 1048572 0 -2
Filename Type Size Used Priority<= br>/dev/mapper/guix-swap =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 partition 1048= 572 0 -2
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0total =C2=A0 = =C2=A0 =C2=A0 =C2=A0used =C2=A0 =C2=A0 =C2=A0 =C2=A0free =C2=A0 =C2=A0 =C2= =A0shared =C2=A0buff/cache =C2=A0 available
Mem: =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 31Gi =C2=A0 =C2=A0 =C2=A0 1.6Gi =C2=A0 =C2=A0 =C2=A0 =C2=A028= Gi =C2=A0 =C2=A0 =C2=A0 1.0Mi =C2=A0 =C2=A0 =C2=A0 1.6Gi =C2=A0 =C2=A0 =C2= =A0 =C2=A029Gi
Swap: =C2=A0 =C2=A0 =C2=A0 =C2=A0 1.0Gi =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A00B =C2=A0 =C2=A0 =C2=A0 1.0Gi



Thanks very much for great help and GNU, Gui= x, and all the stuff.

Thanks again

<= /div>

Shyam



On Tue, 2 Mar 2021 at 21:42, Shyam Saran <syamsaran12345@gmail.com> wrote:
Hi

after reconfigure
=
building /gnu/store/qnskr1r67lp92bgy136hqvm7r96s3qrd-upgrade-shepherd-s= ervices.scm.drv...
guix system: warning: exception caught while executin= g 'start' on service 'swap-/dev/mapper/guix-swap':
In pr= ocedure swapon: "/dev/mapper/guix-swap": Invalid argument
guix= system: warning: some services could not be upgraded
hint: To allow cha= nges to all the system services to take effect, you will need to reboot.
after 2 reboots also

$ cat /proc/swaps =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A027s
Filename Type Size Used Priority
$ = swapon -s
$ sudo swapon -s
$ sw= apon --all --verbose
$ sudo swapon --all --verbose$




I do= not see swap is getting enabled.


T= hanks



On Tue, 2 Mar 2021 at 16:12, Shyam= Saran <sy= amsaran12345@gmail.com> wrote:
Sorry

I had forgot = to remove

dependency from /boot/efi


So it was causing this error

<= /div>
attached the file, reconfiguring the whole system
= hoping it must work



= Thanks very much for all the help :)




On Tue, 2 Mar 2021 at 16:04, Shyam Saran <syamsaran12345@gmail.com>= wrote:
As mentioned I had removed all dep= endency for root "/" fs

but result is same

$= guix =C2=A0system =C2=A0 build ~/tmp/config.scm
guix system: warning: t= he following groups appear more than once: users
guix system: error: ser= vice 'swap-/dev/mapper/guix-swap' requires 'device-mapping-guix= -swap', which is not provided by any service

Then ag= ain removed all dependencies from all fs /var /gnu /tmp etc
But th= e result is the same.

$ guix =C2=A0system =C2=A0 build ~/t= mp/config.scm
guix system: warning: the following groups appear more tha= n once: users
guix system: error: service 'swap-/dev/mapper/guix-swa= p' requires 'device-mapping-guix-swap', which is not provided b= y any service


Thanks
<= div>

On Mon, 1 Mar 2021 at 14:56, Ludovic Court=C3=A8s <ludo@gnu.org> wrote:
<= /div>
Hi Shyam,

Shyam Saran <syamsaran12345@gmail.com> skribis:

> Result of application of system build command
>
> $ guix=C2=A0 system=C2=A0 =C2=A0build ~/tmp/config.scm
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2s
> guix system: warning: the following groups appear more than once: user= s
> guix system: error: service 'swap-/dev/mapper/guix-swap' requi= res
> 'device-mapping-guix-swap', which is not provided by any servi= ce

The problem here is that you had:

=C2=A0 (file-system
=C2=A0 =C2=A0 (mount-point "/")
=C2=A0 =C2=A0 ;; =E2=80=A6
=C2=A0 =C2=A0 (needed-for-boot? #t)
=C2=A0 =C2=A0 (dependencies %localmachine-mapped-devices))

All the needed-for-boot file systems had all the mapped devices in
=E2=80=98dependencies=E2=80=99.=C2=A0 Thus, no =E2=80=98device-mapping-guix= -swap=E2=80=99 Shepherd service
was created, because that device mapping was needed at boot.

The solution is to remove the =E2=80=98dependencies=E2=80=99 field for all = your file
systems.=C2=A0 Since they have /dev/mapper/=E2=80=A6 as their =E2=80=99devi= ce=E2=80=99, you don=E2=80=99t
need =E2=80=98dependencies=E2=80=99: it=E2=80=99s automatically inferred.= =C2=A0 If, after this
change, you run:

=C2=A0 guix system shepherd-graph /tmp/config.scm| xdot -

you can see that the =E2=80=98swap-/dev/mapper/guix-swap=E2=80=99 service d= epends on
=E2=80=98device-mapping-guix-swap=E2=80=99.

HTH!

Ludo=E2=80=99.
--0000000000006d373805bcb0d5c7--