Skip to content

Instantly share code, notes, and snippets.

@LalatenduMohanty
Forked from praveenkumar/volume_net_dump.xml
Created November 22, 2018 09:20
Show Gist options
  • Save LalatenduMohanty/759b462166edb4c0b4b2a2f649a69651 to your computer and use it in GitHub Desktop.
Save LalatenduMohanty/759b462166edb4c0b4b2a2f649a69651 to your computer and use it in GitHub Desktop.
Installer resources dump
[root@local images]# virsh net-dumpxml test1
<network>
<name>test1</name>
<uuid>7a102928-813d-4135-aaf2-e52908bb5573</uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='tt0' stp='on' delay='0'/>
<mac address='52:54:00:82:d1:71'/>
<domain name='tt.testing' localOnly='yes'/>
<dns>
<srv service='etcd-server-ssl' protocol='tcp' domain='test1.tt.testing' target='test1-etcd-0.tt.testing' port='2380' weight='10'/>
<host ip='192.168.126.11'>
<hostname>test1-api</hostname>
<hostname>test1-etcd-0</hostname>
</host>
<host ip='192.168.126.50'>
<hostname>test1</hostname>
</host>
</dns>
<ip family='ipv4' address='192.168.126.1' prefix='24'>
<dhcp>
<host mac='a6:72:38:f4:7c:b7' name='test1-bootstrap' ip='192.168.126.10'/>
<host mac='b2:70:01:00:a6:68' name='test1-master-0' ip='192.168.126.11'/>
<host mac='9e:e2:76:c6:f6:0a' name='test1-worker-0-g5c82' ip='192.168.126.51'/>
</dhcp>
</ip>
</network>
[root@local images]# virsh pool-list
Name State Autostart
-------------------------------------------
default active yes
[root@local images]# virsh pool-dumpxml default
<pool type='dir'>
<name>default</name>
<uuid>72e3d915-d6b6-403f-8018-6337f11eea17</uuid>
<capacity unit='bytes'>105553100800</capacity>
<allocation unit='bytes'>50299256832</allocation>
<available unit='bytes'>55253843968</available>
<source>
</source>
<target>
<path>/var/lib/libvirt/images</path>
<permissions>
<mode>0711</mode>
<owner>0</owner>
<group>0</group>
<label>system_u:object_r:virt_image_t:s0</label>
</permissions>
</target>
</pool>
[root@local images]# virsh vol-list default
Name Path
------------------------------------------------------------------------------
test1-base /var/lib/libvirt/images/test1-base
test1-master-0 /var/lib/libvirt/images/test1-master-0
test1-master.ign /var/lib/libvirt/images/test1-master.ign
test1-worker-0-g5c82 /var/lib/libvirt/images/test1-worker-0-g5c82
test1-worker.ign /var/lib/libvirt/images/test1-worker.ign
[root@local images]# virsh vol-dumpxml test1-base default
<volume type='file'>
<name>test1-base</name>
<key>/var/lib/libvirt/images/test1-base</key>
<source>
</source>
<capacity unit='bytes'>17179869184</capacity>
<allocation unit='bytes'>1715212288</allocation>
<physical unit='bytes'>1715208192</physical>
<target>
<path>/var/lib/libvirt/images/test1-base</path>
<format type='qcow2'/>
<permissions>
<mode>0644</mode>
<owner>107</owner>
<group>107</group>
<label>system_u:object_r:virt_content_t:s0</label>
</permissions>
<timestamps>
<atime>1542790779.028896713</atime>
<mtime>1542790775.850899341</mtime>
<ctime>1542790777.982897578</ctime>
</timestamps>
<compat>1.1</compat>
<features/>
</target>
</volume>
[root@local images]# virsh vol-dumpxml test1-master-0 default
<volume type='file'>
<name>test1-master-0</name>
<key>/var/lib/libvirt/images/test1-master-0</key>
<source>
</source>
<capacity unit='bytes'>17179869184</capacity>
<allocation unit='bytes'>4685766656</allocation>
<physical unit='bytes'>4685824000</physical>
<target>
<path>/var/lib/libvirt/images/test1-master-0</path>
<format type='qcow2'/>
<permissions>
<mode>0644</mode>
<owner>0</owner>
<group>0</group>
<label>system_u:object_r:virt_image_t:s0</label>
</permissions>
<timestamps>
<atime>1542794140.729802896</atime>
<mtime>1542794140.694802842</mtime>
<ctime>1542794141.028803364</ctime>
</timestamps>
</target>
<backingStore>
<path>/var/lib/libvirt/images/test1-base</path>
<format type='qcow2'/>
<permissions>
<mode>0644</mode>
<owner>107</owner>
<group>107</group>
<label>system_u:object_r:virt_content_t:s0</label>
</permissions>
<timestamps>
<atime>1542790779.028896713</atime>
<mtime>1542790775.850899341</mtime>
<ctime>1542790777.982897578</ctime>
</timestamps>
</backingStore>
</volume>
[root@local images]# virsh vol-dumpxml test1-master.ign default
<volume type='file'>
<name>test1-master.ign</name>
<key>/var/lib/libvirt/images/test1-master.ign</key>
<source>
</source>
<capacity unit='bytes'>2251</capacity>
<allocation unit='bytes'>4096</allocation>
<physical unit='bytes'>2251</physical>
<target>
<path>/var/lib/libvirt/images/test1-master.ign</path>
<format type='raw'/>
<permissions>
<mode>0644</mode>
<owner>0</owner>
<group>0</group>
<label>system_u:object_r:virt_image_t:s0</label>
</permissions>
<timestamps>
<atime>1542790775.877899319</atime>
<mtime>1542790775.876899320</mtime>
<ctime>1542790775.876899320</ctime>
</timestamps>
</target>
</volume>
[root@local images]# virsh vol-dumpxml test1-worker-0-g5c82 default
<volume type='file'>
<name>test1-worker-0-g5c82</name>
<key>/var/lib/libvirt/images/test1-worker-0-g5c82</key>
<source>
</source>
<capacity unit='bytes'>17706254336</capacity>
<allocation unit='bytes'>3138199552</allocation>
<physical unit='bytes'>3138256896</physical>
<target>
<path>/var/lib/libvirt/images/test1-worker-0-g5c82</path>
<format type='qcow2'/>
<permissions>
<mode>0644</mode>
<owner>0</owner>
<group>0</group>
<label>system_u:object_r:virt_image_t:s0</label>
</permissions>
<timestamps>
<atime>1542794131.884789065</atime>
<mtime>1542794131.862789031</mtime>
<ctime>1542794132.163789501</ctime>
</timestamps>
</target>
<backingStore>
<path>/var/lib/libvirt/images/test1-base</path>
<format type='qcow2'/>
<permissions>
<mode>0644</mode>
<owner>107</owner>
<group>107</group>
<label>system_u:object_r:virt_content_t:s0</label>
</permissions>
<timestamps>
<atime>1542790779.028896713</atime>
<mtime>1542790775.850899341</mtime>
<ctime>1542790777.982897578</ctime>
</timestamps>
</backingStore>
</volume>
[root@local images]# virsh vol-dumpxml test1-worker.ign default
<volume type='file'>
<name>test1-worker.ign</name>
<key>/var/lib/libvirt/images/test1-worker.ign</key>
<source>
</source>
<capacity unit='bytes'>2251</capacity>
<allocation unit='bytes'>4096</allocation>
<physical unit='bytes'>2251</physical>
<target>
<path>/var/lib/libvirt/images/test1-worker.ign</path>
<format type='raw'/>
<permissions>
<mode>0644</mode>
<owner>0</owner>
<group>0</group>
<label>system_u:object_r:virt_image_t:s0</label>
</permissions>
<timestamps>
<atime>1542790765.948907530</atime>
<mtime>1542790765.946907531</mtime>
<ctime>1542790765.946907531</ctime>
</timestamps>
</target>
</volume>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment