第 6 章 LVM 故​​​​​​​障​​​​​​​排​​​​​​​除​​​​​​​

本​​​​​​​章​​​​​​​提​​​​​​​供​​​​​​​了​​​​​​​对​​​​​​​不​​​​​​​同​​​​​​​ LVM 问​​​​​​​题​​​​​​​进​​​​​​​行​​​​​​​故​​​​​​​障​​​​​​​排​​​​​​​除​​​​​​​的​​​​​​​操​​​​​​​作​​​​​​​方​​​​​​​法​​​​​​​。​​​​​​​

6.1. 故​​​​​​​障​​​​​​​排​​​​​​​除​​​​​​​诊​​​​​​​断​​​​​​​

如​​​​​​​果​​​​​​​某​​​​​​​个​​​​​​​命​​​​​​​令​​​​​​​没​​​​​​​有​​​​​​​按​​​​​​​照​​​​​​​预​​​​​​​期​​​​​​​执​​​​​​​行​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​用​​​​​​​以​​​​​​​下​​​​​​​方​​​​​​​法​​​​​​​收​​​​​​​集​​​​​​​诊​​​​​​​断​​​​​​​信​​​​​​​息​​​​​​​:
  • 使​​​​​​​用​​​​​​​命​​​​​​​令​​​​​​​的​​​​​​​ -v、​​​​​​​-vv、​​​​​​​-vvv 或​​​​​​​者​​​​​​​ -vvvv 选​​​​​​​现​​​​​​​提​​​​​​​高​​​​​​​输​​​​​​​出​​​​​​​信​​​​​​​息​​​​​​​的​​​​​​​详​​​​​​​细​​​​​​​程​​​​​​​度​​​​​​​。​​​​​​​
  • If the problem is related to the logical volume activation, set 'activation = 1' in the 'log' section of the configuration file and run the command with the -vvvv argument. After you have finished examining this output be sure to reset this parameter to 0, to avoid possible problems with the machine locking during low memory situations.
  • 运​​​​​​​行​​​​​​​ lvmdump 命​​​​​​​令​​​​​​​可​​​​​​​为​​​​​​​诊​​​​​​​断​​​​​​​提​​​​​​​供​​​​​​​信​​​​​​​息​​​​​​​转​​​​​​​储​​​​​​​。​​​​​​​有​​​​​​​关​​​​​​​详​​​​​​​情​​​​​​​请​​​​​​​参​​​​​​​考​​​​​​​ lvmdump(8) man page。​​​​​​​
  • 执​​​​​​​行​​​​​​​ lvs -v、​​​​​​​pvs -a 或​​​​​​​者​​​​​​​ dmsetup info -c 命​​​​​​​令​​​​​​​以​​​​​​​获​​​​​​​得​​​​​​​额​​​​​​​外​​​​​​​的​​​​​​​系​​​​​​​统​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​
  • 检​​​​​​​查​​​​​​​ /etc/lvm/backup 文​​​​​​​件​​​​​​​中​​​​​​​最​​​​​​​后​​​​​​​的​​​​​​​元​​​​​​​数​​​​​​​据​​​​​​​备​​​​​​​份​​​​​​​和​​​​​​​ /etc/lvm/archive 中​​​​​​​的​​​​​​​归​​​​​​​档​​​​​​​版​​​​​​​本​​​​​​​。​​​​​​​
  • 通​​​​​​​过​​​​​​​运​​​​​​​行​​​​​​​ lvm dumpconfig 命​​​​​​​令​​​​​​​检​​​​​​​查​​​​​​​现​​​​​​​有​​​​​​​配​​​​​​​置​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​
  • 检​​​​​​​查​​​​​​​ /etc/lvm 中​​​​​​​的​​​​​​​ .cache 文​​​​​​​件​​​​​​​来​​​​​​​了​​​​​​​解​​​​​​​哪​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​中​​​​​​​有​​​​​​​物​​​​​​​理​​​​​​​卷​​​​​​​。​​​​​​​