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-19 10:40:31 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!seismo!esosun.css.gov!mvb.saic.com!apg5.saic.com!matthews Newsgroups: comp.unix.osf.osf1 From: matthews@apg5.saic.com (Cameron H. Matthews) Distribution: world References: <14941557@MVB.SAIC.COM> <1993Aug18.212324.4584@nntpd2.cxo.dec.com> Reply-To: matthews@apg5.saic.com (Cameron H. Matthews) Organization: SAIC Subject: Re: Newbie questions on dump Message-ID: <14966364@MVB.SAIC.COM> Date: Thu, 19 Aug 1993 17:25:11 GMT Nntp-Posting-Host: Mvb.Saic.Com Hi Allan, Thanks for the reply. [Some text removed] >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. Good info. I was using the defaults and was able to determine what rmt0h was pointing to ( tz13 ) by checking out the MAKEDEV.log in /dev. [Text removed] >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). Thanks, didn't know that. Interesting that even though dump complained about the tape it still managed to read it. I wonder if it spaces forward and then retries? > 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? [Text removed] >Unloading the tape should cause it to rewind, or you can explicitly >tell it to use mt(1): > ># mt -f /dev/rmt0h rewind Happily, I got far enough along in the docs to notice that. I was doing that ( multiple backups using the norewind special file ) but noticed a blurb in the SysAdmin guide( pg. 9-5 ): "Be careful when using the method given in the previous example. This method will save tape, but can cause problems when a restore is required." After posting my original message about dump complaining that the tape was not a dump tape, I rewound the tape and redumped on it 2 file systems. I could list the first out fine ( using nrmt0h ) but upon trying to list the 2nd, received the onerous message "This tape is not a dump tape". I finally resolved the problem by spacing forward using "mt fsf 1" and then reexecuting the restore command. So currently, I am doing a dump like so: $ dump -0u -f /dev/nrmt0h / $ dump -0u -f /dev/rmt0h /usr To list the files: $ restore -t -f /dev/nrmt0h $ mt fsf 1 $ restore -t Is there a better way? Thanks for your responses, Allan. Cameron