Virsh pool-dumpxml

From NovaOrdis Knowledge Base
Revision as of 20:25, 3 November 2017 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

Dumps the XML configuration of the specified storage pool. The XML contains detailed information about the storage pool, including:

  • the name
  • the ID
  • the capacity/used space/available space
  • the virtualization host device the pool resides on
  • the mount point in the virtualization host file system
  • etc.
virsh pool-dumpxml main-storage-pool
<pool type='fs'>
 <name>main-storage-pool</name>
 <uuid>5e3b81b6-a596-404f-a091-ef738dc21df5</uuid>
 <capacity unit='bytes'>938496245760</capacity>
 <allocation unit='bytes'>610673180672</allocation>
 <available unit='bytes'>327823065088</available>
 <source>
   <device path='/dev/sda7'/>
   <format type='auto'/>
 </source>
 <target>
   <path>/main-storage-pool</path>
   <permissions>
     <mode>0755</mode>
     <owner>0</owner>
     <group>0</group>
     <label>system_u:object_r:unlabeled_t:s0</label>
   </permissions>
 </target>
</pool>