linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6.22-rc4] kexec failed: invalid argument
@ 2007-06-14 18:09 S.Çağlar Onur
  2007-06-14 23:49 ` Eric W. Biederman
  0 siblings, 1 reply; 4+ messages in thread
From: S.Çağlar Onur @ 2007-06-14 18:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: ebiederm, horms

[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]

Hi;

With current Linus's git tree + current kexec-tools-testing [1] (also with 
kexec-tools-1.101) tree "kexec -e" call on reboot failed with following;

kexec failed: invalid argument

kexec document says its users responsibility to close running softwares, 
mounting disks in read only mode etc. and it suggest calling "kexec -e" just 
before the "reboot" call and talks about future merge with sysvinit's reboot 
and kexec, and when i did it, it will not starts new kernel and instead gaves 
that error.

But more supringuisly if i try to execute "kexec -e" directly (in init3 with 
rw disks and lots of running software) it will starts new kernel without a 
problem. 

For reference im using following kexec line for loading the kernel
kexec -l /boot/kernel-2.6.22-rc4-CFS-v16 --append="root=/dev/sda3" --initrd=/boot/initramfs-2.6.22-rc4-CFS-v16

I'm not sure this is a regression or my(maybe me or kexec document misses some 
point) mistake cause this is my first attempt to use kexec, but i want to 
report the situation :)

 [1] 
http://git.kernel.org/?p=linux/kernel/git/horms/kexec-tools-testing.git;a=summary

Cheers
-- 
S.Çağlar Onur <caglar@pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [2.6.22-rc4] kexec failed: invalid argument
  2007-06-14 18:09 [2.6.22-rc4] kexec failed: invalid argument S.Çağlar Onur
@ 2007-06-14 23:49 ` Eric W. Biederman
  2007-06-15  8:50   ` S.Çağlar Onur
  0 siblings, 1 reply; 4+ messages in thread
From: Eric W. Biederman @ 2007-06-14 23:49 UTC (permalink / raw)
  To: caglar; +Cc: linux-kernel, horms

"S.Çağlar Onur" <caglar@pardus.org.tr> writes:

> Hi;
>
> With current Linus's git tree + current kexec-tools-testing [1] (also with 
> kexec-tools-1.101) tree "kexec -e" call on reboot failed with following;
>
> kexec failed: invalid argument
>
> kexec document says its users responsibility to close running softwares, 
> mounting disks in read only mode etc. and it suggest calling "kexec -e" just 
> before the "reboot" call and talks about future merge with sysvinit's reboot 
> and kexec, and when i did it, it will not starts new kernel and instead gaves 
> that error.
>
> But more supringuisly if i try to execute "kexec -e" directly (in init3 with 
> rw disks and lots of running software) it will starts new kernel without a 
> problem. 
>
> For reference im using following kexec line for loading the kernel
> kexec -l /boot/kernel-2.6.22-rc4-CFS-v16 --append="root=/dev/sda3"
> --initrd=/boot/initramfs-2.6.22-rc4-CFS-v16
>
> I'm not sure this is a regression or my(maybe me or kexec document misses some 
> point) mistake cause this is my first attempt to use kexec, but i want to 
> report the situation :)
>
>  [1] 
> http://git.kernel.org/?p=linux/kernel/git/horms/kexec-tools-testing.git;a=summary

Sight unseen I'm guessing that you have a kexec aware distro that is doing
something in the runlevel change scripts and thus unloading the kernel.
What do: /sys/kernel/kexec_loaded and /sys/kernel/kexec_crash_loaded say?

kexec -e at any point should start a loaded kernel without problems, but it is
a lot like pressing the reset button.  Nothing is guaranteed to be shutdown
cleanly.  Now that journalling filesystems are the norm it is quite possible
nothing bad will happen to you.




Eric

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [2.6.22-rc4] kexec failed: invalid argument
  2007-06-14 23:49 ` Eric W. Biederman
@ 2007-06-15  8:50   ` S.Çağlar Onur
  2007-06-15 13:10     ` S.Çağlar Onur
  0 siblings, 1 reply; 4+ messages in thread
From: S.Çağlar Onur @ 2007-06-15  8:50 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: linux-kernel, horms

[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]

15 Haz 2007 Cum tarihinde, Eric W. Biederman şunları yazmıştı: 
> Sight unseen I'm guessing that you have a kexec aware distro that is doing
> something in the runlevel change scripts and thus unloading the kernel.
> What do: /sys/kernel/kexec_loaded and /sys/kernel/kexec_crash_loaded say?

Not sure, here is the pseudo output what our init system does;

- Stop running services
- Save random seed, sync clock
- Unmount mounted fs's (this includes proc/sysfs etc.)
- Call kexec -e
- Call reboot
 
> kexec -e at any point should start a loaded kernel without problems, but it
> is a lot like pressing the reset button.  Nothing is guaranteed to be
> shutdown cleanly.  Now that journalling filesystems are the norm it is
> quite possible nothing bad will happen to you.

zangetsu ~ # 
kexec -l /boot/kernel-2.6.22-rc4-CFS-v16 --append="root=/dev/sda3" --initrd=/boot/initramfs-2.6.22-rc4-CFS-v16
setup_linux_vesafb: 1024x768x16 @ c0000000 +300000
zangetsu ~ # cat /sys/kernel/kexec_loaded
1
zangetsu ~ # cat /sys/kernel/kexec_crash_loaded
0

Cheers
-- 
S.Çağlar Onur <caglar@pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [2.6.22-rc4] kexec failed: invalid argument
  2007-06-15  8:50   ` S.Çağlar Onur
@ 2007-06-15 13:10     ` S.Çağlar Onur
  0 siblings, 0 replies; 4+ messages in thread
From: S.Çağlar Onur @ 2007-06-15 13:10 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: linux-kernel, horms

[-- Attachment #1: Type: text/plain, Size: 911 bytes --]

15 Haz 2007 Cum tarihinde, S.Çağlar Onur şunları yazmıştı: 
> 15 Haz 2007 Cum tarihinde, Eric W. Biederman şunları yazmıştı:
> > Sight unseen I'm guessing that you have a kexec aware distro that is
> > doing something in the runlevel change scripts and thus unloading the
> > kernel. What do: /sys/kernel/kexec_loaded and
> > /sys/kernel/kexec_crash_loaded say?
>
> Not sure, here is the pseudo output what our init system does;
>
> - Stop running services
> - Save random seed, sync clock
> - Unmount mounted fs's (this includes proc/sysfs etc.)
> - Call kexec -e
> - Call reboot

Heh, i found a problem in our init system and after solving that issue kexec 
starts to works fine :), thanks for the tip!

Cheers
-- 
S.Çağlar Onur <caglar@pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-15 13:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-14 18:09 [2.6.22-rc4] kexec failed: invalid argument S.Çağlar Onur
2007-06-14 23:49 ` Eric W. Biederman
2007-06-15  8:50   ` S.Çağlar Onur
2007-06-15 13:10     ` S.Çağlar Onur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).