From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b3edf9a30eb795dc X-Google-Attributes: gid111c93,public From: mathog@seqaxp.bio.caltech.edu (David Mathog) Subject: Re: bug in RMT or dump/restore? Date: 2000/07/06 Message-ID: <8k2jfm$ndl@gap.cco.caltech.edu>#1/1 X-Deja-AN: 643154886 References: <8k0266$8s3@gap.cco.caltech.edu> Organization: Biology Division, Caltech, Pasadena CA 91125 Reply-To: mathog@seqaxp.bio.caltech.edu Newsgroups: comp.os.linux.alpha In article <8k0266$8s3@gap.cco.caltech.edu>, mathog@seqaxp.bio.caltech.edu (David Mathog) writes: >If any of you have successfully used dump/restore with more than 1 dump >file to a remote tape, could you please do a dump -v and let me know which >version you're using? > >Here's what happened when I tried it... > > [root@barrel /root]# /sbin/restore -t -f seqaxp.cluster:mkb500:/nomount/nostream/norewind/nounload > Connection to seqaxp.cluster established. > >listed the contents of /dev/sda2. Good. So the second command had not >written over the first dump. Verification of the second dump file: > > [root@barrel /root]# /sbin/restore -t -f seqaxp.cluster:mkb500:/nomount/nostream/norewind/nounload > Connection to seqaxp.cluster established. > /sbin/restore: Tape is not a dump tape > >Oops, not good! The word from Stelian Pop is that restore does not leave the tape positioned at the end of the file. mt seems not to work on the remote device, so in the end I found that this method works: [root@barrel /root]# /sbin/restore -t -s 1 -f seqaxp.cluster:mkb500:/nomount/nostream/rewind/nounload [root@barrel /root]# /sbin/restore -t -s 2 -f seqaxp.cluster:mkb500:/nomount/nostream/rewind/nounload Using the rewind device puts the tape back at the beginning following the first restore operation, and -s N picks the file on the tape to read. I have not tried using -s 1 repeatedly with /norewind, but that might work too, and not require so much tape motion. Regards, David Mathog mathog@seqaxp.bio.caltech.edu Manager, sequence analysis facility, biology division, Caltech