Unix Technical Forum

Keeping tape streaming, bigger buffer than "buffer"?

This is a discussion on Keeping tape streaming, bigger buffer than "buffer"? within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> In order to keep a streaming tape streaming it must be fed data at a very high rate of ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 09:43 AM
David Mathog
 
Posts: n/a
Default Keeping tape streaming, bigger buffer than "buffer"?

In order to keep a streaming tape streaming it must be fed data at a
very high rate of speed. When that data is coming from a remote system
that's generally impossible to do unless a program like Lee McLoughlin's
"buffer" is used. The thing is, buffer only allows a maximum buffer of
around 16Mb. I've found that with an SDLT320 that only ends up
streaming the drive for a few seconds, for instance like this (linux
system with tape drive, remote linux, same sort of thing if remote
is Solaris):

ssh root@$REMOTE "dump -0 -q -B 2000000000 -f - -u $TPARTITION | gzip
-3 -c" <dev/null 2>>$BLOG | \
buffer -m 16384k -p 75 -B -o /dev/nst0 2>>$BLOG

What I'm looking for is a program that can buffer to two disk files of
say 1G each, filling one while writing the other to tape.
Probably these should be on two different disks. Anyway, the idea
is that when the buffer file is filled it can easily stream the full
1Gb to tape. The tape spends much more time streaming, and much, much
less time rewinding and waiting - which wears both the drive and the
tape. If a 16M buffer results in 5 seconds of streaming then a 1Gb
buffer file should be around 5 minutes of streaming.

The question is - is there such a program around already? I've googled
but keywards like "file" and "buffer" are so common that it's hard to
find anything.

Thanks,

David Mathog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 09:43 AM
tunla
 
Posts: n/a
Default Re: Keeping tape streaming, bigger buffer than "buffer"?


David Mathog wrote:
> In order to keep a streaming tape streaming it must be fed data at a
> very high rate of speed. When that data is coming from a remote system
> that's generally impossible to do unless a program like Lee McLoughlin's
> "buffer" is used. The thing is, buffer only allows a maximum buffer of
> around 16Mb. I've found that with an SDLT320 that only ends up
> streaming the drive for a few seconds, for instance like this (linux
> system with tape drive, remote linux, same sort of thing if remote
> is Solaris):
>
> ssh root@$REMOTE "dump -0 -q -B 2000000000 -f - -u $TPARTITION | gzip
> -3 -c" <dev/null 2>>$BLOG | \
> buffer -m 16384k -p 75 -B -o /dev/nst0 2>>$BLOG
>
> What I'm looking for is a program that can buffer to two disk files of
> say 1G each, filling one while writing the other to tape.
> Probably these should be on two different disks. Anyway, the idea
> is that when the buffer file is filled it can easily stream the full
> 1Gb to tape. The tape spends much more time streaming, and much, much
> less time rewinding and waiting - which wears both the drive and the
> tape. If a 16M buffer results in 5 seconds of streaming then a 1Gb
> buffer file should be around 5 minutes of streaming.
>
> The question is - is there such a program around already? I've googled
> but keywards like "file" and "buffer" are so common that it's hard to
> find anything.




You either need to convert you network to gigabit

or

if the remote system is on the other side of a WAN I think
you should look aroud for a WAN link file replication solution
that will replicate you remote files compleately to local storage
Symantec/Veritas does this type of software , IBM Tivoli also
, and ofcouse all major storage vendors have software that
does this with their hardware.

This type of software usully work by copying changed diskblocs
from the remote systems to local storage, therby preventing
the transfer of complete files when a record in a file or database
is updated.


//Lars

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 09:43 AM
Richard B. Gilbert
 
Posts: n/a
Default Re: Keeping tape streaming, bigger buffer than "buffer"?

David Mathog wrote:

> In order to keep a streaming tape streaming it must be fed data at a
> very high rate of speed. When that data is coming from a remote system
> that's generally impossible to do unless a program like Lee McLoughlin's
> "buffer" is used. The thing is, buffer only allows a maximum buffer of
> around 16Mb. I've found that with an SDLT320 that only ends up
> streaming the drive for a few seconds, for instance like this (linux
> system with tape drive, remote linux, same sort of thing if remote
> is Solaris):
>
> ssh root@$REMOTE "dump -0 -q -B 2000000000 -f - -u $TPARTITION | gzip
> -3 -c" <dev/null 2>>$BLOG | \
> buffer -m 16384k -p 75 -B -o /dev/nst0 2>>$BLOG
>
> What I'm looking for is a program that can buffer to two disk files of
> say 1G each, filling one while writing the other to tape.
> Probably these should be on two different disks. Anyway, the idea
> is that when the buffer file is filled it can easily stream the full
> 1Gb to tape. The tape spends much more time streaming, and much, much
> less time rewinding and waiting - which wears both the drive and the
> tape. If a 16M buffer results in 5 seconds of streaming then a 1Gb
> buffer file should be around 5 minutes of streaming.
>
> The question is - is there such a program around already? I've googled
> but keywards like "file" and "buffer" are so common that it's hard to
> find anything.
>
> Thanks,
>
> David Mathog


How did you wind up with a tape drive that needs a higher data rate than
your system can supply? Given what tape drives, especially high
performance tape drives, cost it seems like a waste of money. If you
manage to provide a gigabyte buffer, your tape drive will stream for
five minutes, sit idle for X minutes, stream for five minutes. . . .

