Multi-tape backup with "dump"

Henric Jungheim henric at comcast.net
Mon Oct 17 14:00:35 PDT 2005


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 at 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 at 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  AMD Features=0xe0500800<SYSCALL,NX,MMX+,LM,3DNow+,3DNow>
usable memory  = 2139582464 (2040 MB)
avail memory = 2065784832 (1970 MB)
ACPI APIC Table: <A M I  OEMAPIC >
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-23 on motherboard
ioapic1 <Version 1.1> irqs 24-27 on motherboard
ioapic2 <Version 1.1> irqs 28-31 on motherboard
acpi0: <A M I OEMXSDT> on motherboard
acpi0: Power Button (fixed)
pci_link0: <ACPI PCI Link LNKA> irq 10 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 11 on acpi0
pci_link2: <ACPI PCI Link LNKC> irq 15 on acpi0
pci_link3: <ACPI PCI Link LNKD> 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: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
powernow0: <Cool`n'Quiet K8> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci3: <ACPI PCI bus> on pcib1
pci3: <serial bus, USB> at device 0.0 (no driver attached)
pci3: <serial bus, USB> at device 0.1 (no driver attached)
drm0: <Rage XL> 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: <Dolphin Peripherals 4036> port 0xbc00-0xbc1f,0xb400-0xb407,0xb000-0xb007 irq 17 at device 6.0 on pci3
sio2: <Dolphin Peripherals 4036> on puc0
sio2: type 16550A
sio2: unable to activate interrupt in fast mode - using normal mode
sio3: <Dolphin Peripherals 4036> on puc0
sio3: type 16550A
sio3: unable to activate interrupt in fast mode - using normal mode
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 7.2 (no driver attached)
pci0: <bridge> at device 7.3 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 10.0 on pci0
pci2: <ACPI PCI bus> on pcib2
ahd0: <Adaptec AIC7902 Ultra320 SCSI adapter> 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: <Adaptec AIC7902 Ultra320 SCSI adapter> 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: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2100> mem 0xfc9f0000-0xfc9fffff irq 26 at device 5.0 on pci2
miibus0: <MII bus> on bge0
brgphy0: <BCM5704 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge0: Ethernet address: 00:30:48:75:5c:7a
bge1: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2100> mem 0xfc9e0000-0xfc9effff irq 27 at device 5.1 on pci2
miibus1: <MII bus> on bge1
brgphy1: <BCM5704 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge1: Ethernet address: 00:30:48:75:5c:7b
pci0: <base peripheral, interrupt controller> at device 10.1 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci1: <ACPI PCI bus> on pcib3
amr0: <LSILogic MegaRAID 1.51> mem 0xff4f0000-0xff4fffff irq 28 at device 1.0 on pci1
amr0: <LSILogic MegaRAID SATA 150-6D> Firmware 713N, BIOS G119, 64MB RAM
pci0: <base peripheral, interrupt controller> at device 11.1 (no driver attached)
acpi_button0: <Power Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> 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: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xca800-0xcbfff,0xcc000-0xcd7ff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> 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: <LSILogic MegaRAID logical drive> on amr0
amrd0: 715410MB (1465159680 sectors) RAID 5 (optimal)
sa0 at ahd0 bus 0 target 2 lun 0
sa0: <HP Ultrium 1-SCSI E3BR> 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: <HP HP35480A T503> 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



More information about the freebsd-questions mailing list