Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

So mirroring is bad:

0:root@SERVER:/root # lslv -m hd2
hd2:/usr
LP    PP1  PV1               PP2  PV2               PP3  PV3
0001  0209 hdisk30           0322 hdisk32           
0002  0210 hdisk30           0323 hdisk33           
0003  0211 hdisk30           0323 hdisk32           
0004  0212 hdisk30           0324 hdisk33           
0005  0213 hdisk30           0324 hdisk32           
0006  0214 hdisk30           0325 hdisk33           
0007  0215 hdisk30           0325 hdisk32           
0008  0216 hdisk30           0326 hdisk33           
0009  0217 hdisk30           0326 hdisk32           
0010  0218 hdisk30           0327 hdisk33           
0011  0219 hdisk30           0327 hdisk32           
0012  0220 hdisk30           0328 hdisk33           
0013  0221 hdisk30           0328 hdisk32           
0014  0222 hdisk30           0329 hdisk33           
0015  0223 hdisk30           0329 hdisk32           
0016  0224 hdisk30           0330 hdisk33           
0017  0225 hdisk30           0330 hdisk32           
0018  0226 hdisk30           0331 hdisk33           
0019  0227 hdisk30           0331 hdisk32           
0020  0228 hdisk30           0332 hdisk33           
0021  0229 hdisk30           0332 hdisk32           
0022  0230 hdisk30           0333 hdisk33           
0023  0231 hdisk30           0333 hdisk32           
0024  0355 hdisk30           0338 hdisk32           
0025  0356 hdisk30           0339 hdisk32           
0026  0357 hdisk30           0340 hdisk32           
0027  0001 hdisk32           0307 hdisk8            
0028  0206 hdisk8            0305 hdisk43           
0029  0207 hdisk8            0306 hdisk43           
0:root@SERVER:/root # 

How can I fix this? I know that it's just a few steps, but I can't google it :\ [break the mirror, then move the pp from the wrong this to a good one then then "unbreak" the mirror? how?]

oslevel: 6100-05-01-1016 AIX

share|improve this question
add comment

3 Answers

I would:

  1. Build a third, clean mirror

  2. Remove the two original mirrors

  3. Add up with a second mirror again

It has been a long time I did LVs with AIX. Is there something similar to linux/lvm2 pvmove there?

share|improve this answer
add comment

Firstly, why is your mirroring bad? I don't see anything specifically bad in the output you've listed.

However, the command you want is migratelp which allows you to move logical partitions anywhere you like.

If you want to break the mirror, just rmlvcopy and then use either migratelp or at that stage, migratepv to move stuff around. But I would just use migratelp.

share|improve this answer
    
on COPY1 there is a hdisk32 that is on a wrong side –  LanceBaynes Dec 14 '11 at 16:22
    
If the disk failed, the mirror would continue to work, I'm not sure why you think it's bad. Untidy maybe, but not bad. Anyway, migratelp will allow you to tidy it up, as per my answer. Don't forget, AIX LVM will happily put mirror LP's on the same physical disk if you like, it's not wrong. –  EightBitTony Dec 14 '11 at 16:58
1  
Each LP appears to have two PV associated with it.There is no problems with your mirroring. –  mattcaffeine Dec 14 '11 at 21:21
add comment
up vote -1 down vote accepted

COMMAND LV LP COPYX HDISK

migratelp hd2/27/1 hdisk30

so it was only 1 command to put the LP on the COPY1 to the good hdisk.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.