GNU bug report logs - #24130
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 08:18:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 24130 in the body.
You can then email your comments to 24130 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#24130; Package guix. (Tue, 02 Aug 2016 08:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to myglc2 <myglc2 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 02 Aug 2016 08:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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:43:17 -0400
[Message part 1 (text/plain, inline)]
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)]

Information forwarded to bug-guix <at> gnu.org:
bug#24130; Package guix. (Wed, 09 Nov 2016 20:46:02 GMT) Full text and rfc822 format available.

Message #8 received at 24130 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: myglc2 <myglc2 <at> gmail.com>
Cc: 24130 <at> debbugs.gnu.org
Subject: Re: bug#24130: RAID config boot hangs at [...] Clocksource: Switched
 to clocksource tsc
Date: Wed, 09 Nov 2016 21:45:19 +0100
Hi myglc2,

myglc2 <myglc2 <at> gmail.com> skribis:

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

Sorry for the looong delay.  In addition to the doc, there’s no a system
test in (gnu tests install) (search for “raid-root-os”) that installs
GuixSD with a RAID root file system, and this has allowed us to fix a
couple of bugs in this area.

Could you try again, following the doc and/or the test, and see how it
goes?

TIA,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#24130; Package guix. (Wed, 11 Jan 2017 22:15:02 GMT) Full text and rfc822 format available.

Message #11 received at 24130 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: myglc2 <myglc2 <at> gmail.com>
Cc: 24130 <at> debbugs.gnu.org
Subject: Re: bug#24130: RAID config boot hangs at [...] Clocksource: Switched
 to clocksource tsc
Date: Wed, 11 Jan 2017 23:14:08 +0100
Hi!

Could you tell me if this bug is still relevant?

  https://bugs.gnu.org/24130

Ludo’.

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

> Hi myglc2,
>
> myglc2 <myglc2 <at> gmail.com> skribis:
>
>> I am attempting to set up RAID.  First, following the doc, I ended up
>> with system39.scm, attached, excerpt below:
>
> Sorry for the looong delay.  In addition to the doc, there’s no a system
> test in (gnu tests install) (search for “raid-root-os”) that installs
> GuixSD with a RAID root file system, and this has allowed us to fix a
> couple of bugs in this area.
>
> Could you try again, following the doc and/or the test, and see how it
> goes?
>
> TIA,
> Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#24130; Package guix. (Fri, 13 Jan 2017 04:28:02 GMT) Full text and rfc822 format available.

Message #14 received at 24130 <at> debbugs.gnu.org (full text, mbox):

From: myglc2 <myglc2 <at> gmail.com>
To: ludo <at> gnu.org (Ludovic Courtès)
Cc: 24130 <at> debbugs.gnu.org
Subject: Re: bug#24130: RAID config boot hangs at [...] Clocksource: Switched
 to clocksource tsc
Date: Thu, 12 Jan 2017 23:34:15 -0500
On 01/11/2017 at 23:14 Ludovic Courtès writes:

> Could you tell me if this bug is still relevant?

Hi Ludo’,

Sorry for the delay, I had to swap hardware around to revisit this.  I
am now able to assemble 3 arrays as shown below, so I think you should
close the bug.

config:

(define md0
  (mapped-device
   (source (list "/dev/sdb1" "/dev/sdc1"))
   (target "/dev/md0")
   (type raid-device-mapping)))
(define md1
  (mapped-device
   (source (list "/dev/sdb5" "/dev/sdc5"))
   (target "/dev/md1")
   (type raid-device-mapping)))
(define md2
  (mapped-device
   (source (list "/dev/sdb6" "/dev/sdc6"))
   (target "/dev/md2")
   (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 md1 md2))
 ;; 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")
		 )
		(file-system
		 (title 'device)
		 (device "/dev/md2")
		 (dependencies (list md2))
		 (mount-point "/mnt/md2")		   
		 (create-mount-point? #t)
		 (type "ext4")
		 )
		%base-file-systems))


guix version:

guix (GNU Guix) 0.12.0
v0.12.0-456-gb0a567640




Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Fri, 13 Jan 2017 08:05:02 GMT) Full text and rfc822 format available.

Notification sent to myglc2 <myglc2 <at> gmail.com>:
bug acknowledged by developer. (Fri, 13 Jan 2017 08:05:02 GMT) Full text and rfc822 format available.

Message #19 received at 24130-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: myglc2 <myglc2 <at> gmail.com>
Cc: 24130-done <at> debbugs.gnu.org
Subject: Re: bug#24130: RAID config boot hangs at [...] Clocksource: Switched
 to clocksource tsc
Date: Fri, 13 Jan 2017 09:04:11 +0100
myglc2 <myglc2 <at> gmail.com> skribis:

> On 01/11/2017 at 23:14 Ludovic Courtès writes:
>
>> Could you tell me if this bug is still relevant?
>
> Hi Ludo’,
>
> Sorry for the delay, I had to swap hardware around to revisit this.  I
> am now able to assemble 3 arrays as shown below, so I think you should
> close the bug.

Excellent, thanks for reporting back!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 10 Feb 2017 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 70 days ago.

Previous Next


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