Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ufsdump query

Status
Not open for further replies.

ranjit

Technical User
Apr 14, 2000
131
GB
Hi,

I'm attempting to carryout a ufsdump of 5 filesystems to the same tape. The syntax i've used is:

for i in / /var /usr /opt /export/home
do
ufsdump 0cuf /dev/rmt/0n $i
done

The above does not however appear to hold all filesystems - only the first. Is there something wrong with the above?

If so, what should the syntaxt be?

Thanks
 
Syntactically that looks correct. Are you sure the other filesystems are not on the tape? Remember they will be held in different files one after the other on the tape so ufsrestore will only tell you about each one in turn. Use the no-rewind device or position the tape to check

i.e.
ufsrestore -ivf /dev/rmt/0n -- will get details of / quit and call
ufsrestore -ivf /dev/rmt/0n -- should now show details of /var and so on

OR

mt -f /dev/rmt/0n asf 2 -- go to absolute file 2
ufsrestore -ivf /dev/rmt/0n -- will get details of /usr rememder / is at position 0

Check the mt man page about other commands for positioning tape (asf, fsf etc.)

JB
 
I find when doing a restore sequntially, you need to do an 'extra' mt -f /dev/rmt/0cn fsf 1 after restoring one logical tape, to position the tape at the start of the next logical tape. Not sure if that's your problem, but give it a go. HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top