Re: 6.3 reboot -d doesn't work

2008-09-18 Thread Stephen Clark

Jeremy Chadwick wrote:

On Wed, Sep 17, 2008 at 01:03:46PM -0400, Ed Maste wrote:

On Wed, Sep 17, 2008 at 09:25:37AM -0700, Jeremy Chadwick wrote:


On Wed, Sep 17, 2008 at 07:36:46AM -0400, Stephen Clark wrote:

I am trying to get a crash dump but am unable to with FreeBSD 6.3-RELEASE-p2

[...]
reboot -d
...
dumping 255M 2 chunks


Then nothing - the system doesn't reboot and I have to hard reset it.
When it comes back up there is no crash file in /var/crash
[...]

It's a known problem.  If when the machine reboots, you forcefully enter
single-user, you should be able to get the kernel dump using savecore.

http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/118255

Your PR doesn't look like Stephen's problem to me, since according to
his description the system hangs when trying to do the dump so there
won't be anything on the disk for savecore to save.


You're right, thanks Ed.  His when it comes back up there is no crash
file is what threw me for a loop.

Stephen, does the problem *only* happen when using the -d flag, or does
the system lock up on reboot in general?

If the latter, try using one or both of the following sysctls:

hw.acpi.handle_reboot=1
hw.acpi.disable_on_reboot=1

If the lesser, I've no idea.

The problem only happens when I do the reboot -d. If I do reboot it comes back 
ok. I have tried it on two different platforms 1) a Biostar TForce 6100 
mainboard with an AMD dual core processor 2) a Soekris net5501

with the same results. I get the dumping message and then it hangs and I have to
hard reset the box.

Thanks,
Steve

--

They that give up essential liberty to obtain temporary safety,
deserve neither liberty nor safety.  (Ben Franklin)

The course of history shows that as a government grows, liberty
decreases.  (Thomas Jefferson)


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


6.3 reboot -d doesn't work

2008-09-17 Thread Stephen Clark

Hello List,

I am trying to get a crash dump but am unable to with FreeBSD 6.3-RELEASE-p2

/etc/defaults/rc.conf
dumpdir=/var/crash# Directory where crash dumps are to be stored
savecore_flags=   # Used if dumpdev is enabled above, and present.

Z2873# sysctl -a |grep physmem
hw.physmem: 259481600
Swap: 1024M Total, 1024M Free
Z2873# dumpon -v /dev/ad0s1b
kernel dumps on /dev/ad0s1b

reboot -d
...
dumping 255M 2 chunks


Then nothing - the system doesn't reboot and I have to hard reset it.
When it comes back up there is no crash file in /var/crash

from /var/log/messages:
Sep 17 07:28:12 Z2873 kernel: ad0: 28615MB IBM DJSA-230 JS6OAB0A at 
ata0-master UDMA66

Sep 17 07:28:12 Z2873 kernel: Trying to mount root from ufs:/dev/ad0s1a
Sep 17 07:28:12 Z2873 savecore: no dumps found


Is this broken?

Thanks,
Steve
--

They that give up essential liberty to obtain temporary safety,
deserve neither liberty nor safety.  (Ben Franklin)

The course of history shows that as a government grows, liberty
decreases.  (Thomas Jefferson)


___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 6.3 reboot -d doesn't work

2008-09-17 Thread Jeremy Chadwick
On Wed, Sep 17, 2008 at 07:36:46AM -0400, Stephen Clark wrote:
 I am trying to get a crash dump but am unable to with FreeBSD 6.3-RELEASE-p2

 /etc/defaults/rc.conf
 dumpdir=/var/crash# Directory where crash dumps are to be stored
 savecore_flags=   # Used if dumpdev is enabled above, and present.

 Z2873# sysctl -a |grep physmem
 hw.physmem: 259481600
 Swap: 1024M Total, 1024M Free
 Z2873# dumpon -v /dev/ad0s1b
 kernel dumps on /dev/ad0s1b

 reboot -d
 ...
 dumping 255M 2 chunks


 Then nothing - the system doesn't reboot and I have to hard reset it.
 When it comes back up there is no crash file in /var/crash

 from /var/log/messages:
 Sep 17 07:28:12 Z2873 kernel: ad0: 28615MB IBM DJSA-230 JS6OAB0A at  
 ata0-master UDMA66
 Sep 17 07:28:12 Z2873 kernel: Trying to mount root from ufs:/dev/ad0s1a
 Sep 17 07:28:12 Z2873 savecore: no dumps found

 Is this broken?

It's a known problem.  If when the machine reboots, you forcefully enter
single-user, you should be able to get the kernel dump using savecore.

http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/118255

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 6.3 reboot -d doesn't work

2008-09-17 Thread Ed Maste
On Wed, Sep 17, 2008 at 09:25:37AM -0700, Jeremy Chadwick wrote:

 On Wed, Sep 17, 2008 at 07:36:46AM -0400, Stephen Clark wrote:
  I am trying to get a crash dump but am unable to with FreeBSD 6.3-RELEASE-p2
 
  [...]
  reboot -d
  ...
  dumping 255M 2 chunks
 
 
  Then nothing - the system doesn't reboot and I have to hard reset it.
  When it comes back up there is no crash file in /var/crash
  [...]

 It's a known problem.  If when the machine reboots, you forcefully enter
 single-user, you should be able to get the kernel dump using savecore.
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/118255

Your PR doesn't look like Stephen's problem to me, since according to
his description the system hangs when trying to do the dump so there
won't be anything on the disk for savecore to save.

- Ed
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 6.3 reboot -d doesn't work

2008-09-17 Thread Jeremy Chadwick
On Wed, Sep 17, 2008 at 01:03:46PM -0400, Ed Maste wrote:
 On Wed, Sep 17, 2008 at 09:25:37AM -0700, Jeremy Chadwick wrote:
 
  On Wed, Sep 17, 2008 at 07:36:46AM -0400, Stephen Clark wrote:
   I am trying to get a crash dump but am unable to with FreeBSD 
   6.3-RELEASE-p2
  
   [...]
   reboot -d
   ...
   dumping 255M 2 chunks
  
  
   Then nothing - the system doesn't reboot and I have to hard reset it.
   When it comes back up there is no crash file in /var/crash
   [...]
 
  It's a known problem.  If when the machine reboots, you forcefully enter
  single-user, you should be able to get the kernel dump using savecore.
  
  http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/118255
 
 Your PR doesn't look like Stephen's problem to me, since according to
 his description the system hangs when trying to do the dump so there
 won't be anything on the disk for savecore to save.

You're right, thanks Ed.  His when it comes back up there is no crash
file is what threw me for a loop.

Stephen, does the problem *only* happen when using the -d flag, or does
the system lock up on reboot in general?

If the latter, try using one or both of the following sysctls:

hw.acpi.handle_reboot=1
hw.acpi.disable_on_reboot=1

If the lesser, I've no idea.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]