搜索

4.9.2. 对​​​​​​​象​​​​​​​选​​​​​​​择​​​​​​​

download PDF
这​​​​​​​部​​​​​​​分​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​一​​​​​​​组​​​​​​​列​​​​​​​表​​​​​​​,表​​​​​​​中​​​​​​​列​​​​​​​出​​​​​​​的​​​​​​​有​​​​​​​关​​​​​​​ LVM 对​​​​​​​象​​​​​​​的​​​​​​​信​​​​​​​息​​​​​​​您​​​​​​​可​​​​​​​以​​​​​​​用​​​​​​​ pvs、​​​​​​​vgs 和​​​​​​​ lvs 命​​​​​​​令​​​​​​​获​​​​​​​得​​​​​​​。​​​​​​​
为​​​​​​​方​​​​​​​便​​​​​​​起​​​​​​​见​​​​​​​,字​​​​​​​段​​​​​​​名​​​​​​​称​​​​​​​前​​​​​​​缀​​​​​​​如​​​​​​​果​​​​​​​与​​​​​​​命​​​​​​​令​​​​​​​默​​​​​​​认​​​​​​​字​​​​​​​段​​​​​​​匹​​​​​​​配​​​​​​​就​​​​​​​可​​​​​​​以​​​​​​​去​​​​​​​掉​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​:在​​​​​​​ pvs 命​​​​​​​令​​​​​​​中​​​​​​​,name 的​​​​​​​指​​​​​​​的​​​​​​​是​​​​​​​ pv_name,但​​​​​​​使​​​​​​​用​​​​​​​ vgs 命​​​​​​​令​​​​​​​时​​​​​​​,name 被​​​​​​​理​​​​​​​解​​​​​​​为​​​​​​​ vg_name。​​​​​​​
执​​​​​​​行​​​​​​​以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​和​​​​​​​执​​​​​​​行​​​​​​​ pvs -o pv_free 的​​​​​​​结​​​​​​​果​​​​​​​相​​​​​​​同​​​​​​​。​​​​​​​
# pvs -o free
  PFree
  17.14G
  17.09G
  17.14G

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 1st PE 在​​​​​​​基​​​​​​​本​​​​​​​设​​​​​​​备​​​​​​​中​​​​​​​调​​​​​​​整​​​​​​​到​​​​​​​第​​​​​​​一​​​​​​​个​​​​​​​物​​​​​​​理​​​​​​​扩​​​​​​​展​​​​​​​的​​​​​​​起​​​​​​​始​​​​​​​位​​​​​​​置​​​​​​​
pv_attr Attr 物​​​​​​​理​​​​​​​卷​​​​​​​状​​​​​​​态​​​​​​​:可​​​​​​​分​​​​​​​配​​​​​​​(a)或​​​​​​​者​​​​​​​导​​​​​​​出​​​​​​​的​​​​​​​(x)。​​​​​​​
pv_fmt Fmt 物​​​​​​​理​​​​​​​卷​​​​​​​的​​​​​​​元​​​​​​​数​​​​​​​据​​​​​​​格​​​​​​​式​​​​​​​(lvm2 或​​​​​​​者​​​​​​​ lvm1
pv_free PFree 物​​​​​​​理​​​​​​​卷​​​​​​​中​​​​​​​剩​​​​​​​余​​​​​​​的​​​​​​​可​​​​​​​用​​​​​​​空​​​​​​​间​​​​​​​
pv_name PV 物​​​​​​​理​​​​​​​卷​​​​​​​名​​​​​​​称​​​​​​​
pv_pe_alloc_count Alloc 已​​​​​​​经​​​​​​​使​​​​​​​用​​​​​​​的​​​​​​​物​​​​​​​理​​​​​​​扩​​​​​​​展​​​​​​​数​​​​​​​目​​​​​​​
pv_pe_count PE 物​​​​​​​理​​​​​​​扩​​​​​​​展​​​​​​​数​​​​​​​量​​​​​​​
pvseg_size SSize 物​​​​​​​理​​​​​​​卷​​​​​​​的​​​​​​​片​​​​​​​段​​​​​​​大​​​​​​​小​​​​​​​
pvseg_start Start 物​​​​​​​理​​​​​​​卷​​​​​​​片​​​​​​​段​​​​​​​的​​​​​​​起​​​​​​​始​​​​​​​物​​​​​​​理​​​​​​​扩​​​​​​​展​​​​​​​
pv_size PSize 物​​​​​​​理​​​​​​​卷​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​
pv_tags PV Tags 附​​​​​​​加​​​​​​​到​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​的​​​​​​​ LVM 标​​​​​​​签​​​​​​​
pv_used 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 参​​​​​​​数​​​​​​​显​​​​​​​示​​​​​​​每​​​​​​​个​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​片​​​​​​​段​​​​​​​的​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​一​​​​​​​个​​​​​​​片​​​​​​​段​​​​​​​就​​​​​​​是​​​​​​​一​​​​​​​组​​​​​​​扩​​​​​​​展​​​​​​​。​​​​​​​查​​​​​​​看​​​​​​​片​​​​​​​段​​​​​​​在​​​​​​​想​​​​​​​要​​​​​​​查​​​​​​​看​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​是​​​​​​​否​​​​​​​有​​​​​​​很​​​​​​​多​​​​​​​碎​​​​​​​片​​​​​​​时​​​​​​​很​​​​​​​有​​​​​​​用​​​​​​​。​​​​​​​
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

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 卷​​​​​​​组​​​​​​​(lvm2 或​​​​​​​者​​​​​​​ lvm1)的​​​​​​​元​​​​​​​数​​​​​​​据​​​​​​​格​​​​​​​式​​​​​​​
vg_free VFree 卷​​​​​​​组​​​​​​​中​​​​​​​剩​​​​​​​余​​​​​​​可​​​​​​​用​​​​​​​空​​​​​​​间​​​​​​​
vg_free_count Free 卷​​​​​​​组​​​​​​​中​​​​​​​可​​​​​​​用​​​​​​​物​​​​​​​理​​​​​​​扩​​​​​​​展​​​​​​​数​​​​​​​目​​​​​​​
vg_name VG 卷​​​​​​​组​​​​​​​名​​​​​​​称​​​​​​​
vg_seqno Seq 代​​​​​​​表​​​​​​​修​​​​​​​正​​​​​​​卷​​​​​​​组​​​​​​​的​​​​​​​数​​​​​​​字​​​​​​​
vg_size VSize 卷​​​​​​​组​​​​​​​大​​​​​​​小​​​​​​​
vg_sysid SYS ID LVM1 系​​​​​​​统​​​​​​​ 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
使​​​​​​​用​​​​​​​带​​​​​​​ -v 参​​​​​​​数​​​​​​​的​​​​​​​ vgs 命​​​​​​​令​​​​​​​向​​​​​​​默​​​​​​​认​​​​​​​显​​​​​​​示​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​以​​​​​​​下​​​​​​​字​​​​​​​段​​​​​​​: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

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 Devices 组​​​​​​​成​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​基​​​​​​​本​​​​​​​设​​​​​​​备​​​​​​​:物​​​​​​​理​​​​​​​卷​​​​​​​、​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​以​​​​​​​及​​​​​​​起​​​​​​​始​​​​​​​物​​​​​​​理​​​​​​​和​​​​​​​逻​​​​​​​辑​​​​​​​扩​​​​​​​展​​​​​​​
lv_attr Attr 逻​​​​​​​辑​​​​​​​卷​​​​​​​状​​​​​​​态​​​​​​​。​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​属​​​​​​​性​​​​​​​字​​​​​​​节​​​​​​​如​​​​​​​下​​​​​​​:
字​​​​​​​节​​​​​​​ 1:卷​​​​​​​类​​​​​​​型​​​​​​​:镜​​​​​​​像​​​​​​​(m)、​​​​​​​不​​​​​​​带​​​​​​​初​​​​​​​始​​​​​​​同​​​​​​​步​​​​​​​的​​​​​​​镜​​​​​​​像​​​​​​​(M )、​​​​​​​源​​​​​​​(o)、​​​​​​​pvmove(p)、​​​​​​​快​​​​​​​照​​​​​​​(s)、​​​​​​​不​​​​​​​可​​​​​​​用​​​​​​​快​​​​​​​照​​​​​​​(S)、​​​​​​​虚​​​​​​​拟​​​​​​​(v)
字​​​​​​​节​​​​​​​ 2:权​​​​​​​限​​​​​​​:可​​​​​​​写​​​​​​​入​​​​​​​(w),只​​​​​​​读​​​​​​​(r)
字​​​​​​​节​​​​​​​ 3:分​​​​​​​配​​​​​​​策​​​​​​​略​​​​​​​:持​​​​​​​续​​​​​​​(c)、​​​​​​​正​​​​​​​常​​​​​​​(n)、​​​​​​​任​​​​​​​意​​​​​​​(a)、​​​​​​​继​​​​​​​承​​​​​​​(i)。​​​​​​​如​​​​​​​果​​​​​​​在​​​​​​​修​​​​​​​改​​​​​​​分​​​​​​​配​​​​​​​时​​​​​​​锁​​​​​​​定​​​​​​​了​​​​​​​卷​​​​​​​,就​​​​​​​会​​​​​​​显​​​​​​​示​​​​​​​成​​​​​​​大​​​​​​​写​​​​​​​,比​​​​​​​如​​​​​​​在​​​​​​​执​​​​​​​行​​​​​​​ pvmove 命​​​​​​​令​​​​​​​的​​​​​​​时​​​​​​​候​​​​​​​。​​​​​​​
字​​​​​​​节​​​​​​​ 4:固​​​​​​​定​​​​​​​的​​​​​​​副​​​​​​​号​​​​​​​码​​​​​​​(m)
字​​​​​​​节​​​​​​​ 5:激​​​​​​​活​​​​​​​(a)、​​​​​​​暂​​​​​​​停​​​​​​​的​​​​​​​(s)、​​​​​​​不​​​​​​​可​​​​​​​用​​​​​​​快​​​​​​​照​​​​​​​(I)、​​​​​​​不​​​​​​​可​​​​​​​用​​​​​​​暂​​​​​​​停​​​​​​​快​​​​​​​照​​​​​​​(S)、​​​​​​​不​​​​​​​带​​​​​​​表​​​​​​​格​​​​​​​的​​​​​​​映​​​​​​​射​​​​​​​设​​​​​​​备​​​​​​​(d)、​​​​​​​带​​​​​​​未​​​​​​​激​​​​​​​活​​​​​​​表​​​​​​​格​​​​​​​的​​​​​​​映​​​​​​​射​​​​​​​设​​​​​​​备​​​​​​​(i)
字​​​​​​​节​​​​​​​ 6:设​​​​​​​备​​​​​​​开​​​​​​​放​​​​​​​(o)
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 附​​​​​​​加​​​​​​​到​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​ LV 标​​​​​​​签​​​​​​​
lv_uuid LV UUID 逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​ UUID
mirror_log Log 镜​​​​​​​像​​​​​​​分​​​​​​​支​​​​​​​所​​​​​​​在​​​​​​​设​​​​​​​备​​​​​​​
modules Modules 使​​​​​​​用​​​​​​​此​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​符​​​​​​​合​​​​​​​内​​​​​​​核​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​目​​​​​​​标​​​​​​​需​​​​​​​要​​​​​​​
move_pv Move 用​​​​​​​ pvmove 命​​​​​​​令​​​​​​​创​​​​​​​建​​​​​​​的​​​​​​​临​​​​​​​时​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​源​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​
origin Origin 快​​​​​​​照​​​​​​​卷​​​​​​​的​​​​​​​源​​​​​​​设​​​​​​​备​​​​​​​
regionsize
region_size
Region 镜​​​​​​​像​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​单​​​​​​​元​​​​​​​大​​​​​​​小​​​​​​​
seg_count #Seg 逻​​​​​​​辑​​​​​​​卷​​​​​​​中​​​​​​​片​​​​​​​段​​​​​​​的​​​​​​​数​​​​​​​目​​​​​​​
seg_size SSize 逻​​​​​​​辑​​​​​​​卷​​​​​​​中​​​​​​​片​​​​​​​段​​​​​​​的​​​​​​​大​​​​​​​小​​​​​​​
seg_start Start 修​​​​​​​正​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​中​​​​​​​的​​​​​​​片​​​​​​​段​​​​​​​
seg_tags Seg Tags 附​​​​​​​加​​​​​​​到​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​片​​​​​​​段​​​​​​​的​​​​​​​ LVM 标​​​​​​​签​​​​​​​
segtype Type 逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​片​​​​​​​段​​​​​​​类​​​​​​​型​​​​​​​(例​​​​​​​如​​​​​​​:镜​​​​​​​像​​​​​​​、​​​​​​​条​​​​​​​状​​​​​​​、​​​​​​​线​​​​​​​性​​​​​​​)
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
使​​​​​​​用​​​​​​​带​​​​​​​ -v 参​​​​​​​数​​​​​​​的​​​​​​​ lvs 命​​​​​​​令​​​​​​​在​​​​​​​默​​​​​​​认​​​​​​​显​​​​​​​示​​​​​​​结​​​​​​​果​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​以​​​​​​​下​​​​​​​字​​​​​​​段​​​​​​​: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 排​​​​​​​序​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​中​​​​​​​有​​​​​​​碎​​​​​​​片​​​​​​​,那​​​​​​​么​​​​​​​会​​​​​​​在​​​​​​​此​​​​​​​命​​​​​​​令​​​​​​​的​​​​​​​输​​​​​​​出​​​​​​​结​​​​​​​果​​​​​​​中​​​​​​​显​​​​​​​示​​​​​​​出​​​​​​​来​​​​​​​。​​​​​​​
# 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
使​​​​​​​用​​​​​​​带​​​​​​​ -v 参​​​​​​​数​​​​​​​的​​​​​​​ lvs --segments 命​​​​​​​令​​​​​​​向​​​​​​​默​​​​​​​认​​​​​​​显​​​​​​​示​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​以​​​​​​​下​​​​​​​字​​​​​​​段​​​​​​​: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 命​​​​​​​令​​​​​​​的​​​​​​​默​​​​​​​认​​​​​​​输​​​​​​​出​​​​​​​结​​​​​​​果​​​​​​​以​​​​​​​及​​​​​​​指​​​​​​​定​​​​​​​了​​​​​​​ segments 参​​​​​​​数​​​​​​​的​​​​​​​ lvs 命​​​​​​​令​​​​​​​输​​​​​​​出​​​​​​​结​​​​​​​果​​​​​​​。​​​​​​​
# 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
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.