Red Hat Training

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

14.5.5. 显示设备块统计信息

此命令将显示正在运行的域的块统计信息。您需要具有域名和设备名称(使用 virsh domblklist 列出设备)。在这种情况下,块设备是唯一目标名称(<target dev='name'/>)或源文件(< source file ='name'/>)。请注意,并非每个虚拟机监控程序都可以显示每个字段。要确保输出在最方便的表单中显示,请使用 --human 选项,如下所示:
# virsh domblklist rhel6
Target     Source
------------------------------------------------
vda        /VirtualMachines/rhel6.img
hdc        -

# virsh domblkstat --human rhel6 vda
Device: vda
 number of read operations:      174670
 number of bytes read:           3219440128
 number of write operations:     23897
 number of bytes written:        164849664
 number of flush operations:     11577
 total duration of reads (ns):   1005410244506
 total duration of writes (ns):  1085306686457
 total duration of flushes (ns): 340645193294