Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

2.3. LVM 論理ボリューム

LVM では、ボリュームグループは論理ボリュームに分割されます。LVM 論理ボリュームには 3つのタイプがあります。 リニア (linear) ボリューム、 ストライプ化(striped) ボリューム、及び ミラー化(mirrored) ボリュームです。これらは以下のセクションで説明されています。

2.3.1. リニアボリューム

リニアボリュームは複数の物理ボリュームを1つの論理ボリュームとして統合したものです。 例えば、2つの 60GB ディスクがある場合、120GB の論理ボリュームが作成できます。 物理ストレージは連結されます。
Creating a linear volume assigns a range of physical extents to an area of a logical volume in order. For example, as shown in 図2.2「エクステントマッピング」 logical extents 1 to 99 could map to one physical volume and logical extents 100 to 198 could map to a second physical volume. From the point of view of the application, there is one device that is 198 extents in size.
エクステントマッピング

図2.2 エクステントマッピング

The physical volumes that make up a logical volume do not have to be the same size. 図2.3「不平等物理ボリュームを持つリニアボリューム」 shows volume group VG1 with a physical extent size of 4MB. This volume group includes 2 physical volumes named PV1 and PV2. The physical volumes are divided into 4MB units, since that is the extent size. In this example, PV1 is 100 extents in size (400MB) and PV2 is 200 extents in size (800MB). You can create a linear volume any size between 1 and 300 extents (4MB to 1200MB). In this example, the linear volume named LV1 is 300 extents in size.
不平等物理ボリュームを持つリニアボリューム

図2.3 不平等物理ボリュームを持つリニアボリューム

You can configure more than one linear logical volume of whatever size you desire from the pool of physical extents. 図2.4「複数論理ボリューム」 shows the same volume group as in 図2.3「不平等物理ボリュームを持つリニアボリューム」, but in this case two logical volumes have been carved out of the volume group: LV1, which is 250 extents in size (1000MB) and LV2 which is 50 extents in size (200MB).
複数論理ボリューム

図2.4 複数論理ボリューム