Operating System - HP-UX
1824360 Members
3593 Online
109669 Solutions
New Discussion юеВ

Logical Volume need to recover

 
SOLVED
Go to solution
Arockiasamy
Advisor

Logical Volume need to recover

Hello Everybody,

We have one HP R-9000, D390 server with HPUX B11.00,
its having 2 internal HDD & one external stotage having 2 HDD ( 2*36GB).
file system crashed due to power problem.
So, we need to reload the system.
But, the thing we have the data in the external storage. I don't have lvmtab file.

Before File system crash, 2 HDD created as a PV and thats were in vg02 having one logical volume lvol0.
mounted as /oradb.

I need the data which is in the /oradb.

I've reloaded the OS.

How to recover? pleaes help me shortly...
4 REPLIES 4
Suraj K Sankari
Honored Contributor
Solution

Re: Logical Volume need to recover

Hi,

Do you have any bakcup ?
do you have any old nikel output ?
if yes there you can find lvmtab

Suraj
singh sanjeev
Trusted Contributor

Re: Logical Volume need to recover

check for old vgmapfile in /etc/lvmconf.

where u can find the vg02.mafile and trying doing vgimport to re-create the lv
Sanjeev Singh
Arockiasamy
Advisor

Re: Logical Volume need to recover

Thank U for your reply.
But I got the solution.

1. mkdir /dev/vg02 ; cd /dev/vg02
2. mknod group c 64 0x010000
3. vgscan -v
4. vgimport -v vg02 /dev/dsk/c0t0d0 /dev/dsk/c0t1d0
5. vgchange -a y vg02
6. mkdir /oradb
7. mount /dev/vg02/lvol1 /oradb
8. edit the /etc/fstab ( take backup also )

No data lose. i got full data.
Victor Fridyev
Honored Contributor

Re: Logical Volume need to recover

Hi,

Try this:

1. Backup /etc/lvmtab as: mv /etc/lvmtab /etc/lvmtab.good
vgscan

2.If this procedure does not find vg on the external disks, do the following:

ioscan -kfnCdisk and find your external disks
mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x020000
vgimport /dev/vg02 /dev/dsk/xxx /dev/dsk/yyy

where yyy and xxx are actual disk names.

vgchange -a y vg02
mount /dev/vg02/lvol1 /oradb

HTH
Entities are not to be multiplied beyond necessity - RTFM