Menu Close

Red Hat Training

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

4.9.2. 物​​​​​​​件​​​​​​​選​​​​​​​擇​​​​​​​

此​​​​​​​部​​​​​​​份​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​一​​​​​​​系​​​​​​​列​​​​​​​的​​​​​​​表​​​​​​​格​​​​​​​,這​​​​​​​些​​​​​​​表​​​​​​​格​​​​​​​列​​​​​​​出​​​​​​​了​​​​​​​您​​​​​​​可​​​​​​​透​​​​​​​過​​​​​​​使​​​​​​​用​​​​​​​ pvs、​​​​​​​vgs 和​​​​​​​ lvs 來​​​​​​​顯​​​​​​​示​​​​​​​出​​​​​​​有​​​​​​​關​​​​​​​於​​​​​​​ LVM 物​​​​​​​件​​​​​​​的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​。​​​​​​​
為​​​​​​​求​​​​​​​方​​​​​​​便​​​​​​​,欄​​​​​​​位​​​​​​​名​​​​​​​稱​​​​​​​字​​​​​​​首​​​​​​​若​​​​​​​符​​​​​​​合​​​​​​​指​​​​​​​令​​​​​​​的​​​​​​​預​​​​​​​設​​​​​​​值​​​​​​​的​​​​​​​話​​​​​​​便​​​​​​​可​​​​​​​被​​​​​​​省​​​​​​​略​​​​​​​掉​​​​​​​。​​​​​​​比​​​​​​​方​​​​​​​說​​​​​​​ pvs 指​​​​​​​令​​​​​​​,name 代​​​​​​​表​​​​​​​ pv_name,不​​​​​​​過​​​​​​​對​​​​​​​ vgs 指​​​​​​​令​​​​​​​來​​​​​​​講​​​​​​​,name 會​​​​​​​被​​​​​​​解​​​​​​​譯​​​​​​​為​​​​​​​ vg_name。​​​​​​​
執​​​​​​​行​​​​​​​下​​​​​​​列​​​​​​​指​​​​​​​令​​​​​​​相​​​​​​​當​​​​​​​於​​​​​​​執​​​​​​​行​​​​​​​ pvs -o pv_free。​​​​​​​
# pvs -o +free
  PFree
  17.14G
  17.09G
  17.14G

4.9.2.1. pvs 指​​​​​​​令​​​​​​​

表格 4.1, “pvs 顯​​​​​​​示​​​​​​​欄​​​​​​​位​​​​​​​” lists the display arguments of the pvs command, along with the field name as it appears in the header display and a description of the field.

表格 4.1. pvs 顯​​​​​​​示​​​​​​​欄​​​​​​​位​​​​​​​

