Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.i386 Subject: Re: Compressing to a tape drive Message-ID: <1990Mar11.233331.15577@virtech.uucp> Date: 11 Mar 90 23:33:31 GMT References: <14496@s.ms.uky.edu> <1990Mar10.041015.23468@ddsw1.MCS.COM> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Distribution: na Organization: Virtual Technologies Inc., Sterling VA Lines: 42 In article <1990Mar10.041015.23468@ddsw1.MCS.COM> nvk@ddsw1.MCS.COM (Norman Kohn) writes: >In article <14496@s.ms.uky.edu> acp@ms.uky.edu (ACPNET consultant) writes: >>find . -print | cpio -oc | compress | dd [blocking options] > /dev/rmt/c0s0 >> >> [discusion of how to get dd to stream deleted] >> >Try dd ibs=5120 obs=512k While all the suggestions that I have seen for this may actually get the tape to stream on some systems, there is no answer for every system. In addition, if there is some other high priority stuff going on, there is no command that will get the tape to stream always. For example, the following dd will stream an entire tape to a file without stopping at all: dd if=/dev/rmt0 of=junkfile bs=50k However, if I am working on the console and cause just a few lines to be output on the console, the streaming will stop. This even occurs if I use bs=2048k. Whenever I type ls -l on the console the tape drive will stop and restart. So the answer is: If you are working on the console, you may never get the tape to stream for very large chunks. If you are working elsewhere, you might still have problems because of what you are running on the system. If you system is totally quiet (except for the backup stuff itself) you "should" be able to get the data to stream. PS - Another part of this is how fast the compress can feed the data to dd. If your tape drive can get ahead of the compress output, you can't stream. That is why some people were saying to use ...|dd obs=big_value that way dd stored up the data and then fed it to the tape in one big chunk. I guess I am just rambling on now so I will stop. Remember there is no one solution, and sometimes none at all, to getting a tape drive to stream. -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170