Handle transient failures of LVM mirror type raid1 subvolumes / How to autorefresh LVs of type raid1
Issue
- In complex LVM mirror setups it can be quite a burden to re-mirror all mirrored logical volumes e.g. after one leg went down for storage maintenance or during an outage. Is it possible to automatically re-mirror these volumes without having the administrator to specify all failed devices in the lvm remirror commands?
- we are using lv mirror type
raid1. If we are losing a disk, then the lv mirror health is partial, thats fine. But if the disk is inserted again, the lv mirror health status is 'refresh needed'. After executingvgchange --refresh, the lv is fine again. But is the a way to do this automaticaly?
Environment
- Red Hat Enterprise Linux (RHEL) 6.4 and up
- LVM2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.