From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4251ebb485b2ad78 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-08-18 15:11:50 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth.cxo.dec.com!alan From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Subject: Re: Newbie questions on dump Message-ID: <1993Aug18.212324.4584@nntpd2.cxo.dec.com> Sender: usenet@nntpd2.cxo.dec.com (USENET News System) Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Organization: Digital Equipment Corporation References: <14941557@MVB.SAIC.COM> Date: Wed, 18 Aug 1993 21:23:24 GMT In article <14941557@MVB.SAIC.COM>, matthews@apg16.saic.com (Cameron H. Matthews) writes: >Newsgroups: comp.unix.osf.osf1 >From: matthews@apg16.saic.com (Cameron H. Matthews) >Reply-To: matthews@apg16.saic.com (Cameron H. Matthews) >Subject: Newbie questions on dump > >Hi, > > Am having problems doing dumps on a DEC ALPHA running >OSF/1. The Guide to Sys Admin simply says to use dump. I do >so but when listing out the tape via "restore -t", it tells me >at the beginning that the tape is not a dump tape. If I try to >do in interactive restore, it bombs with "not a dump tape". Left to itself I believe the interesting defaults for a dump command by itself are: Level: 0, though maybe 9. Tape: /dev/rmt0h Device: /dev/rrz0g The default tape device of restore(8) should also be rmt0h. So, if the dump(8) worked correctly and you haven't changed tapes, whatever was in rmt0h should have a dump on it. If you aren't strictly using the defaults, please post the command you are using. A transcription of the output from dump would also be useful to verify that it is running correctly. > So, what is a "dump tape"? Is there some header that >must be put on the tape? Or an ANSI label? Why is this not in >any of the Sys Admin guides that I have? The first record of a dump tape, has a magic number in it. Restore looks at this record and assumes it has the necessary structure. If the magic number has the right value, then restore can treat the tape as one written by dump(8). > Also, what is the problem with putting multiple dumps >on a single tape? If you have a number of small file systems, >this can be a pain having to waste 4GB DAT tapes. Any advice, >hints, or tricks? One of the options on dump(8) is used to specify an alternate device or file or the dump itself; 'f'. A feature of the tape drive naming scheme is that one of the names of a tape drive tell it not to rewind when the drive is closed: /dev/nrmt*. So, using the 'f' option to specify an alternate device and the "nrmt" name of a tape drive you can arrange for the tape not to rewind between commands. Thus each new dump will be written after the last. # dump 0f /dev/nrmt0h file-system # dump 0f /dev/nrmt0h next-file-system # dump 0f /dev/nrmt0h and-so-on Unloading the tape should cause it to rewind, or you can explicitly tell it to use mt(1): # mt -f /dev/rmt0h rewind > >Thanks! > -- Alan Rollow alan@nabeth.cxo.dec.com