Virsh pool-dumpxml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * virsh =Overview= Dumps the XML configuration of the specified storage pool.")
 
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[virsh#Commands|virsh]]
* [[virsh#Commands|virsh]]
* [[Linux Virtualization Info]]
* [[KVM Virtualization Storage Pool Info|KVM Virtualization Storage Pool Info Operations]]


=Overview=
=Overview=


Dumps the XML configuration of the specified storage pool.
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'>
  <font color=teal><'''name'''></font>main-storage-pool</name>
  <font color=teal><'''uuid'''></font>5e3b81b6-a596-404f-a091-ef738dc21df5</uuid>
  <font color=teal><'''capacity'''</font> unit='bytes'>938496245760</capacity>
  <font color=teal><'''allocation'''</font> unit='bytes'>610673180672</allocation>
  <font color=teal><'''available'''</font> unit='bytes'>327823065088</available>
  &#60;source>
    <font color=teal><'''device'''</font> path='/dev/sda7'/>
    <format type='auto'/>
  </source>
  <target>
    <font color=teal><'''path'''></font>/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>

Latest revision as of 20:25, 3 November 2017

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>