6.2. 在​​​​​​​失​​​​​​​败​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​中​​​​​​​显​​​​​​​示​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​

您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ lvs 或​​​​​​​者​​​​​​​ vgs 命​​​​​​​令​​​​​​​的​​​​​​​ -P 选​​​​​​​项​​​​​​​来​​​​​​​显​​​​​​​示​​​​​​​那​​​​​​​些​​​​​​​没​​​​​​​有​​​​​​​出​​​​​​​现​​​​​​​在​​​​​​​输​​​​​​​出​​​​​​​结​​​​​​​果​​​​​​​中​​​​​​​的​​​​​​​失​​​​​​​败​​​​​​​卷​​​​​​​的​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​该​​​​​​​选​​​​​​​择​​​​​​​甚​​​​​​​至​​​​​​​允​​​​​​​许​​​​​​​一​​​​​​​些​​​​​​​内​​​​​​​部​​​​​​​元​​​​​​​数​​​​​​​据​​​​​​​不​​​​​​​完​​​​​​​全​​​​​​​统​​​​​​​一​​​​​​​时​​​​​​​的​​​​​​​操​​​​​​​作​​​​​​​。​​​​​​​例​​​​​​​如​​​​​​​:如​​​​​​​果​​​​​​​组​​​​​​​成​​​​​​​卷​​​​​​​组​​​​​​​ 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)
下​​​​​​​面​​​​​​​的​​​​​​​例​​​​​​​子​​​​​​​显​​​​​​​示​​​​​​​在​​​​​​​镜​​​​​​​像​​​​​​​逻​​​​​​​辑​​​​​​​卷​​​​​​​的​​​​​​​一​​​​​​​支​​​​​​​出​​​​​​​错​​​​​​​时​​​​​​​,带​​​​​​​ -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)