Operating System - HP-UX
1836931 Members
3261 Online
110111 Solutions
New Discussion

Re: reduce/remove mirroring, then re-mirroring

 
SOLVED
Go to solution
Joe Profaizer
Super Advisor

reduce/remove mirroring, then re-mirroring

I found 45 pe's on one of my disks that is 1 of 2 disks in a mirror set labeled as:
3920 current ??? 0012

I want to reduce the mirror, vgreduce the volume, then vgextend and lvextend it back to the mirror set. I can lvreduce just fine (and it leaves the pe's as ???). But I can't vgreduce the volume due to the following message (probably because of the ??? pe's).
vgreduce: Physical volume "/dev/dsk/c1t2d0" could not be removed since some of i
ts
physical extents are still in use.

What should I do to vgreduce then remirror to get all the pes to match up correctly?

The reason I want to remirror is that the pes do not exactly match on both drives.

Thanks,

..Joe
6 REPLIES 6
Martin Johnson
Honored Contributor

Re: reduce/remove mirroring, then re-mirroring

do a "pvdisplay -v /dev/dsk/c1t2d0" to determine which lvols are still on the disk and use pvmove to move them to the other disk.

HTH
Marty
S.K. Chan
Honored Contributor

Re: reduce/remove mirroring, then re-mirroring

Does the "Status" column says "stale" or "current" ? If it says "current" we can continue with this but if it says stale you're probably looking at a potential disk failure in the future even though you re-mirrored them. The error you're getting suggests that c1t2d0 may have other extents still in use in other logical volume, that's why you can't vgreduce it. Find out if c1t2d0 is being used by more than one logical volume.
# pvdisplay -v /dev/dsk/c1t2d0
While you're at it can you also provide these output ..
# strings /etc/lvmtab
# vgdisplay -v /dev/vgXX
==> of the VG where c1t2d0 is used
# lvdisplay -v /dev/vgXX/lvolY
==> of all LVs in vgXX
S.K. Chan
Honored Contributor

Re: reduce/remove mirroring, then re-mirroring

I'm sorry .. it says "current" of course ..!!
Joe Profaizer
Super Advisor

Re: reduce/remove mirroring, then re-mirroring

Thanks much! Now, how can I remirror the disk so that the pe #s match and are the exact same on both disks. I know I could do a remirror now, but some volumes are not extended contiguously on my source disk (when I remirror the target disk will use contiguous extents). Or does this even matter. I'm just trying to match the disks up exactly alike.

..Joe
James R. Ferguson
Acclaimed Contributor

Re: reduce/remove mirroring, then re-mirroring

Hi Joe:

Matching the PE numbers on the primary and on the mirror disk is of no consequence. It doesn't matter as you concluded. The important thing (which is the default) is to always force strict allocation such that mirrored extents are not on the same physical disk [otherwise, why mirror? ;-)].

Regards!

...JRF...