Operating System - HP-UX
1826177 Members
2279 Online
109691 Solutions
New Discussion

How to recover data from missing LV

 
Upul Edirisinghe
Contributor

How to recover data from missing LV

I have 3 disks belong to a VG and same LV.
Now there is an error saying "missing LV". Is it possible to recover data by creating a new VG ?
Or Will this work for me?
vgchid /dev/rdsk/c1t12d0 /dev/rdsk/c1t13d0 /dev/rdsk/c1t14d0
mkdir /dev/vgnew
mknod /dev/vgnew/group c 64 0x020000
vgimport vgnew /dev/dsk/c1t12d0 /dev/dsk/c1t13d0 /dev/dsk/c1t14d0
3 REPLIES 3
Printaporn_1
Esteemed Contributor

Re: How to recover data from missing LV

Hi Upul,

The description of problem is not too clear then
plese describe what command generate the error and what is the complete error ?
may be start from
#vgdisplay -v

does all logical volumn there ?
any error message ?

Regards,


enjoy any little thing in my life
Tony Watts
Advisor

Re: How to recover data from missing LV

Upal,
I had a similar problem before, I had 3 2gigs with 3 lv's in 1 vg, running progress with 4 very large databases, then one morning bam! 1 lv was gone...with no apparent reason, come to fing out, 1 of the drives was bad, hopefully this is not your problem also, but it could be worth the investigation to find out...if it is, your data is probably gone, if not I dont know what else info to offer.Hope this helps...Tony
Cheryl Griffin
Honored Contributor

Re: How to recover data from missing LV

Change directories into the volume group. Use ll to list the logical volumes there. Make sure that for every lvol, there is a corresponding rlvol. While you're at it verify the owner/group/permissions.

If anything was accidently removed, try using mknod to recreate the file.

If you provide us more information as to what is missing, we can provide more details as to the right solution.
"Downtime is a Crime."