Menu Close

Red Hat Training

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

6.2. 顯​​​​​​​示​​​​​​​錯​​​​​​​誤​​​​​​​裝​​​​​​​置​​​​​​​的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​

您​​​​​​​可​​​​​​​使​​​​​​​用​​​​​​​ lvs 或​​​​​​​ vgs 指​​​​​​​令​​​​​​​的​​​​​​​ -P 引​​​​​​​數​​​​​​​來​​​​​​​顯​​​​​​​示​​​​​​​原​​​​​​​本​​​​​​​不​​​​​​​會​​​​​​​出​​​​​​​現​​​​​​​在​​​​​​​輸​​​​​​​出​​​​​​​中​​​​​​​,有​​​​​​​關​​​​​​​於​​​​​​​錯​​​​​​​誤​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​。​​​​​​​這​​​​​​​個​​​​​​​引​​​​​​​數​​​​​​​允​​​​​​​許​​​​​​​了​​​​​​​一​​​​​​​些​​​​​​​作​​​​​​​業​​​​​​​的​​​​​​​進​​​​​​​行​​​​​​​,儘​​​​​​​管​​​​​​​內​​​​​​​部​​​​​​​的​​​​​​​ metadata 並​​​​​​​不​​​​​​​完​​​​​​​全​​​​​​​地​​​​​​​一​​​​​​​致​​​​​​​。​​​​​​​比​​​​​​​方​​​​​​​說​​​​​​​,若​​​​​​​構​​​​​​​成​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​ vg 的​​​​​​​其​​​​​​​中​​​​​​​一​​​​​​​個​​​​​​​裝​​​​​​​置​​​​​​​發​​​​​​​生​​​​​​​錯​​​​​​​誤​​​​​​​的​​​​​​​話​​​​​​​,vgs 指​​​​​​​令​​​​​​​可​​​​​​​能​​​​​​​會​​​​​​​顯​​​​​​​示​​​​​​​下​​​​​​​列​​​​​​​輸​​​​​​​出​​​​​​​。​​​​​​​
[root@link-07 tmp]# vgs -o +devices
  Volume group "vg" not found
若​​​​​​​您​​​​​​​指​​​​​​​定​​​​​​​了​​​​​​​ vgs 指​​​​​​​令​​​​​​​的​​​​​​​ -P 引​​​​​​​數​​​​​​​的​​​​​​​話​​​​​​​,卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​還​​​​​​​是​​​​​​​無​​​​​​​法​​​​​​​使​​​​​​​用​​​​​​​,不​​​​​​​過​​​​​​​您​​​​​​​可​​​​​​​看​​​​​​​見​​​​​​​更​​​​​​​多​​​​​​​有​​​​​​​關​​​​​​​於​​​​​​​錯​​​​​​​誤​​​​​​​裝​​​​​​​置​​​​​​​的​​​​​​​相​​​​​​​關​​​​​​​資​​​​​​​訊​​​​​​​。​​​​​​​
[root@link-07 tmp]# vgs -P -o +devices
  Partial mode. Incomplete volume groups will be activated read-only.
  VG   #PV #LV #SN Attr   VSize VFree Devices
  vg     9   2   0 rz-pn- 2.11T 2.07T unknown device(0)
  vg     9   2   0 rz-pn- 2.11T 2.07T unknown device(5120),/dev/sda1(0)
在​​​​​​​此​​​​​​​範​​​​​​​例​​​​​​​中​​​​​​​,錯​​​​​​​誤​​​​​​​的​​​​​​​裝​​​​​​​置​​​​​​​會​​​​​​​造​​​​​​​成​​​​​​​卷​​​​​​​冊​​​​​​​群​​​​​​​組​​​​​​​中​​​​​​​的​​​​​​​線​​​​​​​性​​​​​​​和​​​​​​​等​​​​​​​量​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​發​​​​​​​生​​​​​​​錯​​​​​​​誤​​​​​​​。​​​​​​​缺​​​​​​​少​​​​​​​了​​​​​​​ -P 引​​​​​​​數​​​​​​​的​​​​​​​ lvs 指​​​​​​​令​​​​​​​會​​​​​​​顯​​​​​​​示​​​​​​​下​​​​​​​列​​​​​​​輸​​​​​​​出​​​​​​​。​​​​​​​
[root@link-07 tmp]# lvs -a -o +devices
  Volume group "vg" not found
使​​​​​​​用​​​​​​​ -P 引​​​​​​​數​​​​​​​來​​​​​​​顯​​​​​​​示​​​​​​​錯​​​​​​​誤​​​​​​​的​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​。​​​​​​​
[root@link-07 tmp]# lvs -P -a -o +devices
  Partial mode. Incomplete volume groups will be activated read-only.
  LV     VG   Attr   LSize  Origin Snap%  Move Log Copy%  Devices
  linear vg   -wi-a- 20.00G                               unknown device(0)
  stripe vg   -wi-a- 20.00G                               unknown device(5120),/dev/sda1(0)
下​​​​​​​列​​​​​​​範​​​​​​​例​​​​​​​顯​​​​​​​示​​​​​​​了​​​​​​​當​​​​​​​某​​​​​​​個​​​​​​​鏡​​​​​​​像​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​的​​​​​​​ leg 發​​​​​​​生​​​​​​​錯​​​​​​​誤​​​​​​​時​​​​​​​而​​​​​​​使​​​​​​​用​​​​​​​了​​​​​​​ -P 引​​​​​​​數​​​​​​​的​​​​​​​ pvs 和​​​​​​​ lvs 指​​​​​​​令​​​​​​​的​​​​​​​輸​​​​​​​出​​​​​​​。​​​​​​​
root@link-08 ~]#  vgs -a -o +devices -P
  Partial mode. Incomplete volume groups will be activated read-only.
  VG    #PV #LV #SN Attr   VSize VFree Devices
  corey   4   4   0 rz-pnc 1.58T 1.34T my_mirror_mimage_0(0),my_mirror_mimage_1(0)
  corey   4   4   0 rz-pnc 1.58T 1.34T /dev/sdd1(0)
  corey   4   4   0 rz-pnc 1.58T 1.34T unknown device(0)
  corey   4   4   0 rz-pnc 1.58T 1.34T /dev/sdb1(0)
[root@link-08 ~]# lvs -a -o +devices -P
  Partial mode. Incomplete volume groups will be activated read-only.
  LV                   VG    Attr   LSize   Origin Snap%  Move Log            Copy%  Devices
  my_mirror            corey mwi-a- 120.00G                    my_mirror_mlog   1.95 my_mirror_mimage_0(0),my_mirror_mimage_1(0)
  [my_mirror_mimage_0] corey iwi-ao 120.00G                                          unknown device(0)
  [my_mirror_mimage_1] corey iwi-ao 120.00G                                          /dev/sdb1(0)
  [my_mirror_mlog]     corey lwi-ao   4.00M                                          /dev/sdd1(0)