From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id cNsqOSFkPmBJYQAA0tVLHw (envelope-from ) for ; Tue, 02 Mar 2021 16:13:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OBcDNSFkPmBDWwAA1q6Kng (envelope-from ) for ; Tue, 02 Mar 2021 16:13:21 +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 196DD2C836 for ; Tue, 2 Mar 2021 17:13:21 +0100 (CET) Received: from localhost ([::1]:37302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lH7eC-0000bo-5k for larch@yhetil.org; Tue, 02 Mar 2021 11:13:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60972) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lH7du-0000bf-4m for bug-guix@gnu.org; Tue, 02 Mar 2021 11:13:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42508) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lH7dt-0007Um-Tt for bug-guix@gnu.org; Tue, 02 Mar 2021 11:13:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lH7dt-0004fe-Pu for bug-guix@gnu.org; Tue, 02 Mar 2021 11:13:01 -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: Tue, 02 Mar 2021 16:13:01 +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.161470154917914 (code B ref 46555); Tue, 02 Mar 2021 16:13:01 +0000 Received: (at 46555) by debbugs.gnu.org; 2 Mar 2021 16:12:29 +0000 Received: from localhost ([127.0.0.1]:54054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lH7dM-0004es-R0 for submit@debbugs.gnu.org; Tue, 02 Mar 2021 11:12:29 -0500 Received: from mail-yb1-f193.google.com ([209.85.219.193]:39697) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lH7dL-0004ed-3e for 46555@debbugs.gnu.org; Tue, 02 Mar 2021 11:12:28 -0500 Received: by mail-yb1-f193.google.com with SMTP id u3so21236864ybk.6 for <46555@debbugs.gnu.org>; Tue, 02 Mar 2021 08:12:27 -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=ZANVGsugJe91WjJnLw2q3qfxidIk5CEmWV9nXjUdksY=; b=iPporYPMIXpsS8+8XeYHeRukhvQa1esw/1SUTYrMgd7cXNAevgABPtxAR2Mc4Rq0Be 5LQYA7uM1ey6+zjar9v/D+bytPmOEeU+CfI/hdeoOsn21bSl/PDdN7MlXazLM1DAGGac cEoymh7aAyQZJZpqmBJKU0tMVTgXlKq0+vz8FRQpol9nD6Z8+A3G7UUTWd3eNf4lg8/N 2vRtcI/JZdpqlsT/OJQqaY/Mdb2hzwbGdNa3Qf7toSvEOAh5b0XGzpuKBfej8mqVQtEs nxhszD47akRqpYS5wZCatnFVGb/rsM6ybrenvm22aaQM+CGSjXyY6Iz3MGPYLhHXHkRX qQvQ== 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=ZANVGsugJe91WjJnLw2q3qfxidIk5CEmWV9nXjUdksY=; b=DzdBwsMu+fnGTQE/bVxnEjGBjCPja96sTrrTtVWh+BxBy8EcrNV5aqGcizNgt5zQx1 q0WxwnCXchq/HNKFyYscfJFm+c5WKoREbW0HYq6gGjHdQfqWVvj984Nwz2VYlhjg/KkV HGexHe7kTM/7t2O2TkdjaTFeL3nQFG17ulDKlAVaWuRHpXHmNldheR8XpzPMgF8CWQ79 1Wrpug8aYB9bHA1QH4rG4QLacI5U/MoLt8pm98pnLidTDdwCg9kjEHUsy+WVt7gV469O 0z1mSeMswr3oIvqT4G21CRmuszp38pqQGICbn1zgGaFwUDjlNTTeKm4oBPPAOKiTQvJs eaHQ== X-Gm-Message-State: AOAM532X2c+NiMtJ5b7nUBX7jGWZpNo9o5Vl7r88xUQBcj/oXjkxmiaU nv9D/6JfpLuw1o9i9tzAxrVgmK4C3lcI0mzlDvlKs5zdr4k= X-Google-Smtp-Source: ABdhPJwbJjW2/dCaO+i+HlFIwgujyAwulBmbtumUY0ql98zlf4Z7jDW2pYgGXLk2s81j0a1h8C3AJyFC/tU3sUL6ClQ= X-Received: by 2002:a25:f81d:: with SMTP id u29mr32904403ybd.335.1614701541471; Tue, 02 Mar 2021 08:12:21 -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: Tue, 2 Mar 2021 21:42:09 +0530 Message-ID: Content-Type: multipart/alternative; boundary="000000000000cc3a3a05bc8fffa1" 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=1614701601; 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=ZANVGsugJe91WjJnLw2q3qfxidIk5CEmWV9nXjUdksY=; b=bKpY58MBH97qZXAw4TZpqByHmpodaIV+4LZMcrtqXdDIYChLeznC+HWU6hpz1HcVQTLDUG dcr+RKqvqQfnSTfMLLUt7dWH8FPQu9REpvENYeXINXtskMznC/Ao61KbXCarlGlIS+7JV2 qlFUfWJeHavdkbaftc5AVY8jnj/r+JcQlfudC5dV4F0t6T2dEFqBCIDBX6FxEMPiMT8su6 XE2JIQw54OzaA35UwPv9YpmCvuO9U1CzTYtsv2oNZcFuiPi3M184b3GvBShoXtqEESfDmn DpsajtNT6ow0X5dgWnUuwYOkj4hN0FxURyt7WMJ8pGiG6s/I8iKmTm6D0YmnmQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614701601; a=rsa-sha256; cv=none; b=ixX8jInw0d15/fNWFBsCNe7wS5+Np+6mm0Hs9txYzLWEU7ZDP7bEPUqq2srjj/BILmk86R XOGiuaHRW/3yEtkdQLPWdvbdOrTVZLZPk1J/vKFBcmYqZrONxAs7wMAOmFuooizB18E1+5 bGE9BYs1/NUhrNJko7YJNuLJZc1Hua4qpENJQlZSbQr0KYSEdD+xp14M5OY6i7/Dch4ms1 FVDOWG7/SjMrWUI2WMgaAy+CEzFDyTGRYP+qW9ouYX9ZRgSX+70HvqCCHNYNqlFTf2mXg+ sRq8apTgS7SzI/WrAAk8K+E7AG1naZqsP3UmKQv17fgmpNxuekzKLOxg2Y7+kg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=iPporYPM; 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=iPporYPM; 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: 196DD2C836 X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: jh5XavqP2UZs --000000000000cc3a3a05bc8fffa1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi after reconfigure building /gnu/store/qnskr1r67lp92bgy136hqvm7r96s3qrd-upgrade-shepherd-services.scm.d= rv... 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 will 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: use= rs >>> > 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=99devic= e=E2=80=99, you don=E2=80=99t >>> need =E2=80=98dependencies=E2=80=99: it=E2=80=99s automatically inferre= d. 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 servi= ce depends on >>> =E2=80=98device-mapping-guix-swap=E2=80=99. >>> >>> HTH! >>> >>> Ludo=E2=80=99. >>> >> --000000000000cc3a3a05bc8fffa1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

afte= r reconfigure

building /gnu/store/qnskr1r67lp92bgy136hqvm= 7r96s3qrd-upgrade-shepherd-services.scm.drv...
guix system: warning: exc= eption caught while executing 'start' on service 'swap-/dev/map= per/guix-swap':
In procedure swapon: "/dev/mapper/guix-swap&quo= t;: Invalid argument
guix system: warning: some services could not be up= graded
hint: To allow changes to all the system services to take effect,= you will need to reboot.

after 2 reboots also

$ cat /p= roc/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
$ swapon --all --verbose
$ su= do swapon --all --verbose
$




I do not see swap is getting enabled.

Thanks


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

I = had forgot to remove

dependency from /boot/ef= i


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 <syamsaran12345@gmail= .com> wrote:
As mentioned I had rem= oved all dependency for root "/" fs

but result is sa= me

$ guix =C2=A0system =C2=A0 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

<= /div>Then again removed all dependencies from all fs /var /gnu /tmp etc
=
But the result is the same.

$ guix =C2=A0system =C2= =A0 build ~/tmp/config.scm
guix system: warning: the following groups ap= pear more than once: users
guix system: error: service 'swap-/dev/ma= pper/guix-swap' requires 'device-mapping-guix-swap', which is n= ot provided by any service


Than= ks


On Mon, 1 Mar 2021 at 14:56, Ludovic Court=C3=A8s= <ludo@gnu.org>= wrote:
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.
--000000000000cc3a3a05bc8fffa1--