Operating System - HP-UX
1825774 Members
2117 Online
109687 Solutions
New Discussion

Hardware path changing for disks

 
SOLVED
Go to solution
Coolmar
Esteemed Contributor

Hardware path changing for disks

Hi,

We have a server connected to the SAN. The cables have to be moved around and the disk will all get a new hardware path. I will be able to see the disk with an ioscan, but how can I get all my lv's back? Do I simply do a vgimport? Can someone tell me step by step how to recover after the hardware path changes on the disks. The root disk will be fine...it is the data disks (vg01, vg02, etc).
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: Hardware path changing for disks

mv /etc/lvmtab /etc/lvmtab.prev
vgscan -a

I think that ought to find them all.


Pete

Pete
Prashant Zanwar_4
Respected Contributor

Re: Hardware path changing for disks

Your thinking is right..
you will need to create a map of what is going to change.

Old Paths vs New Paths..
Once you new device names, export volume groups, and import the same with new paths in place..

vxexport -v -p -m -f vgname
vgexport vgname
vgimport -v -m mapfile vgname

You can create outfile for reference..

Regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Hardware path changing for disks

You are going to need to do an ioscan -fn and an insf before doing the vgscan otherwise the device nodes will not be available.
If it ain't broke, I can fix that.