GNU bug report logs -
#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
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46555 in the body.
You can then email your comments to 46555 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#46555
; Package
guix
.
(Tue, 16 Feb 2021 10:13:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Shyam Saran <syamsaran12345 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Tue, 16 Feb 2021 10:13:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
LVM/Device Mapper swap continuously fails for os configuration
with
guix system: error: service 'swap-/dev/mapper/guix-swap' requires
'device-mapping-guix-swap', which is not provided by any service
which originates from code
(define swap-service-type
(shepherd-service-type
'swap
(lambda (device)
(define requirement
(if (and (string? device)
(string-prefix? "/dev/mapper/" device))
(list (symbol-append 'device-mapping-
(string->symbol (basename device))))
'()))
at
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/base.scm#n2171
Thanks
/shyam
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46555
; Package
guix
.
(Mon, 22 Feb 2021 09:21:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 46555 <at> debbugs.gnu.org (full text, mbox):
Hi Shyam,
Shyam Saran <syamsaran12345 <at> gmail.com> skribis:
> LVM/Device Mapper swap continuously fails for os configuration
>
>
> with
>
> guix system: error: service 'swap-/dev/mapper/guix-swap' requires
> 'device-mapping-guix-swap', which is not provided by any service
>
>
>
> which originates from code
>
>
>
> (define swap-service-type
> (shepherd-service-type
> 'swap
> (lambda (device)
> (define requirement
> (if (and (string? device)
> (string-prefix? "/dev/mapper/" device))
> (list (symbol-append 'device-mapping-
> (string->symbol (basename device))))
> '()))
You could need to define an LVM “device mapping” that provides
/dev/mapper/guix-swap:
https://guix.gnu.org/manual/devel/en/html_node/Mapped-Devices.html#index-lvm_002ddevice_002dmapping
If you did already, could you send your complete config so we can have a
look?
Thanks,
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46555
; Package
guix
.
(Tue, 23 Feb 2021 15:25:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 46555 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks for response, I am attaching config.scm
If required then will try to make this file cleaner.
On Mon, 22 Feb 2021 at 14:50, Ludovic Courtès <ludo <at> gnu.org> wrote:
> Hi Shyam,
>
> Shyam Saran <syamsaran12345 <at> gmail.com> skribis:
>
> > LVM/Device Mapper swap continuously fails for os configuration
> >
> >
> > with
> >
> > guix system: error: service 'swap-/dev/mapper/guix-swap' requires
> > 'device-mapping-guix-swap', which is not provided by any service
> >
> >
> >
> > which originates from code
> >
> >
> >
> > (define swap-service-type
> > (shepherd-service-type
> > 'swap
> > (lambda (device)
> > (define requirement
> > (if (and (string? device)
> > (string-prefix? "/dev/mapper/" device))
> > (list (symbol-append 'device-mapping-
> > (string->symbol (basename device))))
> > '()))
>
> You could need to define an LVM “device mapping” that provides
> /dev/mapper/guix-swap:
>
>
> https://guix.gnu.org/manual/devel/en/html_node/Mapped-Devices.html#index-lvm_002ddevice_002dmapping
>
> If you did already, could you send your complete config so we can have a
> look?
>
> Thanks,
> Ludo’.
>
/shyam
[Message part 2 (text/html, inline)]
[config.scm (text/x-scheme, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46555
; Package
guix
.
(Thu, 25 Feb 2021 13:20:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 46555 <at> debbugs.gnu.org (full text, mbox):
Hi,
Shyam Saran <syamsaran12345 <at> gmail.com> skribis:
> Thanks for response, I am attaching config.scm
I get:
--8<---------------cut here---------------start------------->8---
$ guix system build /tmp/config.scm
guix system: error: fiasko dum ŝargo de '/tmp/config.scm':
/tmp/config.scm:277:58: In procedure append: Wrong type argument in position 1 (expecting empty list): #<<file-system> device: "/dev/mapper/house-home" mount-point: "/home" type: "ext4" flags: () options: #f mount?: #t mount-may-fail?: #f needed-for-boot?: #f check?: #f create-mount-point?: #t dependencies: (#<<mapped-device> source: "/dev/sda31" targets: ("guix-root") type: #<<mapped-device-type> open: #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure close-non-udev-lvm-device (sources targets)> check: #<procedure 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 133) (column . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source: "/dev/sda31" targets: ("guix-boot") type: #<<mapped-device-type> open: #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure close-non-udev-lvm-device (sources targets)> check: #<procedure 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 137) (column . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source: "/dev/sda31" targets: ("guix-gnu") type: #<<mapped-device-type> open: #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure close-non-udev-lvm-device (sources targets)> check: #<procedure 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 141) (column . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source: "/dev/sda31" targets: ("guix-var") type: #<<mapped-device-type> open: #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure close-non-udev-lvm-device (sources targets)> check: #<procedure 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 153) (column . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source: "/dev/sda31" targets: ("guix-swap") type: #<<mapped-device-type> open: #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure close-non-udev-lvm-device (sources targets)> check: #<procedure 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 145) (column . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source: "/dev/sda31" targets: ("guix-tmp") type: #<<mapped-device-type> open: #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure close-non-udev-lvm-device (sources targets)> check: #<procedure 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 149) (column . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source: "/dev/test" targets: ("house-home") type: #<<mapped-device-type> open: #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure close-non-udev-lvm-device (sources targets)> check: #<procedure 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 157) (column . 52) (filename . "/tmp/config.scm"))>) location: ((line . 233) (column . 50) (filename . "/tmp/config.scm"))>
--8<---------------cut here---------------end--------------->8---
Could you make sure the file passes ‘guix system build’?
TIA,
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46555
; Package
guix
.
(Fri, 26 Feb 2021 08:09:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 46555 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
To be sure everything are correct
I had created lvm volume group guix and house
and their subvolume root, boot, var, gnu, swap, tmp (in guix) and home (in
house)
Result is the same, whether these volume groups were present or not.
Thanks
On Thu, 25 Feb 2021 at 18:49, Ludovic Courtès <ludo <at> gnu.org> wrote:
> Hi,
>
> Shyam Saran <syamsaran12345 <at> gmail.com> skribis:
>
> > Thanks for response, I am attaching config.scm
>
> I get:
>
> --8<---------------cut here---------------start------------->8---
> $ guix system build /tmp/config.scm
> guix system: error: fiasko dum ŝargo de '/tmp/config.scm':
> /tmp/config.scm:277:58: In procedure append: Wrong type argument in
> position 1 (expecting empty list): #<<file-system> device:
> "/dev/mapper/house-home" mount-point: "/home" type: "ext4" flags: ()
> options: #f mount?: #t mount-may-fail?: #f needed-for-boot?: #f check?: #f
> create-mount-point?: #t dependencies: (#<<mapped-device> source:
> "/dev/sda31" targets: ("guix-root") type: #<<mapped-device-type> open:
> #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure
> close-non-udev-lvm-device (sources targets)> check: #<procedure
> 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 133) (column
> . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source:
> "/dev/sda31" targets: ("guix-boot") type: #<<mapped-device-type> open:
> #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure
> close-non-udev-lvm-device (sources targets)> check: #<procedure
> 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 137) (column
> . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source:
> "/dev/sda31" targets: ("guix-gnu") type: #<<mapped-device-type> open:
> #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure
> close-non-udev-lvm-device (sources targets)> check: #<procedure
> 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 141) (column
> . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source:
> "/dev/sda31" targets: ("guix-var") type: #<<mapped-device-type> open:
> #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure
> close-non-udev-lvm-device (sources targets)> check: #<procedure
> 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 153) (column
> . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source:
> "/dev/sda31" targets: ("guix-swap") type: #<<mapped-device-type> open:
> #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure
> close-non-udev-lvm-device (sources targets)> check: #<procedure
> 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 145) (column
> . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source:
> "/dev/sda31" targets: ("guix-tmp") type: #<<mapped-device-type> open:
> #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure
> close-non-udev-lvm-device (sources targets)> check: #<procedure
> 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 149) (column
> . 52) (filename . "/tmp/config.scm"))> #<<mapped-device> source:
> "/dev/test" targets: ("house-home") type: #<<mapped-device-type> open:
> #<procedure open-non-udev-lvm-device (source targets)> close: #<procedure
> close-non-udev-lvm-device (sources targets)> check: #<procedure
> 7f839682c5e0 at ice-9/boot-9.scm:803:2 _>> location: ((line . 157) (column
> . 52) (filename . "/tmp/config.scm"))>) location: ((line . 233) (column .
> 50) (filename . "/tmp/config.scm"))>
> --8<---------------cut here---------------end--------------->8---
>
> Could you make sure the file passes ‘guix system build’?
>
> TIA,
> Ludo’.
>
[Message part 2 (text/html, inline)]
[config.scm (text/x-scheme, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46555
; Package
guix
.
(Mon, 01 Mar 2021 09:27:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 46555 <at> debbugs.gnu.org (full text, mbox):
Hi Shyam,
Shyam Saran <syamsaran12345 <at> gmail.com> 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 "/")
;; …
(needed-for-boot? #t)
(dependencies %localmachine-mapped-devices))
All the needed-for-boot file systems had all the mapped devices in
‘dependencies’. Thus, no ‘device-mapping-guix-swap’ Shepherd service
was created, because that device mapping was needed at boot.
The solution is to remove the ‘dependencies’ field for all your file
systems. Since they have /dev/mapper/… as their ’device’, you don’t
need ‘dependencies’: it’s automatically inferred. If, after this
change, you run:
guix system shepherd-graph /tmp/config.scm| xdot -
you can see that the ‘swap-/dev/mapper/guix-swap’ service depends on
‘device-mapping-guix-swap’.
HTH!
Ludo’.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46555
; Package
guix
.
(Tue, 02 Mar 2021 10:36:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 46555 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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ès <ludo <at> gnu.org> wrote:
> Hi Shyam,
>
> Shyam Saran <syamsaran12345 <at> gmail.com> 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 "/")
> ;; …
> (needed-for-boot? #t)
> (dependencies %localmachine-mapped-devices))
>
> All the needed-for-boot file systems had all the mapped devices in
> ‘dependencies’. Thus, no ‘device-mapping-guix-swap’ Shepherd service
> was created, because that device mapping was needed at boot.
>
> The solution is to remove the ‘dependencies’ field for all your file
> systems. Since they have /dev/mapper/… as their ’device’, you don’t
> need ‘dependencies’: it’s automatically inferred. If, after this
> change, you run:
>
> guix system shepherd-graph /tmp/config.scm| xdot -
>
> you can see that the ‘swap-/dev/mapper/guix-swap’ service depends on
> ‘device-mapping-guix-swap’.
>
> HTH!
>
> Ludo’.
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46555
; Package
guix
.
(Tue, 02 Mar 2021 10:43:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 46555 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <syamsaran12345 <at> gmail.com> 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ès <ludo <at> gnu.org> wrote:
>
>> Hi Shyam,
>>
>> Shyam Saran <syamsaran12345 <at> gmail.com> 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 "/")
>> ;; …
>> (needed-for-boot? #t)
>> (dependencies %localmachine-mapped-devices))
>>
>> All the needed-for-boot file systems had all the mapped devices in
>> ‘dependencies’. Thus, no ‘device-mapping-guix-swap’ Shepherd service
>> was created, because that device mapping was needed at boot.
>>
>> The solution is to remove the ‘dependencies’ field for all your file
>> systems. Since they have /dev/mapper/… as their ’device’, you don’t
>> need ‘dependencies’: it’s automatically inferred. If, after this
>> change, you run:
>>
>> guix system shepherd-graph /tmp/config.scm| xdot -
>>
>> you can see that the ‘swap-/dev/mapper/guix-swap’ service depends on
>> ‘device-mapping-guix-swap’.
>>
>> HTH!
>>
>> Ludo’.
>>
>
[Message part 2 (text/html, inline)]
[config.scm (text/x-scheme, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46555
; Package
guix
.
(Tue, 02 Mar 2021 16:13:01 GMT)
Full text and
rfc822 format available.
Message #29 received at 46555 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 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 <syamsaran12345 <at> gmail.com> 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 <syamsaran12345 <at> gmail.com> 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ès <ludo <at> gnu.org> wrote:
>>
>>> Hi Shyam,
>>>
>>> Shyam Saran <syamsaran12345 <at> gmail.com> 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 "/")
>>> ;; …
>>> (needed-for-boot? #t)
>>> (dependencies %localmachine-mapped-devices))
>>>
>>> All the needed-for-boot file systems had all the mapped devices in
>>> ‘dependencies’. Thus, no ‘device-mapping-guix-swap’ Shepherd service
>>> was created, because that device mapping was needed at boot.
>>>
>>> The solution is to remove the ‘dependencies’ field for all your file
>>> systems. Since they have /dev/mapper/… as their ’device’, you don’t
>>> need ‘dependencies’: it’s automatically inferred. If, after this
>>> change, you run:
>>>
>>> guix system shepherd-graph /tmp/config.scm| xdot -
>>>
>>> you can see that the ‘swap-/dev/mapper/guix-swap’ service depends on
>>> ‘device-mapping-guix-swap’.
>>>
>>> HTH!
>>>
>>> Ludo’.
>>>
>>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#46555
; Package
guix
.
(Thu, 04 Mar 2021 07:23:02 GMT)
Full text and
rfc822 format available.
Message #32 received at 46555 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <syamsaran12345 <at> gmail.com> 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 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 <syamsaran12345 <at> gmail.com> 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 <syamsaran12345 <at> gmail.com>
>> 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ès <ludo <at> gnu.org> wrote:
>>>
>>>> Hi Shyam,
>>>>
>>>> Shyam Saran <syamsaran12345 <at> gmail.com> 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 "/")
>>>> ;; …
>>>> (needed-for-boot? #t)
>>>> (dependencies %localmachine-mapped-devices))
>>>>
>>>> All the needed-for-boot file systems had all the mapped devices in
>>>> ‘dependencies’. Thus, no ‘device-mapping-guix-swap’ Shepherd service
>>>> was created, because that device mapping was needed at boot.
>>>>
>>>> The solution is to remove the ‘dependencies’ field for all your file
>>>> systems. Since they have /dev/mapper/… as their ’device’, you don’t
>>>> need ‘dependencies’: it’s automatically inferred. If, after this
>>>> change, you run:
>>>>
>>>> guix system shepherd-graph /tmp/config.scm| xdot -
>>>>
>>>> you can see that the ‘swap-/dev/mapper/guix-swap’ service depends on
>>>> ‘device-mapping-guix-swap’.
>>>>
>>>> HTH!
>>>>
>>>> Ludo’.
>>>>
>>>
[Message part 2 (text/html, inline)]
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Mon, 08 Mar 2021 13:29:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Shyam Saran <syamsaran12345 <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 08 Mar 2021 13:29:02 GMT)
Full text and
rfc822 format available.
Message #37 received at 46555-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Shyam Saran <syamsaran12345 <at> gmail.com> skribis:
> Sorry again, it is excellently working
Great, thanks for checking!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 06 Apr 2021 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 14 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.