Red Hat Training

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

20.33. Dumping Storage Volume Information to an XML File

The virsh vol-dumpxml vol command takes the volume information, creates an XML file with the contents and outputs it to the settings that are set on the stdout stream. Optionally, you can supply the name of the associated storage pool using the --pool option.

Example 20.93. How to dump the contents of a storage volume

The following example dumps the contents of the storage volume named vol-new into an XML file:
# virsh vol-dumpxml vol-new