Can ufsdump create files that have a .vtoc and .dmp extension?


 
Thread Tools Search this Thread
Operating Systems Solaris Can ufsdump create files that have a .vtoc and .dmp extension?
# 15  
Old 08-29-2016
Good suggestion.... I was able to read the file list and there were only one directory in partition3.dmp. It threw an error that partial block read was: 53247 should be 64512. I had the same error when I extracted it. When I tried to see what was in the directory I get an error that the directory doesn't exist.


Code:
# ufsrestore xf /a/usr/home/partition3.dmp
partial block read: 53247 should be 64512
abort? [yn] n
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #: 0
Volume numbers are positive numerics
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #: 0
Volume numbers are positive numerics
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #: 1
set owner/mode for '.'? [yn] n
# ls
server     lost+found
# cd server
server: does not exist
# cd /server
/server: does not exist
# ls
server     lost+found
# cd /server
/server: does not exist




Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 08-29-2016 at 12:01 PM.. Reason: Added CODE tags.
# 16  
Old 08-29-2016
Can you do a

Code:
ls -l

on that directory to see exactly what the file 'server' is. Perhaps it's a file and not a directory. That will also show its size.

Can you try:

Code:
 
 ufsrestore -ivf <dumpfile path>

in which i=interactive just to see if that tells us anything. Try it on both (or even all files). You could also add the 'd' switch (d=debug on).
So

Code:
 
 ufsrestore -idvf <dumpfile path>

I don't have a SPARC system here right now to test so some of that may not work.

---------- Post updated at 05:05 PM ---------- Previous update was at 04:28 PM ----------

In case these files were originally on a tape, you might also try:

Code:
ufsrestore tvaf <part0 vtoc file> <part0 dump file>

If I'm right in guessing that your .vtoc files are actually dump-table-of-contents files then that might tell you something.

Nothing to lose so let's try everything.
# 17  
Old 08-29-2016
Debug Mode

Well thats cool. I found out the block size is 126.

Partition3.dmp tried to dump on a drive that doesn't exist on this system (c1t0d0s3).

Code:
# ls -l
total 18
lrwxrwxrwx   1 root     other         14 Jan  6 09:44 server -> /space/server
drwx------   2 root     root        8192 Jan  1 11:06 lost+found

Code:
# ufsrestore -idvf /a/usr/home/partition3.dmp
Verify volume and initialize maps
Media block size is 126
Volume header begins with record 1
Dump   date: Sun Nov 22 11:27:01 2015
Dumped from: the epoch
Level 0 dump of /home on ncciris:/dev/dsk/c1t0d0s3
Label: none
maxino = 4194305
Remove mask header
File continuation header, ino 2
Dump mask header
partial block read: 53247 should be 64512
abort? [yn] n
File continuation header, ino 2
Extract directories from tape
File header, ino 2 at record 21
Initialize symbol table.
got word `/usr/bin/more'

Code:
# ufsrestore -idvf /a/usr/home/partition0.dmp
Verify volume and initialize maps
Media block size is 126
Volume header begins with record 1
Dump   date: Sun Nov 22 12:32:33 2015
Dumped from: the epoch
Level 0 dump of / on ncciris:/dev/dsk/c1t0d0s0
Label: none
maxino = 1818625
readhdr fails at 223 blocks
Remove mask header; predicted 222 blocks, got 44169 blocks
File continuation header, ino 18192; predicted 512 blocks, got 221720 blocks
resync restore, skipped 265154 blocks
Cannot find file dump list

Code:
# ufsrestore -idvf /a/usr/home/partition0.vtoc
Verify volume and initialize maps
Media block size is 126
Volume header begins with record 1
Dump   date: Sun Nov 22 12:32:33 2015
Dumped from: the epoch
Level 0 dump of /home on ncciris:/dev/dsk/c1t0d0s3
Label: none
maxino = 4194305
Remove mask header
File continuation header, ino 2
Dump mask header
partial block read: 53247 should be 64512
abort? [yn] n
File continuation header, ino 2
Extract directories from tape
File header, ino 2 at record 21
Initialize symbol table.
got word `/usr/bin/more'

Code:
# ufsrestore -idvf /a/usr/home/partition0.dmp
Verify volume and initialize maps
Media block size is 126
Volume header begins with record 1
Dump   date: Sun Nov 22 12:32:33 2015
Dumped from: the epoch
Level 0 dump of / on ncciris:/dev/dsk/c1t0d0s0
Label: none
maxino = 1818625
readhdr fails at 223 blocks
Remove mask header; predicted 222 blocks, got 44169 blocks
File continuation header, ino 18192; predicted 512 blocks, got 221720 blocks
resync restore, skipped 265154 blocks
Cannot find file dump list

I'm not sure what it is looking for when I try to dump the .vtoc files. I had to interrupt just to get back to the prompt.

