home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!menudo.uh.edu!usenet
- From: sears@tree.egr.uh.edu (Paul S. Sears)
- Newsgroups: comp.unix.questions
- Subject: Dump vs tar (across multiple hosts!!!!!! Arrggg!)
- Message-ID: <1992Jul29.145508.519@menudo.uh.edu>
- Date: 29 Jul 92 14:55:08 GMT
- Sender: usenet@menudo.uh.edu (USENET News System)
- Reply-To: sears@tree.egr.uh.edu
- Organization: University of Houston
- Lines: 63
- Nntp-Posting-Host: flower.egr.uh.edu
-
-
- Earlier I posted a question about piping dump through compress and putting
- that output onto a 4mm tape. Then extracting the compressed dump. That is
- now working great but I have encountered a new problem:
-
- The partitions I want to dump span across *two* hosts, ie,
-
- host1:/Users
- host1:/Users2
- host2:/Users (also mounted on host1 as /Users3)
-
- The structures are dumped via the following:
-
- /etc/dump 0usf 60000 - /Users | compress -c - > ${TAPE}
- /etc/dump 0usf 60000 - /Users2 | compress -c - > ${TAPE}
- /etc/dump 0usf 60000 - /Users3 | compress -c - > ${TAPE}
-
- When I tried to dump host2:/Users via the mount point /Users3, I get the
- following:
-
- DUMP: DUMP: 89895 tape blocks on 1 tape(s)
- DUMP: DUMP IS DONE
- DUMP: level 0 dump on Tue Jul 28 18:49:06 1992
- DUMP: Date of this level 0 dump: Tue Jul 28 19:02:58 1992
- DUMP: Date of last level 0 dump: the epoch
- DUMP: Dumping /Users3 to standard output
- DUMP: (This should not happen)bread from /Users3 [block 8]: count=-8192,
- got=-1
- DUMP: bad sblock magic number
- DUMP: The ENTIRE dump is aborted.
-
- I then realized that dump wants the raw device and that /Users3 is a NFS mount
- point (!raw :-)), so that is not going to work.
-
- I elected to go with tar for now, since it works on the directory structure
- and not the raw device, but now I am having problems reading what I tared and
- compressed from tape:
-
- host>gnutar -cpPvf - /Users2 | compress -c - > /dev/nrst0
-
- (no problems here)
-
- host>mt -f /dev/nrst0 rewind
- host>cat /dev/nrst0 | zcat - | gnutar -tf -
- cat: read error: I/O error
- host>mt -f /dev/nrst0 rewind
- host>dd if=/dev/nrst0
- read: I/O error
- 0+0 records in
- 0+0 records out
-
- How can I extract what I put onto the tape?? Did I do the tar->compress->tape
- correctly??? (Btw, if anyone knows an easy way (rsh?) to use dump, instead of
- tar, let me know!)
-
- Any help will be appreciated.
-
- --
- Paul S. Sears * sears@uh.edu (NeXT Mail OK)
- The University of Houston * suggestions@tree.egr.uh.edu (NeXT
- Engineering Computing Center* comments, complaints, questions)
- NeXT System Administration * DoD#1967 '83 NightHawk 650SC SSI#755020059
- "Programming is like sex: One mistake and you support it a lifetime."
-