System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to restore VG after a fresh OS reinstallation in Linux in SAN environment

 
Md. Minhaz Khan
Super Advisor

How to restore VG after a fresh OS reinstallation in Linux in SAN environment

Dear All
I have a Red Hat Enterprise Linux AS release 4 (Nahant Update 8).For some serious reason i have reinstalled OS.My volume groups(vg_data) is configured in EMC(DMX-4) devices , EMC said that the devices has the data. Before OS re installation i have took backup of "/etc/lvm" directory in my Laptop. Can any one help me how could i restore my VG(vg_data) with the EMC Lun that was previously assigned in VG(vg_data).

I am used to in HP-UX.In HP-UX after re installation if i vgimport the map file that was previously taken using vgexport, My VG was back. But what is the procedure in Linux.

Please help me.

Thanks in Advance
Minhaz



4 REPLIES
Matti_Kurkela
Honored Contributor

Re: How to restore VG after a fresh OS reinstallation in Linux in SAN environment

In Linux 2.6 kernel series (including RHEL 4 and newer) vgimport is not needed.

Just run "vgscan -vv", then activate the VG.

The LV devices will be created when you activate the VG. This is different from HP-UX, where the devices will be created at vgimport time.

MK
MK
Steven E. Protter
Exalted Contributor

Re: How to restore VG after a fresh OS reinstallation in Linux in SAN environment

Shalom Minhaz,

If you did a vgexport, the procedure on Linux is very much like that in HP-UX.

I almost never have to look up the man page on Linux LVM in order to perform the same tasks I learned years ago on HP-UX.

Some examples and man pages:
http://linux.about.com/library/cmd/blcmdl8_vgimport.htm

http://www.linux.org/docs/ldp/howto/LVM-HOWTO/recipemovevgtonewsys.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Md. Minhaz Khan
Super Advisor

Re: How to restore VG after a fresh OS reinstallation in Linux in SAN environment

Dear all

Can any one help me how can i will restore my VG with the LUN assigned from DMX4 after a fresh OS re installation . I have already took backup "/etc/lvm" directory in my Laptop of the Previous OS.

Can any one give me a procedure/action plan :.......



Thanks
Minhaz
Md. Minhaz Khan
Super Advisor

Re: How to restore VG after a fresh OS reinstallation in Linux in SAN environment

Problem was solved. Thanks a lot to help me.

Thanks
Minhaz