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?
# 8  
Old 08-24-2016
If you're going to provide the path to the dump archive to ufsrestore you need to tell it with the 'f' switch (which says the next field on the command line is where the dump file is).

For example:

Code:
# ufsrestore xf <dump file path>

in your case the dumpfile path will be /mnt/<whatever>.

or

Code:
 
 # ufsrestore tf <dump file path>

to list a dumpfile.

You should be able to 'cd /mnt' and then list files to check it's there okay. Then change to /a where you want to files restored to and just empty the whole dump into this directory (/a).

So yes, if you want to put the dump path on the ufsrestore command line you need to use the 'f' switch.

Last edited by hicksd8; 08-24-2016 at 01:57 PM..
This User Gave Thanks to hicksd8 For This Post:
# 9  
Old 08-24-2016
Cannot find file dump list

Have you ever seen an error like this before?
Code:
# ufsrestore tf /mnt/partition0.dmp
resync restore, skipped 265154 blocks
Cannot find file dump list

# ufsrestore xf /mnt/partition0.dmp
resync restore, skipped 265154 blocks
Cannot find file dump list

Code:
# ufsrestore xf /mnt/usr/home/partition0.dmp
resync restore, skipped 265154 blocks
Cannot find file dump list

# 10  
Old 08-25-2016
Off the top of my head, no, don't recall seeing that error. My money would be on a blocking factor issue. Firstly, I'd be inclined to try to list the dump using different blocking factors (since we don't know, or have the script that wrote out the dump file).

Use the 'b' switch to specify blocking factor and see if you can get an error free clean listing.

For example:

# ufsrestore tbf 512 /mnt/<whatever>

Try values of 512, 1024, 2048, 4096, 10240 and any other multiple of 512 you can think of.

Note: In above example putting the 'b' before the 'f' means blocking factor in first field and dumpfile path in the second field. You could swap them around if you want. Hope I've explained that okay.

Post back if any of that works. Until you can get a clean listing I wouldn't try the restore 'x' option.

---------- Post updated 25-08-16 at 09:30 AM ---------- Previous update was 24-08-16 at 07:07 PM ----------

In terms of the files they gave you it would be worth using tar to extract the SPACE.TAR to see what is contains. You can do that from single user mode. It might contain useful information about disk layout.

In terms of the .dmp files you have a partition0 and a partition3. In small solaris systems with one physical drive the vtoc is typically:

slice0 boot partition (O/S)
slice1 swap space (you need to configure some)
slice2 represents the whole drive and is not edited
slice3 first non-root partition (perhaps /u)

So the two files you have being 0 and 3 make perfect sense.

What we don't know is what the .vtoc files really are. As we agree they are too big to just contain the vtoc which would be just a few dozen bytes. So let's leave those for now.

If we are able to restore the root partition then we can get our hands on /etc/vfstab which will tell us what filesystems get mounted when the system boots. We can also have a poke about to see if we can find the script that did the backups.

Q: Are you attempting to restore the system onto new disk(s) on the same hardware? Or is it different hardware? If it's the later there will be more things to do to get the system on its feet.
# 11  
Old 08-25-2016
Thanks again for your continued help.

I tried to list the files by changing the blocking factor all the way up to 81920. For some reason it cannot find the file dump list.

Code:
# cd /mnt/
# ls
bin             etc             lost+found      platform        usbdrive
cdrom           export          mnt             proc            usr
data            home            net             sbin            var
dev             kernel          opt             space           vol
devices         lib             partition0.dmp  tmp             xfn
# ufsrestore tbf 512 /mnt/partition0.dmp
resync restore, skipped 265154 blocks
Cannot find file dump list
# ufsrestore tbf 1025 /mnt/partition0.dmp
Block size must be a positive, even integer
# ufsrestore tbf 1024 /mnt/partition0.dmp
resync restore, skipped 265154 blocks
Cannot find file dump list
# ufsrestore tbf 2048 /mnt/partition0.dmp
resync restore, skipped 265154 blocks
Cannot find file dump list
# ufsrestore tbf 4096 /mnt/partition0.dmp
resync restore, skipped 265154 blocks
Cannot find file dump list
# ufsrestore tbf 10240 /mnt/partition0.dmp
resync restore, skipped 265154 blocks
Cannot find file dump list
# ufsresore tbf 81920 /mnt/partition0.dmp
ufsresore: not found
# ufsrestore tbf 81920 /mnt/partition0/dmp
/mnt/partition0/dmp: No such file or directory
# ufsrestore tbf 81920 /mnt/partition0.dmp
resync restore, skipped 265154 blocks
Cannot find file dump list

I tried to extract the space.tar file and I got a read-only file system error. I used chmod to make everything a+w+x, but I have had that error before when booting from the CDROM in single user mode. I'm going to reboot from the HDD and extract it. I extracted it before with no issues, but I think I have since wiped that drive.

I am attempting to restore the system onto new disks on new hardware. The new hardware is supposed to be identical make/model/etc to the old. I'll post an update when I reboot and get the .tar extracted.

---------- Post updated at 09:44 AM ---------- Previous update was at 09:17 AM ----------

I extracted space.tar and it only extracted files into /space and subdirectories below it. They were user profiles/data files for the 3rd party software the server runs. Unfortunately, nothing went directly into the root directory or /etc/init.d. There was also nothing that looked like an installation/backup/.sh/ script. I'm going to give ufsrestore tbf another shot now that I'm out of read only mode.
# 12  
Old 08-25-2016
Hmmmmmm.......not being able to ufsrestore partition0 is a bit of a show stopper.

I've been looking at the file sizes that you posted again and coming to the conclusion that your .vtoc files are in fact probably archive files (dump table-of-contents) created by using the 'a' switch on the ufsdump command. If so, these should have the suffix .dtoc in my book. Mis-named by the previous sysadmin perhaps. Such files are used by ufsrestore to determine whether a file is, or is not, in a dumpfile when the restore of one file is requested (not the whole filesystem).

So how did you come by the .dmp files? Is there anyway that they could have been corrupted? Have they been ftp'd or otherwise copied from another system? Could they have been written to tape originally and subsequently 'dd' off to disk? If so, the blocking factor could be a very low number like 10.

On you post you didn't show that you tried other blocking factors like 8192, 3072, 20480 and the like. Although unlikely, any multiple of 1024 could just work.
# 13  
Old 08-26-2016
Blocking Factors

Sorry for the delayed reply. Another system failed yesterday, but at least I knew how to fix that one hahaha.

I tried every blocking factor from 512 to 10240 in 512 increments. I also tried the following ones.
1 2 4 8 10 16 32 64 128 256 512
1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216 33554432 67108864 (I ran out of buffer on the last one).

The server won't boot with the graphics card installed, so I am using putty to serial into the server. That means I cant use the up/dwn arrows to auto fill the line or back and forward to edit it. I have to hand jam each command over and over. If I had more time, I'd try every factor possible.

I am working on getting in contact with the person who backed up the system. They are not local and rarely have cell phone coverage. I'm starting to think I should just hammer down on getting ahold of him to find out exactly what he did.

The files I am trying to restore from haven't been Ftp'd. They were on the "new" systems HDD when I received it. I did FTP them off though because I wanted to have multiple backups. I haven't tried to restore from the Ftp'd copies yet.
# 14  
Old 08-27-2016
Have you tried to list the contents of partition3.dmp? This may tell us whether both .dmp files suffer from the same problem or whether you can successfully read partition3.dmp.
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