Re: dumpdev question (probably stupid)

2007-10-26 Thread Chris H.

Quoting "Andrey V. Elsukov" <[EMAIL PROTECTED]>:


Chris H. wrote:

OK then. If I understand you correctly, I simply need to create:
/var/crash (the default)


Yes. Also you need a swap size > ram size.


swap slice is already 3 times greater than memory. So I'm confident
there's enough space.




add the following to /etc/rc.conf:
dumpdev="AUTO"
dumpdir="/var/crash"

bounce the server and ensure that /etc/rc.d/dumpon is started
immediately after the boot process has completed.
Correct?


if you don't want reboot your machine after changing rc.conf
you can run `/etc/rc.d/dumpon start`. It will mark your swap as
a dumpdev. At the boot time /etc/rc.d/dumpon will be started
automatically (if "dumpdev" is set).
After system crash the kernel memory dump will be saved to the dempdev
and after reboot dump will be extracted from the swap into dumpdir
by the savecore.



Yes, That occurred to me immediately after replying to you -
dumpdev="AUTO" already ensures that. :)


Thanks again for all your time and trouble.

--Chris


--
WBR, Andrey V. Elsukov





--
panic: kernel trap (ignored)



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


Re: dumpdev question (probably stupid)

2007-10-26 Thread Andrey V. Elsukov

Chris H. wrote:

OK then. If I understand you correctly, I simply need to create:
/var/crash (the default)


Yes. Also you need a swap size > ram size.


add the following to /etc/rc.conf:
dumpdev="AUTO"
dumpdir="/var/crash"

bounce the server and ensure that /etc/rc.d/dumpon is started
immediately after the boot process has completed.
Correct?


if you don't want reboot your machine after changing rc.conf
you can run `/etc/rc.d/dumpon start`. It will mark your swap as
a dumpdev. At the boot time /etc/rc.d/dumpon will be started
automatically (if "dumpdev" is set).
After system crash the kernel memory dump will be saved to the dempdev
and after reboot dump will be extracted from the swap into dumpdir
by the savecore.

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


Re: dumpdev question (probably stupid)

2007-10-26 Thread Chris H.

Quoting "Chris H." <[EMAIL PROTECTED]>:


Quoting "Andrey V. Elsukov" <[EMAIL PROTECTED]>:


Chris H. wrote:

Given that the server that I need to create a dumpdev on has has a
slice dedicated to /var with *more* than adequate space to accommodate
the the resources needed for a dumpdev, as well as everything else in
/var. Is it enough to simply:

# mkdir /var/crash
# chmod 700 /var/crash

and set *dumpdev* in */etc/fstab* as such?:


No. For the dumpdev in most cases you can use your swap.
Also you will need a dumpdir - directory where crash will be saved by
the savecore(8).
Try this:
# cat >> /etc/rc.conf
dumpdev="AUTO"
dumpdir="/var/crash"
^D
# /etc/rc.d/dumpon start



WOW! Thank you Andrey, for the prompt and informative reply!
It's just like me sometimes, to make things more difficult than
they're intended. :-P

OK then. If I understand you correctly, I simply need to create:
/var/crash (the default)

then correctly set perms:
chmod 700 /var/crash

add the following to /etc/rc.conf:
dumpdev="AUTO"
dumpdir="/var/crash"

bounce the server and ensure that /etc/rc.d/dumpon is started
immediately after the boot process has completed.
Correct?


OOPS! /etc/rc.d/dumpon is moot, given that dumpdev="AUTO" is already
set in /etc/rc.conf.

Sorry, I should have waited 30 seconds longer before replying.

Thanks again.

--Chris



Thanks again!

--Chris


--
panic: kernel trap (ignored)



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



--
panic: kernel trap (ignored)



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


Re: dumpdev question (probably stupid)

2007-10-26 Thread Chris H.

Quoting "Andrey V. Elsukov" <[EMAIL PROTECTED]>:


Chris H. wrote:

Given that the server that I need to create a dumpdev on has has a
slice dedicated to /var with *more* than adequate space to accommodate
the the resources needed for a dumpdev, as well as everything else in
/var. Is it enough to simply:

# mkdir /var/crash
# chmod 700 /var/crash

and set *dumpdev* in */etc/fstab* as such?:


No. For the dumpdev in most cases you can use your swap.
Also you will need a dumpdir - directory where crash will be saved by
the savecore(8).
Try this:
# cat >> /etc/rc.conf
dumpdev="AUTO"
dumpdir="/var/crash"
^D
# /etc/rc.d/dumpon start



WOW! Thank you Andrey, for the prompt and informative reply!
It's just like me sometimes, to make things more difficult than
they're intended. :-P

OK then. If I understand you correctly, I simply need to create:
/var/crash (the default)

then correctly set perms:
chmod 700 /var/crash

add the following to /etc/rc.conf:
dumpdev="AUTO"
dumpdir="/var/crash"

bounce the server and ensure that /etc/rc.d/dumpon is started
immediately after the boot process has completed.
Correct?

Thanks again!

--Chris


--
panic: kernel trap (ignored)



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


Re: dumpdev question (probably stupid)

2007-10-26 Thread Andrey V. Elsukov

Chris H. wrote:

Given that the server that I need to create a dumpdev on has has a
slice dedicated to /var with *more* than adequate space to accommodate
the the resources needed for a dumpdev, as well as everything else in
/var. Is it enough to simply:

# mkdir /var/crash
# chmod 700 /var/crash

and set *dumpdev* in */etc/fstab* as such?:


No. For the dumpdev in most cases you can use your swap.
Also you will need a dumpdir - directory where crash will be saved by
the savecore(8).
Try this:
# cat >> /etc/rc.conf
dumpdev="AUTO"
dumpdir="/var/crash"
^D
# /etc/rc.d/dumpon start

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


dumpdev question (probably stupid)

2007-10-26 Thread Chris H.

Greetings,
Given that the server that I need to create a dumpdev on has has a
slice dedicated to /var with *more* than adequate space to accommodate
the the resources needed for a dumpdev, as well as everything else in
/var. Is it enough to simply:

# mkdir /var/crash
# chmod 700 /var/crash

and set *dumpdev* in */etc/fstab* as such?:

# Device  MountpointFStype   OptionsDump  Pass#
/dev/ad0s1b   none  swap sw 0 0
/dev/ad0s1a   / ufs  rw 1 1
/dev/ad0s1d   /var  ufs  rw 2 2
# dumpdev
/dev/ad0s1d   /var/crashufs  sw 0 0
#cdrom
/dev/acd0 /cdromcd9660   ro,noauto  0 0

then bounce the system and *assume* I have a /suitable/ and /useable/
dumpdev available?

Sorry if I have made any ridiculous assumptions, and thank you for your
time.

--Chris

--
panic: kernel trap (ignored)



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