home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9526 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  2.6 KB

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