ufsdump and ufsrestore

From: Bruce Shaw (Bruce.Shaw@gov.ab.ca)
Date: Wed Jun 22 2005 - 19:10:49 EDT


I need a simple script to dump a server mirrored with solstice disksuite to
tape, then demonstrate how to recover it to a new disk.

I'm dumping using this:

ufsdump 0uf /dev/rmt/0hn /
ufsdump 0uf /dev/rmt/0hn /var
ufsdump 0uf /dev/rmt/0hn /opt
ufsdump 0uf /dev/rmt/0h /usr

The tape successfully rewinds at the end.

Then I tried this script to see what's on the tape:

ufsrestore tvf /dev/rmt/0hn > /root.txt
ufsrestore tvsf /dev/rmt/0hn 2 > /var.txt
ufsrestore tvsf /dev/rmt/0hn 3 > /opt.txt
ufsrestore tvsf /dev/rmt/0h 4 > /usr.txt

The script crashed saying:

# ./fullrest.sh
ioctl MTFSF: I/O error
Mount volume 2
then enter volume name (default: /dev/rmt/0hn) ^Cufsrestore interrupted,
continue? [yn] n

The root.txt file contains the contents of /var

so obviously something's wrong.

I've tried fiddling with mt commands to no effect. I've also tried leaving
off the "s" parameter and just trusting the order on the tape.

What am I doing wrong?

-- 
This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take action
relying on it. Any communication received in error, or subsequent reply,
should be deleted or destroyed.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:57 EDT