Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2009 23:30:06 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org, freebsd-current@freebsd.org
Cc:        Robert Jameson <rj@dawnshosting.com>
Subject:   Re: FreeBSD Kernel Panic during backup to USB external drive.
Message-ID:  <200907052330.07792.hselasky@c2i.net>
In-Reply-To: <9072a4470907051118o6c14e19cs670981a500fc6375@mail.gmail.com>
References:  <9072a4470907051118o6c14e19cs670981a500fc6375@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907052330.07792.hselasky>