Or am I missing something?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 09:44 AM
Jim Prescott
 
Posts: n/a
Default Re: Keeping tape streaming, bigger buffer than "buffer"?

In article <ebqjhc$l0t$1@naig.caltech.edu>,
David Mathog <mathog@caltech.edu> wrote:
>In order to keep a streaming tape streaming it must be fed data at a
>very high rate of speed. When that data is coming from a remote system
>that's generally impossible to do unless a program like Lee McLoughlin's
>"buffer" is used. The thing is, buffer only allows a maximum buffer of
>around 16Mb.


Thomas Maier-Komor's mbuffer program expands upon buffer. It supports
large memory buffers and also appears to support disk based buffers.
http://www.maier-komor.de/mbuffer.html

Another approach is to go to a disk to disk to tape backup. Setup a
staging disk as large as your largest partition needing to be backed up;
striping several disks together for performance and capacity might be a
good idea. Your dump just creates a single large file in the staging area
and when it is done you use buffer/mbuffer to transfer it to tape.
--
Jim Prescott - Computing and Networking Group jgp@seas.rochester.edu
School of Engineering and Applied Sciences, University of Rochester, NY
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 09:44 AM
David Mathog
 
Posts: n/a
Default Re: Keeping tape streaming, bigger buffer than "buffer"?

Richard B. Gilbert wrote:

> How did you wind up with a tape drive that needs a higher data rate than
> your system can supply?


The data source is coming over the network, local disk backups don't
need any of this hocus pocus and the drive streams nicely along.

> Given what tape drives, especially high
> performance tape drives, cost it seems like a waste of money.


Nope, this is saving money by using one tape drive to
back up multiple systems.

> If you
> manage to provide a gigabyte buffer, your tape drive will stream for
> five minutes, sit idle for X minutes, stream for five minutes. . . .


Exactly what I'm looking for. It's now spending about half its time
rewinding at short intervals. It would be much better if it wrote
continuously for 5 minutes and then sat idle for 5 minutes if the total
throughput was about the same since it would cause less wear on the
tapes and tape drive.

The tape drive streams at 16Mb/sec but the maximum data rate over
the 100baseT connection is 100/8 = 12.5Mb/sec, in the real world it's
probably around 12Mb. So the tape drive outruns the network by about
4Mb/sec. There's nothing I can do about that since changing the
network isn't an option. The original buffer only provides a
16Mb buffer which guarantees a tape drive stall ever 4 seconds (or
so, depending on the percent settings.)

Regards,

David Mathog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-16-2008, 09:44 AM
David Mathog
 
Posts: n/a
Default Re: Keeping tape streaming, bigger buffer than "buffer"?

Jim Prescott wrote:

> Thomas Maier-Komor's mbuffer program expands upon buffer. It supports
> large memory buffers and also appears to support disk based buffers.
> http://www.maier-komor.de/mbuffer.html


That seems to be pretty much what I was looking for. I'll give it a try.

Thanks!

David Mathog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-16-2008, 09:44 AM
Richard B. Gilbert
 
Posts: n/a
Default Re: Keeping tape streaming, bigger buffer than "buffer"?

David Mathog wrote:

> Richard B. Gilbert wrote:
>
>> How did you wind up with a tape drive that needs a higher data rate
>> than your system can supply?

>
>
> The data source is coming over the network, local disk backups don't
> need any of this hocus pocus and the drive streams nicely along.
>
>> Given what tape drives, especially high performance tape drives, cost
>> it seems like a waste of money.

>
>
> Nope, this is saving money by using one tape drive to
> back up multiple systems.
>
>> If you manage to provide a gigabyte buffer, your tape drive will
>> stream for five minutes, sit idle for X minutes, stream for five
>> minutes. . . .

>
>
> Exactly what I'm looking for. It's now spending about half its time
> rewinding at short intervals. It would be much better if it wrote
> continuously for 5 minutes and then sat idle for 5 minutes if the total
> throughput was about the same since it would cause less wear on the
> tapes and tape drive.
>
> The tape drive streams at 16Mb/sec but the maximum data rate over
> the 100baseT connection is 100/8 = 12.5Mb/sec, in the real world it's
> probably around 12Mb. So the tape drive outruns the network by about
> 4Mb/sec. There's nothing I can do about that since changing the
> network isn't an option. The original buffer only provides a
> 16Mb buffer which guarantees a tape drive stall ever 4 seconds (or
> so, depending on the percent settings.)
>
> Regards,
>
> David Mathog


Can you "stage" your backup to a local disk and then copy it to tape?
It could require a honkin big disk that might cost more than a couple of
gigabit ethernet NICs. . . . BTW you don't have to upgrade the whole
network; one GB NIC per system and a crossover cable could make a BIG
difference.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-16-2008, 09:44 AM
David Mathog
 
Posts: n/a
Default Re: Keeping tape streaming, bigger buffer than "buffer"?

Richard B. Gilbert wrote:
> Can you "stage" your backup to a local disk and then copy it to tape?


Not in general. One of the partitions is over 90Gb, which is bigger
than all of the disks on the backup system. mbuffer (see another post
in this thread) allows for 5Gb or so buffer file, and that should be
enough to eliminate 99% of the rewinds.

Thanks,

David Mathog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:45 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com