Re: gmirror / crash dumps
Anton Shterenlikht wrote: 4) I have the following in my 7-stable kernel The long and the short of it is I don't get any dumps. I read somewhere that you can't dump onto a gmirror device. That is incorrect, but I don't know the cause of your problem. I run nothing but gmirror and dumps happen here. I was also told that you won't get a valid dump if your dumpdev is on a GEOM_MIRROR device On 7.x, you have a 'legal' way to run gmirror -v prefer before savecore is run. In -current, the corresponding rc file (alas, I forgot its name) is removed. I tried adding gmirror -v prefer /dev/mirror0 to savecore rc.d file, but to no such luck. The problem here is the order of startup for the drives inside the mirror; the first drive in the array that started during the boot when the panic occurred has to be the preferred device during savecore - and when this condition is met, you will get a valid dump. i.e. let's assume that the system boots like GEOM_MIRROR: Device gm0: provider ada0 detected. GEOM_MIRROR: Device gm0: provider ada0 activated. GEOM_MIRROR: Device gm0: provider ada1 detected. GEOM_MIRROR: Device gm0: provider ada1 activated. GEOM_MIRROR: Device gm0: provider mirror/mirror0 launched. This makes us think that ada0 is the first drive to launch. Therefore, it's the drive where the dump will be saved during a panic. So we add gmirror configure -v prefer /dev/mirror/mirror0 /dev/ada0 (correct my syntax if I'm wrong here; tried it a month ago) to /etc/rc.d/savecore right before the savecore call. We do stuff, configure, build kernels, rebuild 'em, etc, reboot, and the system comes up GEOM_MIRROR: Device gm0: provider ada1 detected. GEOM_MIRROR: Device gm0: provider ada1 activated. GEOM_MIRROR: Device gm0: provider ada0 detected. GEOM_MIRROR: Device gm0: provider ada0 activated. GEOM_MIRROR: Device gm0: provider mirror/mirror0 launched. without us noticing. And that's it; if it panics now, savecore won't save the crash dump because ada0 doesn't have it. -- Kamigishi Rei KREI-RIPE ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: gmirror / crash dumps
On Thu, Jul 30, 2009 at 11:23 PM, Philip M. Gollucci pgollu...@p6m7g8.comwrote: Hi, Say I've got the following: /dev/mirror/gm0s1bnoneswapsw /dev/mirror/gm0s1a989M390M520M43%/ /dev/mirror/gm0s1g 15G1.7G 12G13%/usr /dev/mirror/gm0s1h544G1.8M501G 0%/usr/home /dev/mirror/gm0s1d1.9G500M1.3G27%/usr/src /dev/mirror/gm0s1e1.9G1.1G733M60%/usr/obj /dev/mirror/gm0s1f 97G2.0K 89G 0%/var Well I'm trying to get my kernel panics to cause dumps 1) /etc/rc.conf dumpdev=AUTO crashinfo_enable=YES 2) sudo chmod 700 /var/crash 3) 8GB RAM, 16GB of swap, /var/crash is 16GB 97GB 4) I have the following in my 7-stable kernel makeoptions DEBUG=-g options AUDIT options KTRACE options KDB options KDB_TRACE options DDB options GDB options BREAK_TO_DEBUGGER options INVARIANTS options INVARIANT_SUPPORT options WITNESS options DEBUG_LOCKS options DEBUG_VFS_LOCKS options LOCK_PROFILING options DIAGNOSTIC The long and the short of it is I don't get any dumps. I read somewhere that you can't dump onto a gmirror device. That is incorrect, but I don't know the cause of your problem. I run nothing but gmirror and dumps happen here. So I've moved /var off of /dev/mirror/gm0s1f 97G2.0K 89G 0%/var and I can now do what I want with this. How do I go about re-jiggering this (2-disk gmirror) so I can use 1 slice from one of them as my dumpon(8) device? TIA ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: gmirror / crash dumps
On Fri, Jul 31, 2009 at 12:46:32AM -0500, Adam Vande More wrote: On Thu, Jul 30, 2009 at 11:23 PM, Philip M. Gollucci pgollu...@p6m7g8.comwrote: Hi, Say I've got the following: /dev/mirror/gm0s1bnoneswapsw /dev/mirror/gm0s1a989M390M520M43%/ /dev/mirror/gm0s1g 15G1.7G 12G13%/usr /dev/mirror/gm0s1h544G1.8M501G 0%/usr/home /dev/mirror/gm0s1d1.9G500M1.3G27%/usr/src /dev/mirror/gm0s1e1.9G1.1G733M60%/usr/obj /dev/mirror/gm0s1f 97G2.0K 89G 0%/var Well I'm trying to get my kernel panics to cause dumps 1) /etc/rc.conf dumpdev=AUTO crashinfo_enable=YES 2) sudo chmod 700 /var/crash 3) 8GB RAM, 16GB of swap, /var/crash is 16GB 97GB 4) I have the following in my 7-stable kernel makeoptions DEBUG=-g options AUDIT options KTRACE options KDB options KDB_TRACE options DDB options GDB options BREAK_TO_DEBUGGER options INVARIANTS options INVARIANT_SUPPORT options WITNESS options DEBUG_LOCKS options DEBUG_VFS_LOCKS options LOCK_PROFILING options DIAGNOSTIC The long and the short of it is I don't get any dumps. I read somewhere that you can't dump onto a gmirror device. That is incorrect, but I don't know the cause of your problem. I run nothing but gmirror and dumps happen here. I was also told that you won't get a valid dump if your dumpdev is on a GEOM_MIRROR device http://lists.freebsd.org/pipermail/freebsd-ia64/2009-July/002205.html -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org