引​​​​​​​數​​​​​​​ 標​​​​​​​頭​​​​​​​ 描​​​​​​​述​​​​​​​
dev_size DevSize 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​所​​​​​​​建​​​​​​​立​​​​​​​於​​​​​​​的​​​​​​​基​​​​​​​本​​​​​​​裝​​​​​​​置​​​​​​​上​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​
pe_start 第​​​​​​​一​​​​​​​個​​​​​​​ PE 設​​​​​​​為​​​​​​​基​​​​​​​本​​​​​​​裝​​​​​​​置​​​​​​​中​​​​​​​第​​​​​​​一​​​​​​​個​​​​​​​實​​​​​​​體​​​​​​​扇​​​​​​​區​​​​​​​的​​​​​​​起​​​​​​​始​​​​​​​的​​​​​​​偏​​​​​​​差​​​​​​​值​​​​​​​
pv_attr Attr 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​狀​​​​​​​態​​​​​​​:(a)llocatable 或​​​​​​​ e(x)ported。​​​​​​​
pv_fmt Fmt 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​ metadata 格​​​​​​​式​​​​​​​(lvm2 或​​​​​​​ lvm1
pv_free PFree 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​上​​​​​​​剩​​​​​​​下​​​​​​​的​​​​​​​可​​​​​​​用​​​​​​​空​​​​​​​間​​​​​​​
pv_name PV 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​名​​​​​​​稱​​​​​​​
pv_pe_alloc_count Alloc 已​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​實​​​​​​​體​​​​​​​扇​​​​​​​區​​​​​​​數​​​​​​​量​​​​​​​
pv_pe_count PE 實​​​​​​​體​​​​​​​扇​​​​​​​區​​​​​​​數​​​​​​​量​​​​​​​
pvseg_size SSize 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​區​​​​​​​段​​​​​​​大​​​​​​​小​​​​​​​
pvseg_start 起​​​​​​​始​​​​​​​ 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​區​​​​​​​段​​​​​​​的​​​​​​​起​​​​​​​始​​​​​​​實​​​​​​​體​​​​​​​扇​​​​​​​區​​​​​​​
pv_size PSize 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​
pv_tags PV Tag 連​​​​​​​接​​​​​​​至​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​ LVM 標​​​​​​​籤​​​​​​​
pv_used 已​​​​​​​使​​​​​​​用​​​​​​​ 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​上​​​​​​​目​​​​​​​前​​​​​​​已​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​空​​​​​​​間​​​​​​​
pv_uuid PV UUID 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​ UUID
pvs 指​​​​​​​令​​​​​​​就​​​​​​​預​​​​​​​設​​​​​​​值​​​​​​​會​​​​​​​顯​​​​​​​示​​​​​​​下​​​​​​​列​​​​​​​欄​​​​​​​位​​​​​​​:pv_name、​​​​​​​vg_name、​​​​​​​pv_fmt、​​​​​​​pv_attr、​​​​​​​pv_size、​​​​​​​pv_free。​​​​​​​它​​​​​​​們​​​​​​​是​​​​​​​藉​​​​​​​由​​​​​​​ pv_name 來​​​​​​​排​​​​​​​序​​​​​​​的​​​​​​​。​​​​​​​
# pvs
  PV         VG     Fmt  Attr PSize  PFree
  /dev/sdb1  new_vg lvm2 a-   17.14G 17.14G
  /dev/sdc1  new_vg lvm2 a-   17.14G 17.09G
  /dev/sdd1  new_vg lvm2 a-   17.14G 17.13G
使​​​​​​​用​​​​​​​ -v 引​​​​​​​數​​​​​​​以​​​​​​​及​​​​​​​ pvs 指​​​​​​​令​​​​​​​可​​​​​​​將​​​​​​​下​​​​​​​列​​​​​​​欄​​​​​​​位​​​​​​​附​​​​​​​加​​​​​​​至​​​​​​​預​​​​​​​設​​​​​​​的​​​​​​​輸​​​​​​​出​​​​​​​:dev_size、​​​​​​​pv_uuid。​​​​​​​
# pvs -v
    Scanning for physical volume names
  PV         VG     Fmt  Attr PSize  PFree  DevSize PV UUID
  /dev/sdb1  new_vg lvm2 a-   17.14G 17.14G  17.14G onFF2w-1fLC-ughJ-D9eB-M7iv-6XqA-dqGeXY
  /dev/sdc1  new_vg lvm2 a-   17.14G 17.09G  17.14G Joqlch-yWSj-kuEn-IdwM-01S9-XO8M-mcpsVe
  /dev/sdd1  new_vg lvm2 a-   17.14G 17.13G  17.14G yvfvZK-Cf31-j75k-dECm-0RZ3-0dGW-tUqkCS
您​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​ pvs 指​​​​​​​令​​​​​​​的​​​​​​​ --segments 引​​​​​​​數​​​​​​​來​​​​​​​顯​​​​​​​示​​​​​​​有​​​​​​​關​​​​​​​於​​​​​​​各​​​​​​​個​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​區​​​​​​​段​​​​​​​的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​。​​​​​​​區​​​​​​​段​​​​​​​相​​​​​​​當​​​​​​​於​​​​​​​扇​​​​​​​區​​​​​​​的​​​​​​​群​​​​​​​組​​​​​​​。​​​​​​​區​​​​​​​段​​​​​​​視​​​​​​​點​​​​​​​(segment view)可​​​​​​​有​​​​​​​效​​​​​​​幫​​​​​​​助​​​​​​​您​​​​​​​查​​​​​​​看​​​​​​​您​​​​​​​的​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​是​​​​​​​否​​​​​​​已​​​​​​​分​​​​​​​散​​​​​​​掉​​​​​​​。​​​​​​​
pvs --segments 指​​​​​​​令​​​​​​​就​​​​​​​預​​​​​​​設​​​​​​​值​​​​​​​會​​​​​​​顯​​​​​​​示​​​​​​​下​​​​​​​列​​​​​​​欄​​​​​​​位​​​​​​​:pv_name、​​​​​​​vg_name、​​​​​​​pv_fmt、​​​​​​​pv_attr、​​​​​​​pv_size、​​​​​​​pv_free、​​​​​​​pvseg_start、​​​​​​​pvseg_size。​​​​​​​它​​​​​​​們​​​​​​​是​​​​​​​藉​​​​​​​由​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​中​​​​​​​的​​​​​​​ pv_name 和​​​​​​​ pvseg_size 來​​​​​​​排​​​​​​​序​​​​​​​的​​​​​​​。​​​​​​​
# pvs --segments
  PV         VG         Fmt  Attr PSize  PFree  Start SSize
  /dev/hda2  VolGroup00 lvm2 a-   37.16G 32.00M     0  1172
  /dev/hda2  VolGroup00 lvm2 a-   37.16G 32.00M  1172    16
  /dev/hda2  VolGroup00 lvm2 a-   37.16G 32.00M  1188     1
  /dev/sda1  vg         lvm2 a-   17.14G 16.75G     0    26
  /dev/sda1  vg         lvm2 a-   17.14G 16.75G    26    24
  /dev/sda1  vg         lvm2 a-   17.14G 16.75G    50    26
  /dev/sda1  vg         lvm2 a-   17.14G 16.75G    76    24
  /dev/sda1  vg         lvm2 a-   17.14G 16.75G   100    26
  /dev/sda1  vg         lvm2 a-   17.14G 16.75G   126    24
  /dev/sda1  vg         lvm2 a-   17.14G 16.75G   150    22
  /dev/sda1  vg         lvm2 a-   17.14G 16.75G   172  4217
  /dev/sdb1  vg         lvm2 a-   17.14G 17.14G     0  4389
  /dev/sdc1  vg         lvm2 a-   17.14G 17.14G     0  4389
  /dev/sdd1  vg         lvm2 a-   17.14G 17.14G     0  4389
  /dev/sde1  vg         lvm2 a-   17.14G 17.14G     0  4389
  /dev/sdf1  vg         lvm2 a-   17.14G 17.14G     0  4389
  /dev/sdg1  vg         lvm2 a-   17.14G 17.14G     0  4389
您​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​ pvs -a 指​​​​​​​令​​​​​​​來​​​​​​​查​​​​​​​看​​​​​​​ LVM 所​​​​​​​偵​​​​​​​測​​​​​​​到​​​​​​​不​​​​​​​過​​​​​​​尚​​​​​​​未​​​​​​​被​​​​​​​初​​​​​​​始​​​​​​​化​​​​​​​為​​​​​​​ LVM 實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​裝​​​​​​​置​​​​​​​。​​​​​​​
# pvs -a
  PV                             VG     Fmt  Attr PSize  PFree
  /dev/VolGroup00/LogVol01                   --       0      0
  /dev/new_vg/lvol0                          --       0      0
  /dev/ram                                   --       0      0
  /dev/ram0                                  --       0      0
  /dev/ram2                                  --       0      0
  /dev/ram3                                  --       0      0
  /dev/ram4                                  --       0      0
  /dev/ram5                                  --       0      0
  /dev/ram6                                  --       0      0
  /dev/root                                  --       0      0
  /dev/sda                                   --       0      0
  /dev/sdb                                   --       0      0
  /dev/sdb1                      new_vg lvm2 a-   17.14G 17.14G
  /dev/sdc                                   --       0      0
  /dev/sdc1                      new_vg lvm2 a-   17.14G 17.09G
  /dev/sdd                                   --       0      0
  /dev/sdd1                      new_vg lvm2 a-   17.14G 17.14G

4.9.2.2. vgs 指​​​​​​​令​​​​​​​

表格 4.2, “vgs 顯​​​​​​​示​​​​​​​欄​​​​​​​位​​​​​​​” lists the display arguments of the vgs command, along with the field name as it appears in the header display and a description of the field.

表格 4.2. vgs 顯​​​​​​​示​​​​​​​欄​​​​​​​位​​​​​​​

引​​​​​​​數​​​​​​​ 標​​​​​​​頭​​​​​​​ 描​​​​​​​述​​​​​​​
lv_count #LV 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​中​​​​​​​所​​​​​​​包​​​​​​​含​​​​​​​的​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​數​​​​​​​量​​​​​​​
max_lv MaxLV 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​中​​​​​​​可​​​​​​​允​​​​​​​許​​​​​​​的​​​​​​​最​​​​​​​大​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​數​​​​​​​量​​​​​​​(若​​​​​​​無​​​​​​​限​​​​​​​制​​​​​​​的​​​​​​​話​​​​​​​便​​​​​​​是​​​​​​​ 0)
max_pv MaxPV 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​中​​​​​​​可​​​​​​​允​​​​​​​許​​​​​​​的​​​​​​​最​​​​​​​大​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​數​​​​​​​量​​​​​​​(若​​​​​​​無​​​​​​​限​​​​​​​制​​​​​​​的​​​​​​​話​​​​​​​便​​​​​​​是​​​​​​​ 0)
pv_count #PV 定​​​​​​​義​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​數​​​​​​​量​​​​​​​
snap_count #SN 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​所​​​​​​​包​​​​​​​含​​​​​​​的​​​​​​​快​​​​​​​照​​​​​​​數​​​​​​​量​​​​​​​
vg_attr Attr 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​狀​​​​​​​態​​​​​​​:可​​​​​​​寫​​​​​​​入​​​​​​​(w)、​​​​​​​唯​​​​​​​讀​​​​​​​(r)、​​​​​​​可​​​​​​​重​​​​​​​設​​​​​​​大​​​​​​​小​​​​​​​(z)、​​​​​​​已​​​​​​​匯​​​​​​​出​​​​​​​(x)、​​​​​​​部​​​​​​​分​​​​​​​的​​​​​​​(p)以​​​​​​​及​​​​​​​已​​​​​​​聚​​​​​​​成​​​​​​​叢​​​​​​​集​​​​​​​(c)。​​​​​​​
vg_extent_count #Ext 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​中​​​​​​​的​​​​​​​實​​​​​​​體​​​​​​​扇​​​​​​​區​​​​​​​數​​​​​​​量​​​​​​​
vg_extent_size Ext 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​中​​​​​​​的​​​​​​​實​​​​​​​體​​​​​​​扇​​​​​​​區​​​​​​​大​​​​​​​小​​​​​​​
vg_fmt Fmt 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​ metadata 格​​​​​​​式​​​​​​​(lvm2 或​​​​​​​ lvm1
vg_free VFree 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​中​​​​​​​剩​​​​​​​下​​​​​​​的​​​​​​​可​​​​​​​用​​​​​​​空​​​​​​​間​​​​​​​大​​​​​​​小​​​​​​​
vg_free_count Free 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​中​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​實​​​​​​​體​​​​​​​扇​​​​​​​區​​​​​​​數​​​​​​​量​​​​​​​
vg_name VG 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​名​​​​​​​稱​​​​​​​
vg_seqno Seq 表​​​​​​​示​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​修​​​​​​​訂​​​​​​​版​​​​​​​本​​​​​​​的​​​​​​​號​​​​​​​碼​​​​​​​
vg_size VSize 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​
vg_sysid SYS ID LVM1 System ID
vg_tags VG Tags 連​​​​​​​接​​​​​​​至​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​ LVM 標​​​​​​​籤​​​​​​​
vg_uuid VG UUID 卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​的​​​​​​​ UUID
vgs 指​​​​​​​令​​​​​​​就​​​​​​​預​​​​​​​設​​​​​​​值​​​​​​​會​​​​​​​顯​​​​​​​示​​​​​​​下​​​​​​​列​​​​​​​欄​​​​​​​位​​​​​​​:vg_name、​​​​​​​pv_count、​​​​​​​lv_count、​​​​​​​snap_count、​​​​​​​vg_attr、​​​​​​​vg_size、​​​​​​​vg_free。​​​​​​​它​​​​​​​們​​​​​​​是​​​​​​​藉​​​​​​​由​​​​​​​ vg_name 來​​​​​​​排​​​​​​​序​​​​​​​的​​​​​​​。​​​​​​​
# vgs
  VG     #PV #LV #SN Attr   VSize  VFree
  new_vg   3   1   1 wz--n- 51.42G 51.36G
使​​​​​​​用​​​​​​​ vgs 指​​​​​​​令​​​​​​​和​​​​​​​ -v 引​​​​​​​數​​​​​​​會​​​​​​​將​​​​​​​下​​​​​​​列​​​​​​​欄​​​​​​​位​​​​​​​新​​​​​​​增​​​​​​​至​​​​​​​預​​​​​​​設​​​​​​​的​​​​​​​畫​​​​​​​面​​​​​​​:vg_extent_size、​​​​​​​vg_uuid。​​​​​​​
# vgs -v
    Finding all volume groups
    Finding volume group "new_vg"
  VG     Attr   Ext   #PV #LV #SN VSize  VFree  VG UUID
  new_vg wz--n- 4.00M   3   1   1 51.42G 51.36G jxQJ0a-ZKk0-OpMO-0118-nlwO-wwqd-fD5D32

4.9.2.3. lvs 指​​​​​​​令​​​​​​​

表格 4.3, “lvs 顯​​​​​​​示​​​​​​​欄​​​​​​​位​​​​​​​” lists the display arguments of the lvs command, along with the field name as it appears in the header display and a description of the field.

表格 4.3. lvs 顯​​​​​​​示​​​​​​​欄​​​​​​​位​​​​​​​

引​​​​​​​數​​​​​​​ 標​​​​​​​頭​​​​​​​ 描​​​​​​​述​​​​​​​
chunksize
chunk_size
Chunk 快​​​​​​​照​​​​​​​卷​​​​​​​冊​​​​​​​中​​​​​​​的​​​​​​​單​​​​​​​位​​​​​​​大​​​​​​​小​​​​​​​
copy_percent Copy% 鏡​​​​​​​像​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​同​​​​​​​步​​​​​​​化​​​​​​​百​​​​​​​分​​​​​​​比​​​​​​​;在​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​被​​​​​​​透​​​​​​​過​​​​​​​ pv_move 指​​​​​​​令​​​​​​​移​​​​​​​動​​​​​​​時​​​​​​​也​​​​​​​會​​​​​​​使​​​​​​​用​​​​​​​到​​​​​​​
devices 裝​​​​​​​置​​​​​​​ 構​​​​​​​成​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​基​​​​​​​本​​​​​​​裝​​​​​​​置​​​​​​​:實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​、​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​,以​​​​​​​及​​​​​​​起​​​​​​​始​​​​​​​實​​​​​​​體​​​​​​​扇​​​​​​​區​​​​​​​和​​​​​​​邏​​​​​​​輯​​​​​​​扇​​​​​​​區​​​​​​​
lv_attr Attr 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​狀​​​​​​​態​​​​​​​。​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​ attribute bit 如​​​​​​​下​​​​​​​:
Bit 1:卷​​​​​​​冊​​​​​​​類​​​​​​​型​​​​​​​(Volume type):(m)irrored、​​​​​​​(M)irrored(無​​​​​​​初​​​​​​​始​​​​​​​同​​​​​​​步​​​​​​​化​​​​​​​)、​​​​​​​(o)rigin、​​​​​​​(p)vmove、​​​​​​​(s)napshot、​​​​​​​invalid (S)napshot、​​​​​​​(v)irtual
Bit2:權​​​​​​​限​​​​​​​(Permissions):(w)riteable、​​​​​​​(r)ead-only
Bit 3:分​​​​​​​配​​​​​​​政​​​​​​​策​​​​​​​(Allocation policy):(c)ontiguous、​​​​​​​(n)ormal、​​​​​​​(a)nywhere、​​​​​​​(i)nherited。​​​​​​​若​​​​​​​卷​​​​​​​冊​​​​​​​目​​​​​​​前​​​​​​​無​​​​​​​法​​​​​​​進​​​​​​​行​​​​​​​分​​​​​​​配​​​​​​​上​​​​​​​的​​​​​​​變​​​​​​​更​​​​​​​(比​​​​​​​方​​​​​​​說​​​​​​​在​​​​​​​執​​​​​​​行​​​​​​​ pvmove 指​​​​​​​令​​​​​​​時​​​​​​​),這​​​​​​​就​​​​​​​會​​​​​​​是​​​​​​​大​​​​​​​寫​​​​​​​的​​​​​​​。​​​​​​​
Bit 4:fixed (m)inor
Bit 5 狀​​​​​​​態​​​​​​​(State):(a)ctive、​​​​​​​(s)uspended、​​​​​​​(I)nvalid snapshot、​​​​​​​invalid (S)uspended snapshot、​​​​​​​mapped (d)evice present without tables、​​​​​​​mapped device present with (i)nactive table
Bit 6:device (o)pen
lv_kernel_major KMaj 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​實​​​​​​​際​​​​​​​重​​​​​​​大​​​​​​​裝​​​​​​​置​​​​​​​代​​​​​​​碼​​​​​​​(若​​​​​​​未​​​​​​​啟​​​​​​​用​​​​​​​的​​​​​​​話​​​​​​​就​​​​​​​是​​​​​​​ -1)
lv_kernel_minor KMIN 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​實​​​​​​​際​​​​​​​鏡​​​​​​​像​​​​​​​裝​​​​​​​置​​​​​​​代​​​​​​​碼​​​​​​​(若​​​​​​​未​​​​​​​啟​​​​​​​用​​​​​​​的​​​​​​​話​​​​​​​就​​​​​​​是​​​​​​​ -1)
lv_major Maj 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​持​​​​​​​續​​​​​​​性​​​​​​​重​​​​​​​大​​​​​​​裝​​​​​​​置​​​​​​​代​​​​​​​碼​​​​​​​(若​​​​​​​未​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​話​​​​​​​就​​​​​​​是​​​​​​​ -1)
lv_minor Min 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​持​​​​​​​續​​​​​​​性​​​​​​​非​​​​​​​重​​​​​​​大​​​​​​​裝​​​​​​​置​​​​​​​代​​​​​​​碼​​​​​​​(若​​​​​​​未​​​​​​​指​​​​​​​定​​​​​​​的​​​​​​​話​​​​​​​就​​​​​​​是​​​​​​​ -1)
lv_name LV 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​名​​​​​​​稱​​​​​​​
lv_size LSize 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​大​​​​​​​小​​​​​​​
lv_tags LV Tags 連​​​​​​​接​​​​​​​至​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​ LVM 標​​​​​​​籤​​​​​​​
lv_uuid LV UUID 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​ UUID
mirror_log Log 鏡​​​​​​​像​​​​​​​ log 所​​​​​​​位​​​​​​​於​​​​​​​的​​​​​​​裝​​​​​​​置​​​​​​​
modules 模​​​​​​​組​​​​​​​ 使​​​​​​​用​​​​​​​此​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​所​​​​​​​需​​​​​​​要​​​​​​​的​​​​​​​相​​​​​​​應​​​​​​​ kernel 裝​​​​​​​置​​​​​​​映​​​​​​​射​​​​​​​(device-mapper)目​​​​​​​標​​​​​​​
move_pv 移​​​​​​​動​​​​​​​ 提​​​​​​​供​​​​​​​一​​​​​​​個​​​​​​​透​​​​​​​過​​​​​​​ pvmove 指​​​​​​​令​​​​​​​來​​​​​​​建​​​​​​​立​​​​​​​的​​​​​​​暫​​​​​​​時​​​​​​​性​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​實​​​​​​​體​​​​​​​卷​​​​​​​冊​​​​​​​
origin 起​​​​​​​源​​​​​​​ 快​​​​​​​照​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​起​​​​​​​源​​​​​​​裝​​​​​​​置​​​​​​​(origin device)
regionsize
region_size
範​​​​​​​圍​​​​​​​ 鏡​​​​​​​像​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​單​​​​​​​位​​​​​​​大​​​​​​​小​​​​​​​
seg_count #Seg 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​中​​​​​​​的​​​​​​​區​​​​​​​段​​​​​​​數​​​​​​​量​​​​​​​
seg_size SSize 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​中​​​​​​​的​​​​​​​區​​​​​​​段​​​​​​​大​​​​​​​小​​​​​​​
seg_start 起​​​​​​​始​​​​​​​ 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​中​​​​​​​的​​​​​​​區​​​​​​​段​​​​​​​偏​​​​​​​差​​​​​​​值​​​​​​​
seg_tags Seg Tags 連​​​​​​​接​​​​​​​至​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​之​​​​​​​區​​​​​​​段​​​​​​​的​​​​​​​ LVM 標​​​​​​​籤​​​​​​​
segtype 類​​​​​​​型​​​​​​​ 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​區​​​​​​​段​​​​​​​類​​​​​​​型​​​​​​​(例​​​​​​​如​​​​​​​:mirror、​​​​​​​striped、​​​​​​​linear)
snap_percent Snap% 快​​​​​​​照​​​​​​​目​​​​​​​前​​​​​​​的​​​​​​​使​​​​​​​用​​​​​​​量​​​​​​​百​​​​​​​分​​​​​​​比​​​​​​​
stripes #Str 邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​中​​​​​​​的​​​​​​​磁​​​​​​​帶​​​​​​​或​​​​​​​鏡​​​​​​​像​​​​​​​數​​​​​​​量​​​​​​​
stripesize
stripe_size
Stripe 等​​​​​​​量​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​中​​​​​​​的​​​​​​​磁​​​​​​​條​​​​​​​單​​​​​​​位​​​​​​​大​​​​​​​小​​​​​​​
lvs 指​​​​​​​令​​​​​​​就​​​​​​​預​​​​​​​設​​​​​​​值​​​​​​​會​​​​​​​顯​​​​​​​示​​​​​​​下​​​​​​​列​​​​​​​欄​​​​​​​位​​​​​​​:lv_name、​​​​​​​vg_name、​​​​​​​lv_attr、​​​​​​​lv_size、​​​​​​​origin、​​​​​​​snap_percent、​​​​​​​move_pv、​​​​​​​mirror_log、​​​​​​​copy_percent。​​​​​​​它​​​​​​​們​​​​​​​就​​​​​​​預​​​​​​​設​​​​​​​值​​​​​​​會​​​​​​​被​​​​​​​藉​​​​​​​由​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​中​​​​​​​的​​​​​​​ vg_name 和​​​​​​​ lv_name 來​​​​​​​排​​​​​​​序​​​​​​​。​​​​​​​
# lvs
  LV         VG     Attr   LSize  Origin Snap%  Move Log Copy%
  lvol0      new_vg owi-a- 52.00M
  newvgsnap1 new_vg swi-a-  8.00M lvol0    0.20
使​​​​​​​用​​​​​​​ lvs 指​​​​​​​令​​​​​​​以​​​​​​​及​​​​​​​ -v 引​​​​​​​數​​​​​​​便​​​​​​​能​​​​​​​將​​​​​​​下​​​​​​​列​​​​​​​欄​​​​​​​位​​​​​​​新​​​​​​​增​​​​​​​至​​​​​​​預​​​​​​​設​​​​​​​的​​​​​​​畫​​​​​​​面​​​​​​​中​​​​​​​:seg_count、​​​​​​​lv_major、​​​​​​​lv_minor、​​​​​​​lv_kernel_major、​​​​​​​lv_kernel_minor、​​​​​​​lv_uuid。​​​​​​​
# lvs -v
    Finding all logical volumes
  LV         VG     #Seg Attr   LSize  Maj Min KMaj KMin Origin Snap%  Move Copy%  Log LV UUID
  lvol0      new_vg    1 owi-a- 52.00M  -1  -1 253  3                                  LBy1Tz-sr23-OjsI-LT03-nHLC-y8XW-EhCl78
  newvgsnap1 new_vg    1 swi-a-  8.00M  -1  -1 253  5    lvol0    0.20                 1ye1OU-1cIu-o79k-20h2-ZGF0-qCJm-CfbsIx
您​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​ lvs 指​​​​​​​令​​​​​​​的​​​​​​​ --segments 引​​​​​​​數​​​​​​​來​​​​​​​顯​​​​​​​示​​​​​​​含​​​​​​​有​​​​​​​強​​​​​​​調​​​​​​​區​​​​​​​段​​​​​​​資​​​​​​​訊​​​​​​​的​​​​​​​預​​​​​​​設​​​​​​​欄​​​​​​​位​​​​​​​的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​。​​​​​​​當​​​​​​​您​​​​​​​使​​​​​​​用​​​​​​​ segments 引​​​​​​​數​​​​​​​時​​​​​​​,seg 前​​​​​​​綴​​​​​​​字​​​​​​​元​​​​​​​為​​​​​​​非​​​​​​​必​​​​​​​要​​​​​​​的​​​​​​​。​​​​​​​lvs --segments 指​​​​​​​令​​​​​​​就​​​​​​​預​​​​​​​設​​​​​​​值​​​​​​​會​​​​​​​顯​​​​​​​示​​​​​​​下​​​​​​​列​​​​​​​欄​​​​​​​位​​​​​​​:lv_name、​​​​​​​vg_name、​​​​​​​lv_attr、​​​​​​​stripes、​​​​​​​segtype、​​​​​​​seg_size。​​​​​​​畫​​​​​​​面​​​​​​​就​​​​​​​預​​​​​​​設​​​​​​​值​​​​​​​會​​​​​​​藉​​​​​​​由​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​中​​​​​​​的​​​​​​​ vg_name、​​​​​​​lv_name 以​​​​​​​及​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​中​​​​​​​的​​​​​​​ seg_start 來​​​​​​​排​​​​​​​序​​​​​​​。​​​​​​​若​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​被​​​​​​​分​​​​​​​散​​​​​​​的​​​​​​​話​​​​​​​,這​​​​​​​項​​​​​​​指​​​​​​​令​​​​​​​的​​​​​​​輸​​​​​​​出​​​​​​​便​​​​​​​會​​​​​​​將​​​​​​​其​​​​​​​顯​​​​​​​示​​​​​​​出​​​​​​​來​​​​​​​。​​​​​​​
# lvs --segments
  LV       VG         Attr   #Str Type   SSize
  LogVol00 VolGroup00 -wi-ao    1 linear  36.62G
  LogVol01 VolGroup00 -wi-ao    1 linear 512.00M
  lv       vg         -wi-a-    1 linear 104.00M
  lv       vg         -wi-a-    1 linear 104.00M
  lv       vg         -wi-a-    1 linear 104.00M
  lv       vg         -wi-a-    1 linear  88.00M
若​​​​​​​使​​​​​​​用​​​​​​​ lvs --segments 指​​​​​​​令​​​​​​​以​​​​​​​及​​​​​​​ -v 引​​​​​​​數​​​​​​​便​​​​​​​可​​​​​​​新​​​​​​​增​​​​​​​下​​​​​​​列​​​​​​​欄​​​​​​​位​​​​​​​至​​​​​​​預​​​​​​​設​​​​​​​的​​​​​​​畫​​​​​​​面​​​​​​​中​​​​​​​:seg_start、​​​​​​​stripesize、​​​​​​​chunksize。​​​​​​​
# lvs -v --segments
    Finding all logical volumes
  LV         VG     Attr   Start SSize  #Str Type   Stripe Chunk
  lvol0      new_vg owi-a-    0  52.00M    1 linear     0     0
  newvgsnap1 new_vg swi-a-    0   8.00M    1 linear     0  8.00K
下​​​​​​​列​​​​​​​範​​​​​​​例​​​​​​​顯​​​​​​​示​​​​​​​了​​​​​​​ lvs 指​​​​​​​令​​​​​​​在​​​​​​​一​​​​​​​部​​​​​​​配​​​​​​​置​​​​​​​了​​​​​​​一​​​​​​​個​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​系​​​​​​​統​​​​​​​上​​​​​​​的​​​​​​​預​​​​​​​設​​​​​​​輸​​​​​​​出​​​​​​​,以​​​​​​​及​​​​​​​ lvs 指​​​​​​​令​​​​​​​和​​​​​​​ segments 引​​​​​​​數​​​​​​​的​​​​​​​預​​​​​​​設​​​​​​​輸​​​​​​​出​​​​​​​。​​​​​​​
# lvs
  LV    VG     Attr   LSize  Origin Snap%  Move Log Copy%
  lvol0 new_vg -wi-a- 52.00M
# lvs --segments
  LV    VG     Attr   #Str Type   SSize
  lvol0 new_vg -wi-a-    1 linear 52.00M