Recover data from a drive

Posted on 2013-09-18
Medium Priority
Last Modified: 2013-10-17
Running HP-UX 11.  I have an 18 GB logical volume that contained two 9 GB physical volumes (not mirrored).  This file system contained ascii data files of data that was archived and purged from a progress database.  The first drive in this volume failed.  The majority of data is recoverable from a backup.  However, there was one folder that was not backed up.  

I forced the volume group to be active.  I obviously can't mount the "good" disk in the logical volume by itself, but I used the "dd" command to dump the data into a file on another file system.  If I use the "string" command on the dump file, I can see the data that I'm looking for.   My question is, is there a way, either from the binary dump file or from the physical volume itself, to restore the data from that drive with the directory structures in-tact?  All I can see in the binary dump file is the file contents.  No directory names or file names.

I just want to recover any directories, sub-directories, and files that exist on that particular drive.

Question by:AEShier
1 Comment
LVL 21

Accepted Solution

tfewster earned 2000 total points
ID: 39507012
I can't see the dump being much use, as it's just the contents of a bunch of blocks, and without the inode table to say which blocks belong together it's a fiendish jigsaw.

If you have a replacement disk for the bad dive, you should be able to get the lvol mounted:

Write the LVM info to the replacement disk (recreates the lvol structures on the replacement disk)
# vgcfgrestore –n <vgname> /dev/rdsk/cXtYdZ
# vgchange -a y <vgname>
Don't bother trying to fsck the lvol. It won't succeed, and could trash some of the "recoverable" files.
# mount -o ro -o ioerror=wdisable <lvol> /recovery

If you're lucky enough that the inode table and all your folder contents are on the good disk, you should be able to get to it, though if a file was spread over the 2 disks it will be unreadable via the filesystem and you'll have to go back to the jigsaw

Other data recovery suggestions (though probably not much use here):

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question