AIX mirroring repair

Hello colleagues!
One day I found that a LV was not mirrored properly.
Some manipulations were realized so the mirroring became well.
Please look jpg attached, may be it would be useful for somebody.

a bit complicated, isn't it?

migratepv hdisk3 hdisk2

then all pps are on the same hdisk

then run your mklvcopy command with

-s s
    -s Strict
            Determines the strict allocation policy. Copies of a logical partition can be allocated to share or not to share the same physical volume. The Strict variable is represented by one of the following:
s
                   Sets a super strict allocation policy, so that the partitions allocated for one mirror cannot share a physical volume with the partitions from another mirror.


if more lvs reside on this hdisks, run the migratepv command with the -l Flag, and specify your lv

cheers

May be, funksen, thank you. But I prefer to manipulate with the engaged data and not to touch the data nearby.

you touch exactly the same data with this method (running migratepv with -l lv_v60logplg),

and you need to add the superstrict mirror flag to your mklvcopy command, because not doing so, may result in the same problem you had before

mklvcopy -s s lv_v60logplg 2 hdisk3

without superstrict, aix grants all mirror pps on different hdisks, but not that mirror1 always resides on hdisk2, and mirror2 always resides on hdisk3. if you extend your lv now, copy 1 may be on hdisk3, and copy 2 may be on hdisk2

after an unmirror, you may have the same situation

1 Like

Ok, funksen, merci beaucoup.