domblkstat

Displays status information about a virtual block device.

Syntax

Read syntax diagramSkip visual syntax diagram domblkstat  --domain <VS> <device-name>  --human
Where:
<device-name>
Is the name of the virtual block device.
<VS>
Is the name, the ID, or the UUID of the virtual server.

Selected options

--domain
Specifies the virtual server.
--human
Replaces abbreviations by written-out information.

Usage

Displaying information about a virtual server

Example

Obtain the device names of the block devices of virtual server vserv1:
# virsh domblklist vserv1
Target     Source
------------------------------------------------
vda        /dev/disk/by-id/dm-uuid-mpath-36005076305ffc1ae00000000000023be
Obtain information about the virtual block device vda:
#  virsh domblkstat vserv1 vda
vda rd_req 20359
vda rd_bytes 235967488
vda wr_req 4134
vda wr_bytes 52682752
vda flush_operations 1330
vda rd_total_times 49294200385
vda wr_total_times 4403369039
vda flush_total_times 256032781
Alternatively, display written-out information:
# virsh domblkstat vserv vda --human
Device: vda
 number of read operations:      20359
 number of bytes read:           235967488
 number of write operations:     4348
 number of bytes written:        54353920
 number of flush operations:     1372
 total duration of reads (ns):   49294200385
 total duration of writes (ns):  4626108064
 total duration of flushes (ns): 265417103