Operating System - HP-UX
1833564 Members
3138 Online
110061 Solutions
New Discussion

Re: How to retrieve data from old disk ( VG00)

 
bhragha
Advisor

How to retrieve data from old disk ( VG00)

Hi I have strange problem, due to some reason my system was not booting. I re-installed OS on the second hard disk, which was empty I wanted to retrieve the data from first hard disk.. I referred couple of postings at forum "http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1239272405835+28353475&threadId=147260"
But I am getting below problem.

When I do
a.) vgimport /dev/vg04 /dev/dsk/c2t0d0 , I am getting error " Unable to read the physical volume"
b.) when I try to create vgcreate /dev/dsk/c2t0d0" I am getting error "device busy" , I checked lvmtab, which is not having entry for this device, and also minor number is unique.
c.) o/p pvdisplay is as below..
# pvdisplay -l /dev/dsk/c2t0d0
/dev/dsk/c2t0d0:LVM_Disk=yes
d.) o/p from hpsmh is as below
=======================================
# /usr/sam/lbin/disklist -p -c /opt/hpsmh/session/0001/fs -y
Fri Apr 10 04:20:52 2009
64000/0xfa00/0x1|0/1/1/0.1.0;|/dev/dsk/c2t1d0;|LVM|vg00|65552|1|0|140014|512|286749488|HP 146 GMAP3147NC|online
64000/0xfa00/0x2|0/1/1/0.0.0;|/dev/dsk/c2t0d0;|LVM|-|4|1|0|140014|512|286749488|HP 146 GMAP3147NC|online
64000/0xfa00/0x3|0/0/3/0.0.0.0;|/dev/dsk/c0t0d0;|unused|-|0|1|0|0|0|0|TEAC DV-28E-B|online
#
=================================================

So how to resolve this problem how can I retrieve data from that disk. ??? please help me..
5 REPLIES 5
Ganesan R
Honored Contributor

Re: How to retrieve data from old disk ( VG00)

Hi Bhragha,

Not sure what are the commands you have executed.

Try these commands.

#mkdir /dev/vg00old
#mknod /dev/vg00old/group c 64 0x040000
#vgimport /dev/vg00old /dev/dsk/c2t0d0
#vgchange -q n -a y /dev/vg00old
#vgdisplay vg00old
Best wishes,

Ganesh.
bhragha
Advisor

Re: How to retrieve data from old disk ( VG00)

Hi Ganesan,
I followed the same step but at vgimport it says "Unable to read the physical volume"

=====================================
# vgimport /dev/vg00old /dev/dsk/c2t0d0
vgimport: Unable to read the physical volume.#
======================================
This is the reason just to confirm I executed command "pvdisplay" it says LVM disk

==================================
# pvdisplay -l /dev/dsk/c2t0d0
/dev/dsk/c2t0d0:LVM_Disk=yes
#
==================================
Ganesan R
Honored Contributor

Re: How to retrieve data from old disk ( VG00)

Hi Again,

That means there is no valid LVM headers on the disk. It could have been corrupted.
Best wishes,

Ganesh.
Sivakumar MJ._1
Respected Contributor

Re: How to retrieve data from old disk ( VG00)

Sivakumar MJ._1
Respected Contributor

Re: How to retrieve data from old disk ( VG00)

U can try running the command pvck to find out and repair problems in the LVM data structures of the physical volumes. Use only the character device file name of the physical volume.

# /usr/sbin/pvck -y