cancel
Showing results for 
Search instead for 
Did you mean: 

recovering Data

 
SOLVED
Go to solution
himacs
Super Advisor

recovering Data

Hi Admins,

Let me tell the scenario..

One of my server is down..and has 1HDD with some data..
i want to recover the data
since server is down , vgexport/import is not possible..

how can i recover the data with connecting to another server..

Actually this is not happened,one of my friend asked the doubt..


Regards,
himacs

12 REPLIES
Pete Randall
Outstanding Contributor

Re: recovering Data

If you can attach the HDD to another server, it can be vgimported - there is no need to vgexport prior to vgimport.


Pete

Pete
Torsten.
Acclaimed Contributor

Re: recovering Data

Was the disk configured with LVM? Was this disk the only member of a certain VG? If yes, connect it to another server and use vgimport.

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!   
himacs
Super Advisor

Re: recovering Data

Hi Pete,Torsten

Thanx for the reply..


<>

Plz tell me the exact steps to be performed..

If that HDD has VG00 and existing one also having VG00..how to proceed..


regards
himacs

Ganesan R
Honored Contributor

Re: recovering Data

Hi Himacs,

If you are connecting the HDD to another server, the only concern is device file get changed.

What you need to do is, boot the server into maintanance mode, export the root VG and reimport it, which will import the VG with new device files.
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: recovering Data

Hi Again,

Look at this document. "Appendix J" gives the exact steps you need to perform for this activity.

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
Best wishes,

Ganesh.
himacs
Super Advisor

Re: recovering Data


Hi Ganesan,

Thanx for the reply..

<<7.
To create the volume group and the group file to be used for the vgimport command, enter: # mkdir /dev/vg00 # mknod /dev/vg00/group c 64 0x000000

OK.. let me explain the scenario again..

The new server already has VG00..etc
I want to recover the data from HDD of old server(which is down now) with connecting to new server..I dont want to use the HDD with new server.Just i want to recover the data..
And i dont have any /etc/lvmtab details of old server.

regards
himacs
Mel Burslan
Honored Contributor
Solution

Re: recovering Data

Himacs,

No, the VG you will import does NOT have to bear the same name as it was originally named. So, your vg00 coming from the dead server can be named as any vg on the running system. Make sure the vg name/number is unique on the new and running server.

mkdir /dev/vg09 # assuming vg09 did not exist
mknod /dev/vg09/group c 64 0x090000
vgimport /dev/vg09 /dev/dsk/cXtXdX # modify cXtXdX according to your condition

since you will not have a mapfile, the logical volumes may ne named randomly but the contents of these volumes should still be in there. It is just a game og hunt and peck from this point on.
________________________________
UNIX because I majored in cryptology...
Ganesan R
Honored Contributor

Re: recovering Data

Hi Himacs,

We understood the scenerio now. You want to to connect the root HDD to another running server and want to recover the data.

1.Connect the HDD
2.#ioscan -fnC disk
3.#insf -e -v (if need)
4.#mkdir /dev/vg00old
5.#mknod /dev/vg00old/group c 64 0x090000(assuming 0x090000 not being used already)
6.#vgimport /dev/vg00old 7.#vgchange -a y /dev/vg00old
8.#vgdisplay -v /dev/vg00old
9.#mount

Hope this helps...
Best wishes,

Ganesh.
himacs
Super Advisor

Re: recovering Data


Hi Ganesan,Mel..

Thanx for ur response..

So no need to go LVM maintenance mode..

After connecting and rebooting we can perform the steps..


regards
himacs
Torsten.
Acclaimed Contributor

Re: recovering Data

Online or not - it depends on how do you connect the disk. If you need to open a SCSI bus you should do this offline.

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!   
Mel Burslan
Honored Contributor

Re: recovering Data

If you can connect the disk drive to the running server while it is running, then fine, you do not need to offline the system or go into lvm maintenance mode. But If you are going to shut the server down to attach the drive, it might be a good idea to boot into lvm maintenance mode, although, for what you are doing, it is not absolutely necessary.
________________________________
UNIX because I majored in cryptology...
himacs
Super Advisor

Re: recovering Data

Hi All,

m overhelmed with ur responses..

Thanx for the support..points assigned


regards
himacs