Convert from instance store to EBS

WARNING: mismatch_cnt is not 0

I got an email regarding this issue saying something like :

 

WARNING: mismatch_cnt is not 0 on /dev/md1

The /dev/mdX can vary depending on how many raid partitions you have. This mismatch_cnt value is the value of the blocks,

that are not synchronized between RAID-1 (mirrored) drives.  On my server it looked something like :

To fix :

And after the repair is completed:

Then check to see what this returns:

LVM and Raid

Show attributes of Logical Volume:

node0001:/etc/lvm# lvdisplay
— Logical volume —
LV Name /dev/lvm1/usr
VG Name lvm1
LV UUID Be0rAE-Y3q8-1aHM-WUDN-pDXU-57B2-sNHYmg
LV Write Access read/write
LV Status available
# open 1
LV Size 4.66 GB
Current LE 1192
Segments 1
Allocation inherit
Read ahead sectors auto
– currently set to 256
Block device 253:0

— Logical volume —
LV Name /dev/lvm1/var
VG Name lvm1
LV UUID ttng8k-54zQ-Rr5M-OjlW-gopL-fPzQ-0Frd3o
LV Write Access read/write
LV Status available
# open 1
LV Size 14.90 GB
Current LE 3814
Segments 1
Allocation inherit
Read ahead sectors auto
– currently set to 256
Block device 253:1

— Logical volume —
LV Name /dev/lvm1/tmp
VG Name lvm1
LV UUID ZuhigP-u3iE-JGQn-biWR-c5It-QivP-LJqXz9
LV Write Access read/write
LV Status available
# open 1
LV Size 952.00 MB
Current LE 238
Segments 1
Allocation inherit
Read ahead sectors auto
– currently set to 256
Block device 253:2

— Logical volume —
LV Name /dev/lvm1/root
VG Name lvm1
LV UUID pF0GYz-KyhM-H9Gm-rDEs-zmo1-hyj7-I8XO74
LV Write Access read/write
LV Status available
# open 1
LV Size 46.56 GB
Current LE 11920
Segments 1
Allocation inherit
Read ahead sectors auto
– currently set to 256
Block device 253:3

— Logical volume —
LV Name /dev/lvm1/swap
VG Name lvm1
LV UUID LyLQSt-HiVw-Yh84-WB0Y-uhLI-Z0p3-3sZiBf
LV Write Access read/write
LV Status available
# open 1
LV Size 7.45 GB
Current LE 1907
Segments 1
Allocation inherit
Read ahead sectors auto
– currently set to 256
Block device 253:4

Show attributes of physical volume:

node0001:~# pvdisplay
— Physical volume —
PV Name /dev/md2
VG Name lvm1
PV Size 923.36 GB / not usable 896.00 KB
Allocatable yes
PE Size (KByte) 4096
Total PE 236380
Free PE 196579
Allocated PE 39801
PV UUID W5Iaek-T5zk-rAjd-J2qI-CNt1-nan2-1k6xsK