Operating System - HP-UX
1833552 Members
3804 Online
110061 Solutions
New Discussion

Re: how to recover data from secondary hard disk

 
SOLVED
Go to solution
Alfonso_4
Advisor

how to recover data from secondary hard disk

I have a workstation B2000 with two scsi disks and HPUX 11 installed. The first disk (the disk with the operating systems) is damaged and we could not recover it, the damage was physical. But the second one (the data disk) is in good conditions, but I don't know how to recover the data.
I can install another disk with the operating system, but how can I recover the data?
Any ideas?
I will appreciate any help.
6 REPLIES 6
James A. Donovan
Honored Contributor

Re: how to recover data from secondary hard disk

Was this second disk in a seperate volume group? If it was, there is a chance you can recover on your own.

Otherwise, tape restore, or if you're really desperate you can try a data recovery service like Ontrack: http://www.ontrack.com
Remember, wherever you go, there you are...
Steven E. Protter
Exalted Contributor

Re: how to recover data from secondary hard disk

If in a volume group.

vgexend /dev/vg00 /dev/dsk/c#t#d#

Then you can probably use dd command to copy the data to a filesystem.

If you have a recent make_tape_recovery or make_net_recovery Ignite backup, you can restore the whole system once the disk is replaced.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alfonso_4
Advisor

Re: how to recover data from secondary hard disk

What I want to do is to mount the secondary disk on another machine and copy the data, can this be done? We tried to mount the scsi disk on a linux box, but it didn't recognize the hpux partition. The primary disk is dead and we don't care about it, because it only hosts the OS.
We don´t have a backup.

Thank
Patrick Wallek
Honored Contributor
Solution

Re: how to recover data from secondary hard disk

If you replace the OS disk on this machine and get the OS reinstalled, then you can import the disk. This is assuming that the disk was its own VG.

Something like this:

# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgimport -v /dev/vg01 /dev/dsk/c?t?d?

where c?t?d? is the disks device file.

From that point you will need to make a note of the LVs that it imports (they will be of the form lvol1, lvol2, etc.) and try to mount them.

# mkdir /mount1
# mount /dev/vg01/lvol1 /mount1

And do that for each LV that is imported.

Good luck!!!
Rajeev  Shukla
Honored Contributor

Re: how to recover data from secondary hard disk

In HP you can not simply mount the disk, because you are using LVM not slicing mode like in SUN.
Ok what you can do is connect this disk to another system, and go through the following steps.
1. mkdir /dev/
2. mknod /dev//group c 64 say 0x060000
3. vgimport /dev/dsk/ /dev/
4. vgchange -a y /dev/
5. mkdir /old
make subdirectories in it and mount the lvols you have in /dev/ directory
you might have to do fsck to make the filesystem clean
Alfonso_4
Advisor

Re: how to recover data from secondary hard disk

Thanks all!