recover data

 
Deeos
Regular Advisor

recover data

Hi experts,

I have a disk , having vg01 which I have removed and inserted to another server. can it possible to recover vg01 and recover data from disk to another server?


Regards
Deeos
Deepak
4 REPLIES 4
Hein van den Heuvel
Honored Contributor

Re: recover data

You should use vgimport to tell teh new box about the new group.

Did you use vgexport or the old server?
Can you still re-connect and do the vgexport?

Yo may end up needing vgscan -v and/or mv'ing lvmtab

just google for vgexport vgscan and you find many prior writeups like

(meandering...)
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=497609

And you;ll find cheat-sheets like:
http://pbraun.nethence.com/doc/sysutils_hpux/hpux_lvm_recovery.html

good luck,
Hein
Hakki Aydin Ucar
Honored Contributor

Re: recover data

Hi,
Most suitable way to backup vg00 and restore on another server is that taking a ignite backup of vg00 and restore it on another server.
shanmuhanandam
HPE Pro

Re: recover data

Hi,

you can do it with vgimport.

1. create the group file
2. mknod /dev/vg01/group c 64 0x0y0000
3. vgimport /dev/vg01 /dev/disk/cxtydz

then check the vgdisplay, you will be able to see the vg01 information.

But incase if you mentioned any names for lv you won't get the names, it will be lvol1, lvol2 etc..

If you have the mapfile, then vgimport with the map file, then u will get full vg information

Thanks,
Shan,
I am an HPE Employee

Accept or Kudo

sahir_1
Frequent Advisor

Re: recover data

Hi,

You should have a backup of vg01. You can following steps on both server to move a vg.

from server 1:
vgchange -a n vg01
vgexport -v -m vg01.map vg01
scp vg01.map server2:/tmp (asks server2 passwd)

from server 2. after connecting disks.
mkdir /dev/vg01
mknod -c 64 group 0x010000
vgimport -v -m /tmp/vg01.map vg01
vgchange -a y
vgdisplay (check all lv's are available)
create a mount point in /etc/fstab
mount -a
restore each lvols data from backup.

Thanks
Sahir