From owner-freebsd-questions@FreeBSD.ORG Mon Oct 17 21:00:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FA6D16A488 for ; Mon, 17 Oct 2005 21:00:35 +0000 (GMT) (envelope-from henric@henric.info) Received: from n1b.bulk.scd.yahoo.com (n1b.bulk.scd.yahoo.com [209.73.160.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 0BDF443D6E for ; Mon, 17 Oct 2005 21:00:23 +0000 (GMT) (envelope-from henric@henric.info) Received: from [66.218.66.59] by n23.bulk.scd.yahoo.com with NNFMP; 17 Oct 2005 21:00:23 -0000 Date: 17 Oct 2005 14:00:23 -0700 X-yahoo-newman-property: wss X-yahoo-newman-id: null Received: from [66.218.85.37] by mailer8.bulk.scd.yahoo.com with SMTP; 17 Oct 2005 21:00:17 -0000 Received: from milter5.wss.scd.yahoo.com (66.218.85.20) by mta6.wss.scd.yahoo.com (7.0.042) id 42FD9668019F9C1B for freebsd-questions@freebsd.org; Mon, 17 Oct 2005 13:53:13 -0700 Received: from c-24-6-130-243.hsd1.ca.comcast.net (c-67-164-6-16.hsd1.ca.comcast.net [67.164.6.16]) (authenticated bits=0) by milter5.wss.scd.yahoo.com (8.13.1/8.13.1) with ESMTP id j9HKp9Qj023987 for ; Mon, 17 Oct 2005 13:52:08 -0700 (PDT) Received: by c-24-6-130-243.hsd1.ca.comcast.net (Postfix, from userid 1001) id C1A2B33C3D; Mon, 17 Oct 2005 13:51:08 -0700 (PDT) Date: Mon, 17 Oct 2005 13:51:08 -0700 From: Henric Jungheim To: freebsd-questions@freebsd.org Message-ID: <20051017205108.GA3472@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Spam-Track: 0: 100 ; SERVER=66.218.86.246 X-Originating-IP: [67.164.6.16] Subject: Multi-tape backup with "dump" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 21:00:35 -0000 I've been backing up a filesystem with dump -0auL -b 60 -C 32 -f /dev/sa0 /share on an amd64 box to a 100G LTO drive (dmesg below). It works fine (*) as long as the filesystem fits on one tape. However, dump wedges when I put in a new tape. When I check with "top", typically two "dump" processes chew up as much cpu as they can, sometimes only one and sometimes all three. DUMP: 59.07% done, finished in 1:16 at Mon Oct 17 13:32:53 2005 DUMP: End of tape detected DUMP: Closing /dev/sa0 DUMP: Change Volumes: Mount volume #2 DUMP: Is the new volume mounted and ready to go?: ("yes" or "no") yes DUMP: Volume 2 begins with blocks from inode 10477547 It will sit like that indefinitely. The tape doesn't move (I can't hear it and mt says the same thing). "mt -f /dev/sa0.ctl status" at this point: Mode Density Blocksize bpi Compression Current: 0x40 variable 0 0x1 ---------available modes--------- 0: 0x40 variable 0 0x1 1: 0x40 variable 0 0x1 2: 0x40 variable 0 0x1 3: 0x40 variable 0 0x1 --------------------------------- Current Driver State: at rest. --------------------------------- File Number: 0 Record Number: 1 Residual Count 0 If I do a "ctrl-c", dump stops chewing up the cpu and politely asks me if I want to abort the dump. Is there some trick to doing multi-tape backups? It doesn't seem to matter if I use the button on the tape drive or "mt offline" to swap out the tape (I should hope it doesn't matter). I've tried generic kernels built locally, GENERIC from snapshots, and (for the particular dmesg below) a custom kernel. No difference... Given that it takes a few hours to fill a tape, mucking with this is a bit tedious. The most interesting thing I've found is that setting the tape size explicitly *does* work (although I've only tried forcing small tape sizes). The system I have now is from a make buildworld/make buildkernel from yesterday, but I've never had a multi-tape backup work (going back many months of tracking -current). Until now, it has always been faster to clean up some files and do the backup again rather than reading through things carefully to see what I've been doing wrong. Until now, anwyay, and I'm not finding anything in the docs. Anybody have any ideas? I hope I'm just missing something stupid somewhere...? Thanks. (*) Yes, restore also works... -- henric@comcast.net Copyright (c) 1992-2005 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 7.0-CURRENT #14: Sun Oct 16 22:33:52 PDT 2005 root@sark.int.henric.info:/usr/obj/usr/src/sys/SARK Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Opteron(tm) Processor 250 (2393.20-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0xf5a Stepping = 10 Features=0x78bfbff AMD Features=0xe0500800 usable memory = 2139582464 (2040 MB) avail memory = 2065784832 (1970 MB) ACPI APIC Table: MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-27 on motherboard ioapic2 irqs 28-31 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) pci_link0: irq 10 on acpi0 pci_link1: irq 11 on acpi0 pci_link2: irq 15 on acpi0 pci_link3: irq 9 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 powernow0: on cpu0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 6.0 on pci0 pci3: on pcib1 pci3: at device 0.0 (no driver attached) pci3: at device 0.1 (no driver attached) drm0: port 0xb800-0xb8ff mem 0xfd000000-0xfdffffff,0xfeaff000-0xfeafffff irq 17 at device 4.0 on pci3 info: [drm] Initialized mach64 1.0.0 20020904 on minor 0 puc0: port 0xbc00-0xbc1f,0xb400-0xb407,0xb000-0xb007 irq 17 at device 6.0 on pci3 sio2: on puc0 sio2: type 16550A sio2: unable to activate interrupt in fast mode - using normal mode sio3: on puc0 sio3: type 16550A sio3: unable to activate interrupt in fast mode - using normal mode isab0: at device 7.0 on pci0 isa0: on isab0 pci0: at device 7.2 (no driver attached) pci0: at device 7.3 (no driver attached) pcib2: at device 10.0 on pci0 pci2: on pcib2 ahd0: port 0x9800-0x98ff,0x9400-0x94ff mem 0xfc9de000-0xfc9dffff irq 24 at device 3.0 on pci2 ahd0: [GIANT-LOCKED] aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs ahd1: port 0x9000-0x90ff,0x9c00-0x9cff mem 0xfc9dc000-0xfc9ddfff irq 25 at device 3.1 on pci2 ahd1: [GIANT-LOCKED] aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI-X 67-100Mhz, 512 SCBs bge0: mem 0xfc9f0000-0xfc9fffff irq 26 at device 5.0 on pci2 miibus0: on bge0 brgphy0: on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge0: Ethernet address: 00:30:48:75:5c:7a bge1: mem 0xfc9e0000-0xfc9effff irq 27 at device 5.1 on pci2 miibus1: on bge1 brgphy1: on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge1: Ethernet address: 00:30:48:75:5c:7b pci0: at device 10.1 (no driver attached) pcib3: at device 11.0 on pci0 pci1: on pcib3 amr0: mem 0xff4f0000-0xff4fffff irq 28 at device 1.0 on pci1 amr0: Firmware 713N, BIOS G119, 64MB RAM pci0: at device 11.1 (no driver attached) acpi_button0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 orm0: at iomem 0xc0000-0xc7fff,0xca800-0xcbfff,0xcc000-0xcd7ff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2393195250 Hz quality 800 Timecounters tick every 1.000 msec Waiting 2 seconds for SCSI devices to settle amrd0: on amr0 amrd0: 715410MB (1465159680 sectors) RAID 5 (optimal) sa0 at ahd0 bus 0 target 2 lun 0 sa0: Removable Sequential Access SCSI-3 device sa0: 80.000MB/s transfers (40.000MHz, offset 15, 16bit) sa1 at ahd1 bus 0 target 3 lun 0 sa1: Removable Sequential Access SCSI-2 device sa1: 5.000MB/s transfers (5.000MHz, offset 8) Trying to mount root from ufs:/dev/amrd0s1a bge1: link state changed to DOWN bge0: link state changed to UP