How does LVM Mirror read from and write to each mirror legs?

Solution Unverified - Updated -

Issue

  • Our customer wants to know the behavior of LVM mirroring.

    1. When write data to LVM mirror, How does the system request the I/O to each PV?

      • write data to each mirror legs at the same time?
      • write data to one mirror leg, and copy to the other one?
      • other processing?
    2. When read data from LVM mirror, How does the system request the I/O?

      • read data from one mirror leg only?
      • read data from each mirror legs doubly?
      • read data from each mirror legs without duplication using some kind of algorithm?
      • other processing?
    3. The difference of throughput between LVM linear mode and mirror mode.

Environment

  • Red Hat Enterprise Linux 5
  • lvm2-2.02.40-6.el5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.