GNU bug report logs - #24129
RAID config boot hangs at [...] Clocksource: Switched to clocksource tsc

Previous Next

Package: guix;

Reported by: myglc2 <myglc2 <at> gmail.com>

Date: Tue, 2 Aug 2016 01:54:02 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: tracker <at> debbugs.gnu.org
Subject: bug#24129: closed (RAID config boot hangs at [...] Clocksource:
 Switched to clocksource tsc)
Date: Tue, 02 Aug 2016 11:56:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 02 Aug 2016 13:55:24 +0200
with message-id <87mvkvxu4z.fsf <at> gnu.org>
and subject line Re: bug#24129: RAID config boot hangs at [...] Clocksource: Switched to clocksource tsc
has caused the debbugs.gnu.org bug report #24129,
regarding RAID config boot hangs at [...] Clocksource: Switched to clocksource tsc
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
24129: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24129
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: myglc2 <myglc2 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: RAID config boot hangs at [...] Clocksource: Switched to clocksource
 tsc
Date: Mon, 01 Aug 2016 21:51:21 -0400
[Message part 3 (text/plain, inline)]
Note: I forgot that gmane is swallowing my posts to bug-guix and posted
this via gmane, so now I am resending by mail. Sorry if this duplicates!

I am attempting to set up RAID.  First, following the doc, I ended up
with system39.scm, attached, excerpt below:

(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.utf8")
  (bootloader (grub-configuration (device "/dev/sda")))
  (initrd (lambda (fs . args)
	    (apply base-initrd fs
		   #:extra-modules '("raid1")
		   #:mapped-devices '((mapped-device
				       (source (list "/dev/sdb1" "/dev/sdc1"))
				       (target "/dev/md0")
				       (type raid-device-mapping)))				      
		   args)))
  (file-systems (cons (file-system
			(device "ssd-root")
			(title 'label)
			(mount-point "/")
			(type "ext4"))
		      %base-file-systems))

In this config I was attempting to have the array assembled, but not
mounted after the boot. It did not look promissing that 'guix system
reconfigure system39.scm' did not assemble the array. Then as one might
expect, the resulting system boots but the array is not assembled.

After a couple helpful exchanges with Andreas on the devel list, I ended
up with system40.scm, attached, excerpt below:

(define md0
  (mapped-device
   (source (list "/dev/sdb1" "/dev/sdc1"))
   (target "/dev/md0")
   (type raid-device-mapping)))
(operating-system
  (host-name "g1")
  (timezone "America/New_York")
  (locale "en_US.utf8")
  (bootloader (grub-configuration (device "/dev/sda")))
  (mapped-devices (list md0))
  ;; Add a kernel module for RAID-1.
  (initrd (lambda (file-systems . rest)
            (apply base-initrd file-systems
                   #:extra-modules '("raid1")
		   rest)))
  (file-systems (cons*
		 (file-system
		   (device "ssd-root")
		   (title 'label)
		   (mount-point "/")
		   (type "ext4"))
		 (file-system
		   (title 'device)
		   (device "/dev/md0")
		   (dependencies (list md0))
		   (mount-point "/mnt/md0")
		   (create-mount-point? #t)
		   (type "ext4"))
		 %base-file-systems))


Here the intent is to have the array assembled and mounted after the
boot. It looked promissing when 'guix system reconfigure system40.scm'
assembled and mounted the array (see system40.log). But on reboot the
system hangs with the console showing:

[...] clocksource: Switched to clocksource tsc

And /var/log/sheperd.log contains:

2016-08-01 18:15:13 Service root has been started.
2016-08-01 18:15:13 ERROR: In procedure scm-error:
2016-08-01 18:15:13 ERROR: no code for module (gnu build file-systems)
2016-08-01 18:15:13 
2016-08-01 18:15:13 Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
2016-08-01 18:15:13 GNU Guile 2.0.11
2016-08-01 18:15:13 Copyright (C) 1995-2014 Free Software Foundation, Inc.
2016-08-01 18:15:13 
2016-08-01 18:15:13 Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
2016-08-01 18:15:13 This program is free software, and you are welcome to redistribute it
2016-08-01 18:15:13 under certain conditions; type `,show c' for details.
2016-08-01 18:15:13 
2016-08-01 18:15:13 Enter `,help' for help.

For this config, /var/log/messages (messages40.log) is also attached.

TIA - George

[messages40.log (application/octet-stream, attachment)]
[system40.log (application/octet-stream, attachment)]
[system40.scm (application/octet-stream, attachment)]
[system39.scm (application/octet-stream, attachment)]
[Message part 8 (message/rfc822, inline)]
From: ludo <at> gnu.org (Ludovic Courtès)
To: myglc2 <myglc2 <at> gmail.com>
Cc: 24129-done <at> debbugs.gnu.org
Subject: Re: bug#24129: RAID config boot hangs at [...] Clocksource: Switched
 to clocksource tsc
Date: Tue, 02 Aug 2016 13:55:24 +0200
myglc2 <myglc2 <at> gmail.com> skribis:

> After a couple helpful exchanges with Andreas on the devel list, I ended
> up with system40.scm, attached, excerpt below:
>
> (define md0
>   (mapped-device
>    (source (list "/dev/sdb1" "/dev/sdc1"))
>    (target "/dev/md0")
>    (type raid-device-mapping)))
> (operating-system
>   (host-name "g1")
>   (timezone "America/New_York")
>   (locale "en_US.utf8")
>   (bootloader (grub-configuration (device "/dev/sda")))
>   (mapped-devices (list md0))
>   ;; Add a kernel module for RAID-1.
>   (initrd (lambda (file-systems . rest)
>             (apply base-initrd file-systems
>                    #:extra-modules '("raid1")
> 		   rest)))
>   (file-systems (cons*
> 		 (file-system
> 		   (device "ssd-root")
> 		   (title 'label)
> 		   (mount-point "/")
> 		   (type "ext4"))
> 		 (file-system
> 		   (title 'device)
> 		   (device "/dev/md0")
> 		   (dependencies (list md0))
> 		   (mount-point "/mnt/md0")
> 		   (create-mount-point? #t)
> 		   (type "ext4"))
> 		 %base-file-systems))
>
>
> Here the intent is to have the array assembled and mounted after the
> boot. It looked promissing when 'guix system reconfigure system40.scm'
> assembled and mounted the array (see system40.log). But on reboot the
> system hangs with the console showing:
>
> [...] clocksource: Switched to clocksource tsc
>
> And /var/log/sheperd.log contains:
>
> 2016-08-01 18:15:13 Service root has been started.
> 2016-08-01 18:15:13 ERROR: In procedure scm-error:
> 2016-08-01 18:15:13 ERROR: no code for module (gnu build file-systems)

I believe this is fixed by dfe06f6e7f486eb42a2b71e9d0ae52dfe8e3bb26.

> 2016-08-01 18:15:13 Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
> 2016-08-01 18:15:13 GNU Guile 2.0.11
> 2016-08-01 18:15:13 Copyright (C) 1995-2014 Free Software Foundation, Inc.
> 2016-08-01 18:15:13 
> 2016-08-01 18:15:13 Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> 2016-08-01 18:15:13 This program is free software, and you are welcome to redistribute it
> 2016-08-01 18:15:13 under certain conditions; type `,show c' for details.
> 2016-08-01 18:15:13 
> 2016-08-01 18:15:13 Enter `,help' for help.

This is another bug that has yet to be fixed:

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23697

Thanks for your report!

Ludo’.


This bug report was last modified 8 years and 290 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.