100c7 Autoreboot - no Dump Device & Autofsck - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old July 25th, 2010, 10:22
thavinci thavinci is offline
Junior Member
 
Join Date: Feb 2009
Location: JHB
Posts: 78
Thanks: 3
Thanked 0 Times in 0 Posts
Default Autoreboot - no Dump Device & Autofsck

Hi.

Because of zfs i find servers crashing on a regular basis, however the biggest issue is that they never come back online tilll i manually push reset next day and fsck the damaged partitions.

On a kernel panic it sits at the reboot in 15sec screen and never does.
There is a complain about

Code:
Cannot dump. Device not defined or unavailable
now my sysctl.conf has
Code:
kern.coredump=0
kern.corefile=/dev/null
Specified and im wondering it thats what's preventing reboot.

Also as mentioned on reboot the server will exit to single user mode and expect me to run fsck manually.

Is there now way it can just go
Code:
fsck -y "filesystem
itself?
Reply With Quote
  #2  
Old July 25th, 2010, 15:55
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,523
Thanks: 422
Thanked 607 Times in 475 Posts
Default

remove
Code:
kern.corefile=/dev/null
from /etc/sysctl.conf

so you say, that you use zfs.... and that you need to run fsck manyally?
Zfs deosn't need fsck... in fact, there is no fsck for zfs

tell us about your partition layout
and show output of $ mount
Reply With Quote
  #3  
Old July 25th, 2010, 17:45
thavinci thavinci is offline
Junior Member
 
Join Date: Feb 2009
Location: JHB
Posts: 78
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I had no
Code:
kern.corefile=/dev/null
specified and same result.

Reason for fsck is because all boot drives are still ufs i wouldn't want more issues by making it zfs too:

Code:
 mount                                                        Press ? for help
/dev/ad4s1a on / (ufs, local, noatime)
devfs on /dev (devfs, local, multilabel)
TwoTB1 on /mnt/2tb1 (zfs, local, noatime)
TwoTB2 on /mnt/2tb2 (zfs, local, noatime)
tank/Nico on /mnt/Nico (zfs, local, noatime)
tank/Sam on /mnt/Sam (zfs, local, noatime)
tank/lptdrv on /mnt/lptdrv (zfs, local, noatime)
tank on /mnt/tank (zfs, local, noatime)
tank/Backups on /mnt/tank/Backups (zfs, NFS exported, local, noatime)
tank/Docs on /mnt/tank/Docs (zfs, local, noatime)
devfs on /var/named/dev (devfs, local, multilabel)
/mnt/tank/Storage/Series on /mnt/ftp/Series (nullfs, local)
/mnt/tank/Storage/Mp3's on /mnt/ftp/Mp3s (nullfs, local)
/mnt/2tb2/Movies on /mnt/ftp/Movies (nullfs, local)
Reply With Quote
  #4  
Old July 25th, 2010, 18:55
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,835
Thanks: 30
Thanked 1,888 Times in 1,333 Posts
Default

$ grep fsck /etc/defaults/rc.conf should give you an idea.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #5  
Old July 26th, 2010, 07:46
thavinci thavinci is offline
Junior Member
 
Join Date: Feb 2009
Location: JHB
Posts: 78
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Much appreciated i went with:

Code:
fsck_y_enable="YES"
background_fsck="NO"
Solves one issue. The server crashed again last night and this seems to have done trick with the fsck part. Now too get it to autoreboot on panic. :>
Reply With Quote
  #6  
Old July 26th, 2010, 08:23
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 703 Times in 579 Posts
Default

Code:
$ sysctl -ad |grep dump
kern.coredump: Enable/Disable coredumps
Set kern.coredump="0" in /etc/sysctl.conf to disable kernel dumps on panic.

From /usr/src/sys/conf/NOTES:
Code:
# Set the amount of time (in seconds) the system will wait before
# rebooting automatically when a kernel panic occurs.  If set to (-1),
# the system will wait indefinitely until a key is pressed on the
# console.
options         PANIC_REBOOT_WAIT_TIME=16
Which should already be set, but you can try setting it to 5 or something low like that (it's in seconds).

You'll need to recompile the kernel, obviously.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #7  
Old July 26th, 2010, 08:50
thavinci thavinci is offline
Junior Member
 
Join Date: Feb 2009
Location: JHB
Posts: 78
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thing is that i already have
Code:
kern.coredump=0
kern.corefile=/dev/null
specified so it shoulnd't be trying to dump or so says my logic.

Yet it still tries too and what's worse i don't know if it's because of the
Code:
Cannot dump. Device not defined or unavailable
message that it simply gets stuck at
Code:
Autoimatic reboot in 15 seconds - press a key on the console to abort
Or something else, as i cannot press a key either.

Looks like so:



Uploaded with ImageShack.us

Last edited by thavinci; July 26th, 2010 at 08:57.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crash dump prob. - sleeping thread owns a non-sleepable lock during crash dump write Terry_Kennedy General 2 May 14th, 2010 00:28
[Solved] Why won't Freebsd make a device entry for my USB device? osx-addict Peripheral Hardware 8 March 12th, 2010 02:30
Samba core dump when running testparm & [sn]mbd with default config RuiDC Web & Network Services 0 December 21st, 2009 23:40
Cannot dump. No dump device defined mbr661 General 1 June 21st, 2009 18:41
libc.so.6 && FMOD && FreeBSD Sa3r Userland Programming & Scripting 6 February 5th, 2009 11:54


All times are GMT +1. The time now is 19:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0