1836598 Members
2513 Online
110102 Solutions
New Discussion

Re: vdump / vrestore

 
sammysammy
Frequent Advisor

vdump / vrestore

Hi,

I have vdump a directory onto a tape, but I am not sure how to use vrestore to verify its status.

Here is what I get:

# vdump -0UNDf /dev/ntape/tape0_d2 /u01/backup

path : /u01/backup
dev/fset : oracle_dmn#dev
type : advfs
advfs id : 0x45d8dee4.000742d6.1
vdump: Date of last level 0 dump: the start of the epoch
vdump: Dumping directories
vdump: Dumping 60286613324 bytes, 4 directories, 10 files
vdump: Dumping regular files

vdump: Status at Wed May 2 10:57:04 2007
vdump: Dumped 18850172845 of 60286613324 bytes; 31.3% completed
vdump: Dumped 2 of 4 directories; 50.0% completed
vdump: Dumped 2 of 10 files; 20.0% completed

vdump: Status at Wed May 2 11:03:43 2007
vdump: Dumped 37814102915 of 60286613324 bytes; 62.7% completed
vdump: Dumped 3 of 4 directories; 75.0% completed
vdump: Dumped 5 of 10 files; 50.0% completed

vdump: Status at Wed May 2 11:16:48 2007
vdump: Dumped 57564663243 of 60286613324 bytes; 95.5% completed
vdump: Dumped 4 of 4 directories; 100.0% completed
vdump: Dumped 9 of 10 files; 90.0% completed

vdump: Status at Wed May 2 11:18:33 2007
vdump: Dumped 60286613324 of 60286613324 bytes; 100.0% completed
vdump: Dumped 4 of 4 directories; 100.0% completed
vdump: Dumped 10 of 10 files; 100.0% completed
vdump: Dump completed at Wed May 2 11:18:33 2007

# vrestore -i -f /dev/ntape/tape0_d3
vrestore: Date of the vdump save-set: Wed Apr 18 15:41:22 2007
vrestore: unable to use save-set; invalid or corrupt format


************* PROGRAM ABORT **************

vrestore: can't obtain fileset attributes

Can anyone please suggest me a way to verify the backup I have done using vdump?

Your suggestion is highly appreciated
Thanks
Sam
5 REPLIES 5
sammysammy
Frequent Advisor

Re: vdump / vrestore

sorry I made an mistake in the cut & paste message. Both tape drives should be the same on tape0_d3.

Sam
Steven Schweda
Honored Contributor

Re: vdump / vrestore

How did you find "vdump" and "vrestore" on
an HP-UX system?

> # vdump -0UNDf /dev/ntape/tape0_d2 [...]

> # vrestore -i -f /dev/ntape/tape0_d3

Why not use the same tape device at both
ends?

Why specify a density at all on the
"vrestore" tape device? Shouldn't plain
"tape0" work for any read operation?

"ntape" is the no-rewind option. Are you
trying to read off the end of the tape?

"man mtio"
"man tape"
sammysammy
Frequent Advisor

Re: vdump / vrestore

Sorry a bit confuse with my first post. It should be on the same tape drive _d3. I was a mistake in my cut and paste.

Is _d2 and _d3 stands for density level 2 and 3?

sammysammy
Frequent Advisor

Re: vdump / vrestore

This is a list of tape drives available in the system:

# ls /dev/ntape/tape*
/dev/ntape/tape0 /dev/ntape/tape0_d7 /dev/ntape/tape1_d5 /dev/ntape/tape2_d3
/dev/ntape/tape0_d0 /dev/ntape/tape0c /dev/ntape/tape1_d6 /dev/ntape/tape2_d4
/dev/ntape/tape0_d1 /dev/ntape/tape1 /dev/ntape/tape1_d7 /dev/ntape/tape2_d5
/dev/ntape/tape0_d2 /dev/ntape/tape1_d0 /dev/ntape/tape1c /dev/ntape/tape2_d6
/dev/ntape/tape0_d3 /dev/ntape/tape1_d1 /dev/ntape/tape2 /dev/ntape/tape2_d7
/dev/ntape/tape0_d4 /dev/ntape/tape1_d2 /dev/ntape/tape2_d0 /dev/ntape/tape2c
/dev/ntape/tape0_d5 /dev/ntape/tape1_d3 /dev/ntape/tape2_d1
/dev/ntape/tape0_d6 /dev/ntape/tape1_d4 /dev/ntape/tape2_d2

What should I use vdump & vrestore for backing up directory /u01/backup and /u04/backup on the same tape drive in the most normal or efficient way?

Thanks
Sam
Steven Schweda
Honored Contributor

Re: vdump / vrestore

> Is _d2 and _d3 stands for density level 2
> and 3?

"man tape"

I don't know which kind of tape drive you
have, so it's hard for me to say exactly what
all the various tape device names do.

"man tape":

[...]
Two new device special file names now exist which will allow the user to
select the highest density of the tape drive. These two device special
filenames can be used for all devices which support auto-density select,
even if there are no entries in the ddr.dbase file for the tape drive.
[...]

"man ddr.dbase"

Do you ever read the "man" pages?

> "ntape" is the no-rewind option. Are you
> trying to read off the end of the tape?

If you write a tape and do not rewind it, the
next read operation starts at end-of-tape,
and is not likely to succeed.

"man mt"