Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

To restore multiple file set

SOLVED
Go to solution
malay boy
Trusted Contributor

To restore multiple file set

Hi,
I have backup to file set using below command:

vdump -0uvf /dev/tape/tape1_d1 -N -U /mB
vdump -0uvf /dev/tape/tape1_d1 -N -U /mB1

The problem is I can't see the second fileset.
Here are the command I used :

mt -f /dev/tape/tape1_d1 fsf 1
then
vrestore -i-f /dev/tape/tape1_d1
vrestore: Date of the vdump save-set: Mon Nov 3 13:11:43 2003
vrestore: Save-set source directory : /mB
(/)


I see /mB not /mB1.Any idea what I do wrong.

regards
mB
There are three person in my team-Me ,myself and I.
6 REPLIES
Ninad_1
Honored Contributor
Solution

Re: To restore multiple file set

Your problem is that while backing up the filesystem you are using norewind option which is required to backup multiple filesystems on same tape but while restoring you are using the normal tape device name.
there must be a device name for your tape device for no rewind option. you will have to use that device name with the mt command while usign the fsf option and then use the vrestore command.

Generally what i use is like this
vdump -0uf /dev/nrmt1h /
vdump -0uf /dev/nrmt1h /usr
and so on
and while restoring , suppose i want to restore the 2nd filesystem

mt -f /dev/nrmt1h fsf 1
vrestore -i -f /dev/nrmt1h

This way the no rewind device name is generally preceded by "n" to your normal device name
i.i normal device name is /dev/rmt1h
and norewind device name is /dev/nrmt1h

Hope you find the norewind device name in your case and that will solve your problem

Ralf Puchner
Honored Contributor

Re: To restore multiple file set

If you are using a 5.x system you must use /dev/ntape/tape1_d1 instead of the rewind tape devices. But this is still described within the admin guide.

Without using the "norewind" option the tape rewinds the tape after executing the backup command and the next tape command (like vdump) overwrites the saveset. In your case you have used the -N option not leading to a rewind of the tape so second saveset have not overwritten the first one.

use

# mt -f /dev/ntape/tape1_d1 fsf 1

to forward the tape to the next positon (as described in detail in the admin guide) or use the ntape device within you first vrestore command so tape will halt after restoring the saveset.
Help() { FirstReadManual(urgently); Go_to_it;; }
Joris Denayer
Respected Contributor

Re: To restore multiple file set

mB,

In V5.X, the no-rewind tape devicefiles are located in /dev/ntape

Joris
To err is human, but to really faul things up requires a computer
Ralf Puchner
Honored Contributor

Re: To restore multiple file set

Joris,

have you read my posting? It contains the same information in detail.
Help() { FirstReadManual(urgently); Go_to_it;; }
Joris Denayer
Respected Contributor

Re: To restore multiple file set

Ralf,
Look at the timestamp, we were typing at the same moment.

Joris
To err is human, but to really faul things up requires a computer
Mohamed K Ahmed
Trusted Contributor

Re: To restore multiple file set

Malay Boy,
I know that you have got the answers to your question, but I just wanted to add something here:
I usually use the following command in all my restores and have been using them for a long time with a good backup compression and restore effectiveness:

vdump -0 -u -f /dev/ntape/tape1c /mB
vdump -0 -u -f /dev/ntape/tape1c /mB1
.....

This will give you compression ratio according to the hardware you are using, like the DLTs, if you want to force compression you can add the parameter (-C, no need to bother yourself with tape1_d1
Also using the ntape, the tape will not rewind after finishing the backup command, so this way you can backup several savesets on the same tape.

Also when restoring, just count which save set you want to go to and issue the command
mt -f /dev/ntape/tape1c fsf "number"
vrestore -i -f /dev/ntape/tape1c

Hope this helps

Mohamed