Menu Close

Red Hat Training

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

2.3. LVM 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​

在​​​​​​​ LVM 中​​​​​​​,邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​會​​​​​​​被​​​​​​​劃​​​​​​​分​​​​​​​為​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​。​​​​​​​LVM 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​類​​​​​​​型​​​​​​​有​​​​​​​三​​​​​​​種​​​​​​​:linear(線​​​​​​​性​​​​​​​)卷​​​​​​​冊​​​​​​​、​​​​​​​striped(等​​​​​​​量​​​​​​​)卷​​​​​​​冊​​​​​​​,以​​​​​​​及​​​​​​​ mirrored(鏡​​​​​​​像​​​​​​​)卷​​​​​​​冊​​​​​​​。​​​​​​​這​​​​​​​些​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​描​​​​​​​述​​​​​​​於​​​​​​​下​​​​​​​列​​​​​​​部​​​​​​​份​​​​​​​中​​​​​​​。​​​​​​​

2.3.1. 線​​​​​​​性​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​

線​​​​​​​性​​​​​​​卷​​​​​​​冊​​​​​​​會​​​​​​​將​​​​​​​多​​​​​​​個​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​聚​​​​​​​集​​​​​​​為​​​​​​​單​​​​​​​一​​​​​​​個​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​。​​​​​​​比​​​​​​​方​​​​​​​說​​​​​​​,若​​​​​​​您​​​​​​​有​​​​​​​兩​​​​​​​個​​​​​​​ 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, “扇​​​​​​​區​​​​​​​映​​​​​​​射​​​​​​​(Extent Mapping)” 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.
扇​​​​​​​區​​​​​​​映​​​​​​​射​​​​​​​(Extent Mapping)

圖形 2.2. 扇​​​​​​​區​​​​​​​映​​​​​​​射​​​​​​​(Extent Mapping)

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. 含​​​​​​​有​​​​​​​不​​​​​​​平​​​​​​​均​​​​​​​的​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​線​​​​​​​性​​​​​​​卷​​​​​​​冊​​​​​​​

多​​​​​​​重​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​

圖形 2.4. 多​​​​​​​重​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​