|
Written by Tom Hirt
|
|
Tuesday, 19 May 2009 10:48 |
|
Page 1 of 3
LVM Mirroring Overview
Continuing with our LVM how to series, in this KB, we will build on the knowledge from our LVM Configuration KB, and explore two sided logical volume (LV) mirroring. In this KB, we will guide you through the creation of a two sided mirror from a new LV and the steps necessary to add mirroring to an existing LV.
Note: Mirroring is usually thought of as two way (in which two physical copies of the volume exist.) However, when creating LVM mirrors, you can define as many mirrors of a LV as you wish limited only by the number of physical volumes (PVs) available in the Volume Group (VG). Each side of the mirror requires one or more PVs.
LVM mirroring is most commonly used for data protection and high availability of mission critical data. Similar to RAID 1, LVM mirroring ensures fault tolerance without any associated downtime should either leg of the mirror experience a hardware failure. In the event of a failure, LVM converts the mirrored volume into a linear volume and continues to operate as before, but without the mirrored redundancy.
LVM mirroring at a minimum requires three physical volumes:
- A volume for one side of the mirror
- A volume for other side of the mirror
- A volume for the log
Note: We recommend for recoverability purposes that the PV's be three separate physical disks. Although not recommended, the PV's could also be a combination of partitions from one more physical disks but understand that a hardware failure could render the data on the LVM mirror useless - which somewhat defeats the purpose of LVM mirroring.
|
|
Last Updated on Tuesday, 02 June 2009 07:57 |