From owner-freebsd-current@FreeBSD.ORG Mon Dec 24 19:42:40 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D54416A418 for ; Mon, 24 Dec 2007 19:42:40 +0000 (UTC) (envelope-from info@martenvijn.nl) Received: from lists.martenvijn.nl (vijn.xs4all.nl [194.109.254.102]) by mx1.freebsd.org (Postfix) with ESMTP id 905B413C442 for ; Mon, 24 Dec 2007 19:42:39 +0000 (UTC) (envelope-from info@martenvijn.nl) Received: from [192.168.1.6] (workstation.martenvijn.nl [192.168.1.6]) by lists.martenvijn.nl (Postfix) with ESMTP id 4EF825C60 for ; Mon, 24 Dec 2007 20:27:44 +0100 (CET) From: Marten Vijn To: freebsd-current@freebsd.org Content-Type: text/plain Date: Mon, 24 Dec 2007 20:27:17 +0100 Message-Id: <1198524437.5370.38.camel@workstation.martenvijn.nl> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: sysctl and rsync question X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Dec 2007 19:42:40 -0000 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@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@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 real memory = 2147221504 (2047 MB) avail memory = 2091679744 (1994 MB) ACPI APIC Table: ioapic0: Changing APIC ID to 2 ioapic0 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: 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: on acpi0 p4tcc0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: mem 0xf2000000-0xf3ffffff,0xfe9fc000-0xfe9fffff,0xfe000000-0xfe7fffff irq 16 at device 0.0 on pci1 pcib2: at device 30.0 on pci0 pci2: on pcib2 fxp0: port 0xde80-0xdebf mem 0xfeafe000-0xfeafefff irq 20 at device 8.0 on pci2 miibus0: on fxp0 inphy0: PHY 1 on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:03:47:9f:1e:f3 fxp0: [ITHREAD] atapci0: 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: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0 ata0: on atapci1 ata0: [ITHREAD] ata1: on atapci1 ata1: [ITHREAD] uhci0: port 0xef40-0xef5f irq 19 at device 31.2 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered pci0: at device 31.3 (no driver attached) uhci1: port 0xef80-0xef9f irq 23 at device 31.4 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered pci0: at device 31.5 (no driver attached) atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 fdc0: 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: at iomem 0xc0000-0xc87ff,0xc8800-0xc97ff,0xcd000-0xcdfff pnpid ORM0000 on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: 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: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 umass0: on uhub0 Timecounter "TSC" frequency 1694858072 Hz quality 800 Timecounters tick every 1.000 msec hptrr: no controller detected. ad0: 76319MB at ata0-master UDMA100 ad3: 194481MB at ata1-slave UDMA100 ad4: 238475MB at ata2-master SATA150 ad8: 238475MB at ata4-master UDMA100 da0 at umass-sim0 bus 0 target 0 lun 0 da0: 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