sysctl and rsync question

From: Marten Vijn <info_at_martenvijn.nl>
Date: Mon, 24 Dec 2007 20:27:17 +0100
Hi all, have two questions:

In sort:

1. Which sysctl's can/should I change to prevent my backupserver (7.0
BETA4) from rebooting by using rsync ?

2. What tools are there to find out what causes the reboot? 

I did not find any messages in /var/log/*, dmesg, vmstat and top  (dmesg
below).

I assume that it runs out ouf buffers.

Description: 

During a backup with rsync the backupserver (FreeBSD) reboots.
Here I speak of homedirs wich have totaly ~200Gb. However I sync per
homedir. Each homedirs has a quota from 500Mb to 8Gb. The storage server
is (still) running linux. 

The backmachine has 680 Gb storage based on 3 (s)ata disk in raidz pool.

The reboot mostly happens when accesing a maildirs of a users. On large
files this problem occurs less often. The reboot is not at the same
place /time while making the backup, but always after some (3-15
minutes) time.

This is my a part of my backup script (on the storage machine):
  
LIST=`ls /export/home`

for DIR in $LIST
        do
        echo $DIR
         rsync -togplarv   \
                /export/home/${DIR} \
                root_at_backup_server:/data/export/home/
done 

Some testing show that ZFS is not likely to cause this.


test.sh (on the backupmachine):
#!/bin/sh
mkdir -p test
C=0
(
        cd test || exit 
        while [ 1 ]
        do 
                C=$(($C+1))
                echo $C > file.${C}
                echo $C          
        done
)

will run fine up to > 120000 in a directory in zfs. I stopped testing
after this.

However rsyncing this test directory to my workstation  will reboot the
backup machine after a couple of minutes.

I more details are nessecairy please let me know (dmesg below).

kind regards,
Marten


%dmesg
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights
reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-BETA4 #0: Wed Dec 19 15:43:30 CET 2007
    root_at_mi:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 1700MHz (1694.86-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf0a  Stepping = 10

Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory  = 2147221504 (2047 MB)
avail memory = 2091679744 (1994 MB)
ACPI APIC Table: <D850GB GB85010A>
ioapic0: Changing APIC ID to 2
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Dec 19 2007 15:35:53)
acpi0: <D850GB G285010A> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 7ff00000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82850 host to AGP bridge> on hostb0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem
0xf2000000-0xf3ffffff,0xfe9fc000-0xfe9fffff,0xfe000000-0xfe7fffff irq 16
at device 0.0 on pci1
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
fxp0: <Intel 82801BA/CAM (ICH2/3) Pro/100 Ethernet> port 0xde80-0xdebf
mem 0xfeafe000-0xfeafefff irq 20 at device 8.0 on pci2
miibus0: <MII bus> on fxp0
inphy0: <i82562EM 10/100 media interface> PHY 1 on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:03:47:9f:1e:f3
fxp0: [ITHREAD]
atapci0: <Promise PDC20375 SATA150 controller> port
0xdf00-0xdf3f,0xdfa0-0xdfaf,0xdc00-0xdc7f mem
0xfeaff000-0xfeafffff,0xfeac0000-0xfeadffff irq 21 at device 13.0 on
pci2
atapci0: [ITHREAD]
atapci0: [ITHREAD]
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
ata4: <ATA channel 2> on atapci0
ata4: [ITHREAD]
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci1: <Intel ICH2 UDMA100 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0
ata0: <ATA channel 0> on atapci1
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci1
ata1: [ITHREAD]
uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port
0xef40-0xef5f irq 19 at device 31.2 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
uhci1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> port
0xef80-0xef9f irq 23 at device 31.4 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
pci0: <multimedia, audio> at device 31.5 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <floppy drive controller> port
0x3f0-0x3f1,0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
acpi0
sio0: type 16550A
sio0: [FILTER]
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem
0xc0000-0xc87ff,0xc8800-0xc97ff,0xcd000-0xcdfff pnpid ORM0000 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
umass0: <LaCie SA LaCie Hard Drive USB, class 0/0, rev 2.00/0.00, addr
2> on uhub0
Timecounter "TSC" frequency 1694858072 Hz quality 800
Timecounters tick every 1.000 msec
hptrr: no controller detected.
ad0: 76319MB <WDC WD800JB-00JJC0 05.01C05> at ata0-master UDMA100
ad3: 194481MB <Maxtor 6L200P0 BAH41E00> at ata1-slave UDMA100
ad4: 238475MB <WDC WD2500KS-00MJB0 02.01C03> at ata2-master SATA150
ad8: 238475MB <WDC WD2500JB-00GVA0 08.02D08> at ata4-master UDMA100
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <SAMSUNG HD500LJ > Fixed Direct Access SCSI-2 device 
da0: 1.000MB/s transfers
da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
Trying to mount root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
WARNING: ZFS is considered to be an experimental feature in FreeBSD.
ZFS filesystem version 6
ZFS storage pool version 6
Received on Mon Dec 24 2007 - 18:42:40 UTC

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