1. Dump vs tar (across multiple hosts!!!!!! Arrggg!)
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.
--
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."
2. Apache files layout
3. Lilo problem.. Arrggg
4. DG62x5 chip set? FAX? DAT audio?
5. neophyte linux user - converting files?
6. Log analysis Scripts
7. A Linux neophyte meets RedHat.
8. Wireless Modem Card?
9. Linux neophyte questions
10. Please help linux neophyte restore data to hard drive!
11. Linux Neophyte
12. Ethernet for a linux neophyte
13. LINUX Neophyte - Where do I Start?