Code:
# ufsrestore -idvf /a/usr/home/partition0.vtoc
Verify volume and initialize maps
Media block size is 126
Volume header begins with record 1
Dump   date: Sun Nov 22 12:32:33 2015
Dumped from: the epoch
Level 0 dump of / on ncciris:/dev/dsk/c1t0d0s0
Label: none
maxino = 1818625
readhdr fails at 223 blocks
partial block read: 31210 should be 64512
abort? [yn] n
Mount volume 2
then enter volume name (default: /a/usr/home/partition0.vtoc)
Volume header begins with record 1
Wrong volume (1)
Mount volume 2
then enter volume name (default: /a/usr/home/partition0.vtoc) mount
Cannot open mount
Mount volume 2
then enter volume name (default: mount) /a/usr/home/partition3.vtoc
Volume header begins with record 1
Wrong volume (1)
Mount volume 2
then enter volume name (default: /a/usr/home/partition3.vtoc) /a/usr/home/partition3.dmp
Volume header begins with record 1
Wrong volume (1)
Mount volume 2
then enter volume name (default: /a/usr/home/partition3.dmp) ^Cufsrestore interrupted, continue? [yn] n

Moderator's Comments:
Mod Comment
Please wrap all code, files, input & output/errors in CODE tags.
It makes it far easier to read and preserves multiple spaces for indenting or fixed width data.

Last edited by rbatte1; 08-30-2016 at 04:53 AM.. Reason: Adjusted CODE tags to include the output/errors
# 18  
Old 08-30-2016
I think that a 126 block factor means that the dump was originally sent to a cartridge drive and/or was written to disk in cartridge format (using the 'c' switch). If that's right it begs the question whether there was more than one tape volume for either or both part0 and part3?

Anyway, more things to try with our new found information:

(I'm still going to assume that your .vtoc files are actually dump archives)

Code:
 
 ufsrestore tvaf /a/usr/home/partition0.vtoc /a/usr/home/partition0.dmp
  
 ufsrestore tvcaf /a/usr/home/partition0.vtoc /a/usr/home/partition0.dmp
  
 ufsrestore tvbaf 126 /a/usr/home/partition0.vtoc /a/usr/home/partition0.dmp
  
 ufsrestore tvcf /a/usr/home/partition0.dmp
  
 ufsrestore tvbf 126 /a/usr/home/partition0.dmp

You could also try all of the above on partition3 stuff.
# 19  
Old 09-08-2016
Thank you

Hickd8,

I tried all of your recommendations to no avail.I think the backups might be corrupted. I have an alternative solution now that doesn't involve restoring the backup files. I am just going to proceed with that. Again, thank you for all your help and patience.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash to create sub directories from specific file extension

In the bash below I am trying to create sub-directories inside a directory from files with specific .bam extensions. There may be more then one $RDIR ing the directory and the .bam file(s) are trimmed (removing the extension and IonCode_0000_) and the result is the folder name that is saved in... (2 Replies)
Discussion started by: cmccabe
2 Replies

2. UNIX for Dummies Questions & Answers

Display the .csv extension files based on .done extension fine

Hi All, I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing. 1.I need to display the .done files from the directory. 2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory ... (2 Replies)
Discussion started by: girija.g6
2 Replies

3. Shell Programming and Scripting

Python - glob () - How to grep same files with different extension files

Hi I Have a directory and i have some files below abc.txt abc.gif gtee.txt ghod.pid umni.log unmi.tar How can use glob function to grep abc files , i have created a variable "text" and i assigned value as "abc", please suggest me how can we use glob.glob( ) to get the output as below... (2 Replies)
Discussion started by: kumar85shiv
2 Replies

4. UNIX Desktop Questions & Answers

Problem with deleting .dmp file

Hi, everybody! I have a big problem. I don't understand Unix, but I work as a system administrator, and sometimes I make some data exports and I have to delete old .dmp files, but today I had a mistake, I wrote rm * 909* This is a part of my folder contents in unix before deleting drwxrwxr-x 2... (4 Replies)
Discussion started by: susan12
4 Replies

5. UNIX for Dummies Questions & Answers

How to list files with no extension together with *.prog files?

Hi, I know that to list files with no extension, we can use.. ls -1 | grep -v "\." And to list .prog files, we can use.. ls -1 *.prog or ls -1 | grep '.prog$' (4 Replies)
Discussion started by: adshocker
4 Replies

6. Shell Programming and Scripting

Script to create EVIM template with SAS extension

I write lots of SAS programs and would like to create a script that allows me to have a template each time I create a new program file. Specs: I use EVIM for my editor. I run SAS in batch mode. We use RedHat 6. I don't use c shell. I want a script that will do the following: >... (3 Replies)
Discussion started by: starbecks
3 Replies

7. Solaris

Configure Veritas DMP

I am looking forward to configure Veritas DMP on Solaris-10. All pointers appreciated. Thanks, (3 Replies)
Discussion started by: menonk
3 Replies

8. Homework & Coursework Questions

Create file and then change the extension case.

Interpreter should be bash. 1. The problem statement, all variables and given/known data: I need to make a file (myText.txt or song.mp3 or cloud.tar.gz or whatever) and then change the extension to (myText.TXT , song.MP3, cloud.TAR.GZ). It would be good if I can add all information in... (4 Replies)
Discussion started by: Kdenmen
4 Replies

9. Linux

Dmp

hi, anyone know how to enable dynamic mutipathing under redhat AS in a SAN-enviroment? thx a lot (1 Reply)
Discussion started by: pressy
1 Replies

10. Solaris

exporting a dmp file (oracle)from unix

i want to export a database (full schema) so that I can import the database to a windows 2000 server. The database is sitting on a unix-sun solaris box ver 8.. What are the commands... I am a bit rusty at unix at the moment! Cheers E (4 Replies)
Discussion started by: etravels
4 Replies
Login or Register to Ask a Question