Re: FreeBSD Kernel Panic during backup to USB external drive.

From: Hans Petter Selasky <hselasky_at_c2i.net>
Date: Sun, 5 Jul 2009 23:30:06 +0200
On Sunday 05 July 2009 20:18:24 Robert Jameson wrote:
> Hello everyone, recently i've been experience kernel panics whenever
> attempting to run my backup to my usb external drive.
> Here is the information i have, whatever else is needed please reply, thank
> you.

Hi,

This issue doesn't look directly related to USB. I'm forwarding it to the 
freebsd-current e-mail list! Thanks for testing FreeBSD 8-current.

--HPS

>
>
> (02:11 PM):(root_at_cube)/var/crash$ kgdb /boot/kernel/kernel
> /var/crash/vmcore.1
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-marcel-freebsd"...
>
> Unread portion of the kernel message buffer:
> panic: ffs_clusteralloc: map mismatch
> cpuid = 1
> Uptime: 4d10h42m10s
> Physical memory: 2546 MB
> Dumping 249 MB: 234 218 202 186 170 154 138 122 106 90 74 58 42 26 10
>
> Reading symbols from /boot/kernel/acpi.ko...Reading symbols from
> /boot/kernel/acpi.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/acpi.ko
> Reading symbols from /boot/kernel/pflog.ko...Reading symbols from
> /boot/kernel/pflog.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/pflog.ko
> Reading symbols from /boot/kernel/pf.ko...Reading symbols from
> /boot/kernel/pf.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/pf.ko
> Reading symbols from /boot/kernel/linux.ko...Reading symbols from
> /boot/kernel/linux.ko.symbols...done.
> done.
> Loaded symbols for /boot/kernel/linux.ko
> #0  doadump () at pcpu.h:196
> 196     pcpu.h: No such file or directory.
>         in pcpu.h
> (kgdb) quit
>
>
> my backup script:
>
> #!/usr/local/bin/bash -x
> #
> # creates backups of essential files
> #
> DATA="/usr/home /root"
> CONFIG="/etc /usr/local/etc /var/lib /etc/namedb"
> LIST="/tmp/backlist_$$.txt"
> #
> mount /backup
> set $(date)
> #
> if test "$1" = "Sun" ; then
>         # weekly a full backup of all data and config. settings:
>         #
>         tar cfz "/backup/data/data_full_$6-$2-$3.tgz" $DATA
>         rm -f /backup/data/data_diff*
>         #
>         tar cfz "/backup/config/config_full_$6-$2-$3.tgz" $CONFIG
>         rm -f /backup/config/config_diff*
> else
>         # incremental backup:
>         #
>         find $DATA -depth -type f \( -ctime -1 -o -mtime -1 \) -print >
> $LIST
>         tar cfzT "/backup/data/data_diff_$6-$2-$3.tgz" "$LIST"
>         rm -f "$LIST"
>         #
>         find $CONFIG -depth -type f  \( -ctime -1 -o -mtime -1 \) -print >
> $LIST
>         tar cfzT "/backup/config/config_diff_$6-$2-$3.tgz" "$LIST"
>         rm -f "$LIST"
> fi
> #
> # create sql dump of databases:
> mysqldump -u root --password=XXXXXXXXX --opt information_schema >
> "/backup/database/information_schema_$6-$2-$3.sql"
> gzip "/backup/database/information_schema_$6-$2-$3.sql"
> mysqldump -u root --password=XXXXXXXXX --opt denora >
> "/backup/database/denora_$6-$2-$3.sql"
> gzip "/backup/database/denora_$6-$2-$3.sql"
> mysqldump -u root --password=XXXXXXXXX --opt evilnet >
> "/backup/database/evilnet_$6-$2-$3.sql"
> gzip "/backup/database/evilnet_$6-$2-$3.sql"
> mysqldump -u root --password=XXXXXXXXX --opt mysql >
> "/backup/database/mysql_$6-$2-$3.sql"
> gzip "/backup/database/mysql_$6-$2-$3.sql"
> mysqldump -u root --password=XXXXXXXXX --opt quotes_db  >
> "/backup/database/quotes_db_$6-$2-$3.sql"
> gzip "/backup/database/quotes_db_$6-$2-$3.sql"
>
> #
> umount /backup
>
>
> fstab:
>
> # Device                Mountpoint      FStype  Options         Dump
>  Pass#
> /dev/ad0s1b             none            swap    sw              0       0
> /dev/ad0s1a             /               ufs     rw              1       1
> /dev/ad1s1d             /usr/home       ufs     rw              1       1
> /dev/acd0               /cdrom          cd9660  ro,noauto       0       0
> /dev/da0s1d             /backup         ufs     rw,noauto       1       1
Received on Sun Jul 05 2009 - 19:30:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:51 UTC