Greetings Unix Guru's
This is kinda verbose, sorry but figured better safe than sorry.
I'm playing with vdump/vrestore and created the following in my root
directory.
root
(dir)testvdump
(subdir)subtest1
(file) test1file
(subdir)subtest2
(file)test2file
(subdir)subtest3
(file)test3file
I thought I would test vrestore of entire tree from testvdump down, to my
suprize
testvdump is not available but everything under it appears to be??
Here is what I did:
from root directory I dumped testvdump.
Then I tried to restore testvdump and can't find it on the dump tape.
All the ouputs and commands follow:
btw I'm running Dec Unix v4.0b patch level (none) on an 8200, tape drives
are
TZ88's.
----------------------------------------------------------------
Tape status prior to dump
----------------------------------------------------------------
DEVIOGET ELEMENT CONTENTS
---------------- --------
category DEV_TAPE
bus DEV_SCSI
interface SCSI
device TZ88
adpt_num 0
nexus_num 0
bus_num 7
ctlr_num 7
slave_num 83
dev_name tz
unit_num 83
soft_count 0
hard_count 0
stat 1
DEV_BOM
category_stat 1000000
DEV_81630_BPI
DEVGETINFO ELEMENT CONTENTS
------------------ --------
media_status 0x1
BOM
unit_status 0x1a1
Ready 2_FM_Close Rewind Compacting Buffered
record_size 0
density (current) 81630 BPI
density (on write) 0 BPI
Filemark Cnt <Not Valid>
Record Cnt <Not Valid>
Class 1 - DLT (tk)
MTIOCGET ELEMENT CONTENTS
---------------- --------
mt_type MT_ISSCSI
mt_dsreg 0
mt_erreg 0
mt_resid 0
----------------------------------------------------------------
Output from vdump command
/sbin/vdump -Couvf /dev/rmt1h -D/testvdump
----------------------------------------------------------------
path : /testvdump
dev/fset : /dev/rz18a
type : ufs
vdump: Date of last level 0 dump: the start of the epoch
vdump: Dumping directories
vdump: Dumping 63 bytes, 4 directories, 3 files
vdump: Dumping regular files
bd ./
bd ./subtest1/
bf ./subtest1/test1file, 21
bd ./subtest2/
bf ./subtest2/test2file, 21
bd ./subtest3/
bf ./subtest3/test3file, 21
vdump: Rewinding and unloading tape
vdump: Status at Fri Jan 23 12:17:44 1998
vdump: Dumped 63 of 63 bytes; 100.0% completed
vdump: Dumped 4 of 4 directories; 100.0% completed
vdump: Dumped 3 of 3 files; 100.0% completed
vdump: Dump completed at Fri Jan 23 12:17:44 1998
----------------------------------------------------------------
vdumpdates file contents
----------------------------------------------------------------
/etc/vdumpdates
/dev/rz18a 0 Fri Jan 23 12:17:19 1998
----------------------------------------------------------------
error from vrestore cmd /sbin/vrestore -f /dev/rmt1h -x /testvdump
----------------------------------------------------------------
file </testvdump> not found; will not extract it
vrestore: file extraction list is invalid
vrestore: Date of the vdump save-set: Fri Jan 23 12:17:19 1998
vrestore: nothing will be restored
----------------------------------------------------------------
Output from vrestore list command
/sbin/vrestore -lf /dev/rmt1h
----------------------------------------------------------------
vrestore: Date of the vdump save-set: Fri Jan 23 12:17:19 1998
BLOCK HEADER
block size : 61440
flags : <compressed>
volume set : 1
volume sets: 1
volume num : 0
block num : 1
header CRC : 0x372c
block CRC : 0x0000
xor blocks : 0
xor blk num: 0
id : Fri Jan 23 12:17:24 1998
version : 4.0
BLOCK HEADER
block size : 61440
flags : <compressed><dirs>
volume set : 1
volume sets: 1
volume num : 0
block num : 2
header CRC : 0xdc2b
block CRC : 0x0000
xor blocks : 0
xor blk num: 0
id : Fri Jan 23 12:17:24 1998
version : 4.0
RECORD HEADER (directory header)
record type : 3
data offset : 0
record size : 90
flags : <none>
--
dir name : ./
dir inode : 17274
dir mode : 040755
dir owner : 0
dir group : 31
parent ino: 17274
RECORD HEADER (directory data)
record type : 4
data offset : 0
record size : 216
flags : <none>
RECORD HEADER (directory header)
record type : 3
data offset : 0
record size : 97
flags : <none>
--
dir name : subtest1/
dir inode : 17275
dir mode : 040755
dir owner : 0
dir group : 31
parent ino: 17274
RECORD HEADER (directory data)
record type : 4
data offset : 0
record size : 128
flags : <none>
RECORD HEADER (directory header)
record type : 3
data offset : 0
record size : 97
flags : <none>
--
dir name : subtest2/
dir inode : 17276
dir mode : 040755
dir owner : 0
dir group : 31
parent ino: 17274
RECORD HEADER (directory data)
record type : 4
data offset : 0
record size : 128
flags : <none>
RECORD HEADER (directory header)
record type : 3
data offset : 0
record size : 97
flags : <none>
--
dir name : subtest3/
dir inode : 17279
dir mode : 040755
dir owner : 0
dir group : 31
parent ino: 17274
RECORD HEADER (directory data)
record type : 4
data offset : 0
record size : 128
flags : <none>
RECORD HEADER (filler)
record type : 2
data offset : 0
record size : 60059
flags : <none>
BLOCK HEADER
block size : 61440
flags : <compressed><files>
volume set : 1
volume sets: 1
volume num : 0
block num : 3
header CRC : 0xa077
block CRC : 0x0000
xor blocks : 0
xor blk num: 0
id : Fri Jan 23 12:17:24 1998
version : 4.0
RECORD HEADER (directory attributes)
record type : 5
data offset : 0
record size : 90
flags : <none>
--
dir name : ./
dir inode : 17274
dir mode : 040755
dir owner : 0
dir group : 31
parent ino: 17274
RECORD HEADER (directory attributes)
record type : 5
data offset : 0
record size : 97
flags : <none>
--
dir name : subtest1/
dir inode : 17275
dir mode : 040755
dir owner : 0
dir group : 31
parent ino: 17274
RECORD HEADER (file attributes)
record type : 7
data offset : 0
record size : 98
flags : <none>
--
file name : test1file
file inode: 17277
file mode : 0100644
file owner: 0
file group: 31
file links: 1
file size : 21
parent ino: 17275
RECORD HEADER (directory attributes)
record type : 5
data offset : 0
record size : 97
flags : <none>
--
dir name : subtest2/
dir inode : 17276
dir mode : 040755
dir owner : 0
dir group : 31
parent ino: 17274
RECORD HEADER (file attributes)
record type : 7
data offset : 0
record size : 98
flags : <none>
--
file name : test2file
file inode: 17278
file mode : 0100644
file owner: 0
file group: 31
file links: 1
file size : 21
parent ino: 17276
RECORD HEADER (directory attributes)
record type : 5
data offset : 0
record size : 97
flags : <none>
--
dir name : subtest3/
dir inode : 17279
dir mode : 040755
dir owner : 0
dir group : 31
parent ino: 17274
RECORD HEADER (file attributes)
record type : 7
data offset : 0
record size : 98
flags : <none>
--
file name : test3file
file inode: 17280
file mode : 0100644
file owner: 0
file group: 31
file links: 1
file size : 21
parent ino: 17279
RECORD HEADER (end of save-set)
record type : 1
data offset : 0
record size : 0
flags : <none>
---------------------------------------------------------------------------
-----------------------
Restored /subtest3 worked fine with
/sbin/vrestore -f /dev/rmt1h -x /subtest3
---------------------------------------------------------------------------
----------------------
Received on Fri Jan 23 1998 - 23:09:30 NZDT