From owner-freebsd-questions Thu Feb 22 10:30: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from doheny.beach.net (doheny.beach.net [206.16.184.191]) by hub.freebsd.org (Postfix) with ESMTP id C3F3837B67D for ; Thu, 22 Feb 2001 10:30:02 -0800 (PST) (envelope-from scott@doheny.beach.net) Received: from localhost (scott@localhost) by doheny.beach.net (8.10.0.Beta12/8.10.0.Beta12) with ESMTP id f1MINEe62538; Thu, 22 Feb 2001 10:23:15 -0800 (PST) Date: Thu, 22 Feb 2001 10:23:14 -0800 (PST) From: "Scott B. Gale" To: "Randy B. Lim" Cc: questions@FreeBSD.ORG Subject: Re: How to change the tape size in the dump command In-Reply-To: <3A93D5AD.5BA6AE19@aht.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It looks like a hardware problem -- either the tape or the drive is not behaving properly. It is a pretty big tape and hard to pull. The line below, "DUMP: estimated 4384518 tape blocks on 0.15 tape(s)" tells me that the dump program itself is behaving as it should, it recognizes that the backup will be about 4GB and that it will take up about 15% of the 30GB tape. If it is really a 30GB tape then the "End of tape detected" is probably generated because the tape had ceased to move, not because of an end-of-tape marker. The first thing I would try is another tape and/or cleaning the tape drive. Good luck! Scott B. Gale Dana Point Communications On Wed, 21 Feb 2001, Randy B. Lim wrote: > The following is what I got with the dump command, It seemed dump detect the end > of tape(But I just use > # mt -f /dev/ht0 rewind > to set the tape in the beginning position. > > > [root@fwdoc rblim]# /sbin/dump -0u -B 30000000 -f /dev/ht0 /dev/da0s1a1 > DUMP: Date of this level 0 dump: Wed Feb 21 15:07:45 2001 > DUMP: Date of last level 0 dump: the epoch > DUMP: Dumping /dev/hda1 (/) to /dev/ht0 > DUMP: mapping (Pass I) [regular files] > DUMP: mapping (Pass II) [directories] > DUMP: estimated 4384518 tape blocks on 0.15 tape(s). > DUMP: End of tape detected > DUMP: Closing /dev/ht0 > DUMP: Change Volumes: Mount volume #2 > DUMP: Is the new volume mounted and ready to go?: ("yes" or "no") > > The information about the tape is > > [root@fwdoc rblim]# dmesg | grep ht0 > ide-tape: hdd <-> ht0: OnStream DI-30 rev 1.05 > ide-tape: hdd <-> ht0: 990KBps, 64*32kB buffer, 10208kB pipeline, 60ms tDSC > > > Any ideas? > > > > "Scott B. Gale" wrote: > > > On Tue, 20 Feb 2001, Randy B. Lim wrote: > > > > > Hi, > > > > > > I got a 30 GB IDE tape (/dev/nht0) and I want to dump 4GB /root partition to > > > the tape. How to use the dump command to let the 4GB dumped to one single > > > tape? > > > > If the -a "auto-size" option isn't working to get dump to size the tape > > properly you can use the -B option to specify how many 1k blocks the tape > > will hold. For instance, to do a level zero backup of my root partition > > (with device name /dev/da0s1a) onto a 30 GB tape in device /dev/nht0 I > > would use the following command: > > > > dump -0u -B 30000000 -f /dev/nht0 /dev/da0s1a > > > > I've been told it is generally better practice to use the device name to > > specify the root partition rather than "/". You can get the device name > > by using the df command. > > > > > > > > Best Regards, > > > > > > -Randy > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > Hope this helps! > > > > Scott B. Gale > > Dana Point Communications To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message