Operating System - HP-UX
1834459 Members
3245 Online
110067 Solutions
New Discussion

Re: Mirroring problem across PVG

 
Akram Shaik
Frequent Advisor

Mirroring problem across PVG

Dears,

I have a situation here...

We have two PVG's[PVG0 and PVG1]..What has happened is, due to some mistake a logical volume's mirror has been placed in same PVG...

PV Name LE on PV PE on PV
/dev/dsk/c3t4d6 529 529------>PVG1
/dev/dsk/c6t3d6 721 721------>PVG0
/dev/dsk/c3t4d7 1250 1250----->PVG1

Now I need to take some corrective actions... Put back the Mirror copy correctly in two different PVG's.
NOTE:There are free disk available in PVG0.

This is a running production environment and I need to do it online..

Please suggest a workaround...

Thanks for all your help.
when everyting is coming your way then you are in the wrong lane
2 REPLIES 2
Patrick Wallek
Honored Contributor

Re: Mirroring problem across PVG

Have a look at the pvmove command and see if it fits your needs.

The other option is to lvreduce the mirror and then lvextend to rebuild it. You could also set PVG-strict allocation to prevent this from happening in the future.

# lvchange -s g /dev/vg??/lvol?
Sandman!
Honored Contributor

Re: Mirroring problem across PVG

Could you post (preferably attach ) the output of "vgdisplay -v VG" on that VG as well as an "lvdisplay -v lvol" on the LVOL you are trying to do this on.