Operating System - HP-UX
1820054 Members
3031 Online
109608 Solutions
New Discussion

Re: Change physical volume paths under a logical volume

 
SOLVED
Go to solution
David Cramblett
Occasional Advisor

Change physical volume paths under a logical volume

 

I have two HP2100 Disk Systems that had their SCSI bus ID switches set to "B" and "C".  I would like to switch the bus ID's to "A" and "B".  Doing so, of course, changes the physical volume path for those drives.  Is there a way to chnage the LVM physical volume paths of the logical volumes that reside on these disks so they will continue to operate, without any data loss?

 

3 REPLIES 3
Robert_Jewell
Honored Contributor
Solution

Re: Change physical volume paths under a logical volume

The vgexport and vgimport commands would work for you.

 

You dont mention your OS version or whether they are boot disks are not, but the following are the basic steps for non VG00 VG's on 11.11/11.23:

 

1) vgexport -s -m /VG01_MAP /dev/vg01     -->export vg01 creating a map file

2) Change disks/cards to new location (lets assume the new device is /dev/dsk/c1t5d0)

3) Bring in vg01

    mkdir /dev/vg01

    mknod /dev/vg01/group c 64 0x010000

    vgimport -s -m /VG01_MAP /dev/vg01 /dev/dsk/c1t5d0

    vgchange -a y /dev/vg01

    vgcfgbackup /dev/vg01

4) mount -a     -->or manually mount filesystems on vg01

 

-Bob

 

----------------
Was this helpful? Like this post by giving me a thumbs up below!
David Cramblett
Occasional Advisor

Re: Change physical volume paths under a logical volume

Sorry - oversight.  System is 11.11, there are 8 disks in this VG and they are not boot volumes.

 

I asume I just need to add the addiitonal disk paths into the commands?

Robert_Jewell
Honored Contributor

Re: Change physical volume paths under a logical volume

Yes, just add each PV device path that belongs to that VG to the vgimport command.

----------------
Was this helpful? Like this post by giving me a thumbs up below!