Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
2.3.2. 等量邏輯卷冊
當您將資料寫至一個 LVM 邏輯卷冊時,檔案系統會將資料配置在基本實體卷冊之間。您可藉由建立一個等量的邏輯卷冊來控制資料寫至實體卷冊的方式。對於較大量的讀取和寫入循序來講,這可有效改善資料 I/O 的效率。
建立等量磁碟可藉由 round-round 的方式將資料寫至數量已預先決定的實體卷冊來增強效能。當建立等量磁碟時,I/O 可以平行的方式來進行。在某些情況下,這可能會使等量磁碟中的各個實體卷冊都達到近線性(near-linear)的效能。
下列描述了資料如何被等量分配在三個實體卷冊之間。在此圖形中:
- 第一個等量磁碟的資料已被寫至 PV1
- 第二個等量磁碟的資料已被寫至 PV2
- 第三個等量磁碟的資料已被寫至 PV3
- 第四個等量磁碟的資料已被寫至 PV1
在等量邏輯卷冊中,等量磁碟的大小不可超過扇區的大小。
圖形 2.5. 將資料等量分配在三個 PV 之間
Striped logical volumes can be extended by concatenating another set of devices onto the end of the first set. In order extend a striped logical volume, however, there must be enough free space on the underlying physical volumes that make up the volume group to support the stripe. For example, if you have a two-way stripe that uses up an entire volume group, adding a single physical volume to the volume group will not enable you to extend the stripe. Instead, you must add at least two physical volumes to the volume group. For more information on extending a striped volume, see 節 4.4.9, “延伸等量的卷冊”.