Re: Backup tools too slow for LTO-3



Stefan Jankowski wrote:
Remember the days when the tape drive was the primary I/O
bottleneck in backup operations? Well those days are gone: with
that shiny new HP Ultrium 3 attached to my trusty V240[1] the
limiting factor seem to be filesystem read rather than tape
write operations.

The Ultrium 3 drive needs at least 27 MB/s to be able to stream
(times the effective compression factor that is). The 3510 RAID
as such is able to deliver data at a sufficient rate, provided it
can be read in large chunks, as the following table shows

sdd if=/dev/md/rdsk/MYSLICE -onull bs=256k => 80-90 MB/s [2][3]
sdd if=/dev/md/rdsk/MYSLICE of=/dev/rmt/0n bs=256k => 55-60 MB/s
sdd if=/dev/md/rdsk/MYSLICE of=/dev/rmt/0n bs=512k => 60-67 MB/s
sdd if=/dev/md/rdsk/MYSLICE of=/dev/rmt/0n bs=1024k => 65-70 MB/s
sdd if=/dev/md/rdsk/MYSLICE of=/dev/rmt/0n bs=2048k => 65-70 MB/s

However, none of the onboard backup tools (or common
replacements) appears to be able to deliver a sufficient
/sustained/ transfer rate. I have tried:

1. ufsdump with blocking factors of up to the max allowed of 512
(= 256k blocks)

2. Solaris tar with blocking factors up to 2048 (= 1024k blocks)

3. star[4] with up to 1024k blocks and 512M FIFO (bs=1024k fs=512M)

All of these methods perform well for some regions of the file
system and abysmally (20 MB/s and less with the tape stopping
frequently) for others; the problem seems to be backing up many
small files.

At this point, I am stuck. As I currently lack the disk space for
the obvious solution (create tar archive on disk and dump to tape
later) I'd like to ask:

Are there any other optimizations, tweaks, tools that I've
overlooked?

Should I look at commercial backup software?

How do other users of LTO-3 drives do it?

Thank you,
Stefan


[1] System setup:
- V240 with 2x 1.5Ghz USIIIi, 2GB RAM
- SE 3510 with 12x 300GB/10000RPM, 2 logical drives (RAID-5,
6 and 4 disks), random optimization, ld0 attached to the
V240 via a 2GB FC adapter (SG-XPCI2FC-QF2) in the 66 MHz
PCI slot
- Overland Neo 2000 w/ 1x HP Ultrium 3, attached to the V240
via U320 SCSI (SSG-XPCI2SCSI-LM320) in one of the remaining
33MHz slots (slot slower than card, I know, but the 66Mhz
slot is taken...)

[2] Approx. throughput measured by observing the output of
'iostat -xM 5' for a few minutes

[3] sdd is a replacement for dd available at
ftp://ftp.berlios.de/pub/sdd/

[4] star is a replacement for tar availabale at
http://cdrecord.berlios.de/old/private/star.html

You only need enough disk to buffer the difference between
the rates at which data is produced and consumed.

Write yourself a buffer program (think TIVO) that provides two
endpoints (named pipes stdin/stdout) that buffers its input to
a large "ring file". Manage the flow in and out of the ring
file such that reads on the read endpoint are blocked until
some high watermark is reached, but once reached will satisfy
reads until a low watermark (empty) is reached. At that point,
block reads until the ring is refilled to some high watermark
reached, and repeat...

Now, if you now "dump" to the write-endpoint, and "dd" from the
read-endpoint to tape, and the average rate of the dump process
exceeds the rate that the tape drive requires to stream, (and the
ring file is big enough), life will be good. If not, at least you
can limit the number of times the tape has to start/stop streaming.
.



Relevant Pages

  • Re: VTL vs. Backup to Disk
    ... Disk is designated as DASD. ... emulated to provide a complete tape emulation solution. ... The question boils down to backup application support. ... so a good VTL may provide for a better solutions and better ...
    (comp.arch.storage)
  • Re: SCSI or Firewire for tape-drive backups?
    ... Such as: Why tape? ... Disk is much easier, quicker and more searchable. ... They should be in the backup tapes... ... What kind of SATA drives are those prices for? ...
    (comp.sys.mac.system)
  • Re: Backup verify problems
    ... I had a disk and tape drive failure and restore the disk from a backup ... I created a disk backup saveset and got the same verify errors. ...
    (comp.os.vms)
  • Re: [opensuse] Tape backup? - slightly OT
    ... Our choice now looks like LTO, AIT or DLT as our total backup size is now 80Gb. ... a LTO media is mechanically robust but can't be used that often. ... Next time we need to change backup system we will go to USB/eSATA disks - one disk for each tape media we currently have in use: ...
    (SuSE)
  • RE: backup not starting
    ... "The requested media failed to mount" error message when you try to perform ... Backups on Windows Small Business Server 2003 may use more backup media ... If the issue persists, please manually clean the tape driver, and then ... by specifying the same media label name. ...
    (microsoft.public.windows.server.sbs)