Operating System - HP-UX
1837113 Members
2464 Online
110112 Solutions
New Discussion

Hard Disk failed data Recover

 
SOLVED
Go to solution
tareq_2
Regular Advisor

Hard Disk failed data Recover

hi there
i have hp 9000 server rp 7420 hp_ux with oracle 10g installed in this server i have two hard drive in my server the first one i use it for the file system and the other one for oracle /u01 and /u02, my problem is in the second hard drive i was make vg01 in this drive and make 2 LV and mount this LV to the oracle /u01 and /u02 and every thing is good but yesterday in the morning the oracle not work, i have opend SAM and go to the hard drive section and i have not found the VG01 and when i try to make new vg in the drive its failed , i am in not good situation i have sensitive data in this drive no backup just two dump files in /u02 and i cannot see it what i can do please help me is there any application can recover my data.
any help please
thanks
16 REPLIES 16
Torsten.
Acclaimed Contributor
Solution

Re: Hard Disk failed data Recover

Sounds like a dead disk, see

When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf


No backup?

This is a PEBKAC situation, sorry.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Kapil Jha
Honored Contributor

Re: Hard Disk failed data Recover

hmmm well you really in bad situation, when u say sensitive data you should have regular backup.

Well what does
#vgdisplay -v vg01

what does ioscan -fnC disk says does the disk appears in CLAIMED or NO_HW state.

Well very less chances from what you described
you may try to reinsert the disk or reboot the servers as last option.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
tareq_2
Regular Advisor

Re: Hard Disk failed data Recover

hi there
i can see the hard drive as hardware in the ioscan
and i can see the hard drive when i run the command diskinfo
but no vg and no LV
thanks
johnsonpk
Honored Contributor

Re: Hard Disk failed data Recover

Hi Tareq,

As Kapil said , did you run vgdisplay command ?

can you post the output of below commands ?

#strings /etc/lvmtab*

#vgdisplay -v

check dmesg for any vg/LVM related error
#dmesg

regards!
Johnson
tareq_2
Regular Advisor

Re: Hard Disk failed data Recover

hi
the hard drive is not appear in the /etc/lvmtab and in the vgdisplay
i can see it in /dev/dsk/c3t6d0
johnsonpk
Honored Contributor

Re: Hard Disk failed data Recover

what is showing there ??

is vg01 listed in lvmtab ??
what does vgdisplay says??

tareq_2
Regular Advisor

Re: Hard Disk failed data Recover

the vg01 is not listed in the lvmtab
johnsonpk
Honored Contributor

Re: Hard Disk failed data Recover

>>when i try to make new vg in the drive its failed

what was the error message??

what is the o/s version ? is it 11.31 ? if so you may need to check /etc/lvmtab_p also .

have you tried recreating lvmtab ?if not try the below steps

# mv /etc/lvmtab /etc/lvmtab_backup
#vgscan

# vgdisplay
#strings /etc/lvmtab* and post the outputs ..


regards!
johnson
Hakki Aydin Ucar
Honored Contributor

Re: Hard Disk failed data Recover

hi,
in addition you can do the following from another post:

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1312652
Akif_1
Super Advisor

Re: Hard Disk failed data Recover

Hi Tareq,

If you are not able to view newly created VG under /etc/lvmtab this is an area of concern.

so first you take a backup of old /etc/lvmtab

and scan it for new changes . Hope for the best .


Follow below action plan as advice by our colleague.


# cp /etc/lvmtab /etc/lvmtab_backup
#vgscan -a
#strings /etc/lvmtab* and post the outputs ..


Rgd's
T(ogether) E(very one) A(chive) M(ore)
Enzo Genuardi
Advisor

Re: Hard Disk failed data Recover

Hi Tareq,

If the Akif method doesn't work, try to do first a:
# pvdisplay -l /dev/dsk/c3t6d0
If you have a HPUX 11iv1 or 11iv2, you may need to add some patch, unless it should report LVM_Disk=yes! In that case you could try to:
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgchgid /dev/dsk/c3t6d0
# vgimport -v vg01 /dev/dsk/c3t6d0
# vgchange -a vg01
# for x in /dev/vg01/lvol*
> do fsck -y $x
> done

Hope it will help!
Cheers.
tareq_2
Regular Advisor

Re: Hard Disk failed data Recover

hi Enzo
i have hp-ux 11i v1
what is the name of the patch what i need.
and i cannot understand the last two lines of your commands
thanks for help
johnsonpk
Honored Contributor

Re: Hard Disk failed data Recover

for x in /dev/vg01/lvol*
> do fsck -y $x
> done

above is a script to do fsck of lvs in the volume group vg01


By the way , you were successful in recreating lvmtab ?

tareq_2
Regular Advisor

Re: Hard Disk failed data Recover

hi john
when i try to create the lvmtab there is no anything about vg01 they tell me something like there is no vg01 or cannot find the vg01
thanks
johnsonpk
Honored Contributor

Re: Hard Disk failed data Recover

I guess there is some dark areas still ,

for better troubleshooting and to pin point exact problem ,you may think of providing screenshot / output (obviously it is your wish)


regards!
johnson
tareq_2
Regular Advisor

Re: Hard Disk failed data Recover

thnx for all