From 88af7cacd3bf1becfceb7d2e42adc95c8e10a18c Mon Sep 17 00:00:00 2001
From: Michal Privoznik General metadata
- <pool type="iscsi">
- <name>virtimages</name>
- <uuid>3e3fce45-4f53-4fa7-bb32-11f34168b82b</uuid>
- <allocation>10000000</allocation>
- <capacity>50000000</capacity>
- <available>40000000</available>
- ...
+<pool type="iscsi">
+ <name>virtimages</name>
+ <uuid>3e3fce45-4f53-4fa7-bb32-11f34168b82b</uuid>
+ <allocation>10000000</allocation>
+ <capacity>50000000</capacity>
+ <available>40000000</available>
+ ...
name
- ... - <source> - <host name="iscsi.example.com"/> - <device path="iqn.2013-06.com.example:iscsi-pool"/> - <auth type='chap' username='myname'> - <secret usage='mycluster_myname'/> - </auth> - <vendor name="Acme"/> - <product name="model"/> - </source> - ...+... +<source> + <host name="iscsi.example.com"/> + <device path="iqn.2013-06.com.example:iscsi-pool"/> + <auth type='chap' username='myname'> + <secret usage='mycluster_myname'/> + </auth> + <vendor name="Acme"/> + <product name="model"/> +</source> +...
- ... - <source> - <device path='/dev/mapper/mpatha' part_separator='no'/> - <format type='gpt'/> - </source> - ...+... +<source> + <device path='/dev/mapper/mpatha' part_separator='no'/> + <format type='gpt'/> +</source> +...
- ... - <source> - <adapter type='scsi_host' name='scsi_host1'/> - </source> - ...+... +<source> + <adapter type='scsi_host' name='scsi_host1'/> +</source> +...
- ... - <source> - <adapter type='scsi_host'> - <parentaddr unique_id='1'> - <address domain='0x0000' bus='0x00' slot='0x1f' addr='0x2'/> - </parentaddr> - </adapter> - </source> - ...+... +<source> + <adapter type='scsi_host'> + <parentaddr unique_id='1'> + <address domain='0x0000' bus='0x00' slot='0x1f' addr='0x2'/> + </parentaddr> + </adapter> +</source> +...
- ... - <source> - <adapter type='fc_host' parent='scsi_host5' wwnn='20000000c9831b4b' wwpn='10000000c9831b4b'/> - </source> - ...+... +<source> + <adapter type='fc_host' parent='scsi_host5' wwnn='20000000c9831b4b' wwpn='10000000c9831b4b'/> +</source> +...
device
- ... - <target> - <path>/dev/disk/by-path</path> - <permissions> - <owner>107</owner> - <group>107</group> - <mode>0744</mode> - <label>virt_image_t</label> - </permissions> - <timestamps> - <atime>1341933637.273190990</atime> - <mtime>1341930622.047245868</mtime> - <ctime>1341930622.047245868</ctime> - </timestamps> - <encryption type='...'> - ... - </encryption> - </target> - </pool>+ ... + <target> + <path>/dev/disk/by-path</path> + <permissions> + <owner>107</owner> + <group>107</group> + <mode>0744</mode> + <label>virt_image_t</label> + </permissions> + <timestamps> + <atime>1341933637.273190990</atime> + <mtime>1341930622.047245868</mtime> + <ctime>1341930622.047245868</ctime> + </timestamps> + <encryption type='...'> + ... + </encryption> + </target> +</pool>
path
- <volume type='file'> - <name>sparse.img</name> - <key>/var/lib/xen/images/sparse.img</key> - <allocation>0</allocation> - <capacity unit="T">1</capacity> - ...+<volume type='file'> + <name>sparse.img</name> + <key>/var/lib/xen/images/sparse.img</key> + <allocation>0</allocation> + <capacity unit="T">1</capacity> + ...
name
- ... - <target> - <path>/var/lib/virt/images/sparse.img</path> - <format type='qcow2'/> - <permissions> - <owner>107</owner> - <group>107</group> - <mode>0744</mode> - <label>virt_image_t</label> - </permissions> - <compat>1.1</compat> - <nocow/> - <features> - <lazy_refcounts/> - </features> - </target>+... +<target> + <path>/var/lib/virt/images/sparse.img</path> + <format type='qcow2'/> + <permissions> + <owner>107</owner> + <group>107</group> + <mode>0744</mode> + <label>virt_image_t</label> + </permissions> + <compat>1.1</compat> + <nocow/> + <features> + <lazy_refcounts/> + </features> +</target>
path
- ... - <backingStore> - <path>/var/lib/virt/images/master.img</path> - <format type='raw'/> - <permissions> - <owner>107</owner> - <group>107</group> - <mode>0744</mode> - <label>virt_image_t</label> - </permissions> - </backingStore> - </volume>+ ... + <backingStore> + <path>/var/lib/virt/images/master.img</path> + <format type='raw'/> + <permissions> + <owner>107</owner> + <group>107</group> + <mode>0744</mode> + <label>virt_image_t</label> + </permissions> + </backingStore> +</volume>
path
- <pool type="dir"> - <name>virtimages</name> - <target> - <path>/var/lib/virt/images</path> - </target> - </pool>+<pool type="dir"> + <name>virtimages</name> + <target> + <path>/var/lib/virt/images</path> + </target> +</pool>
- <pool type="iscsi"> - <name>virtimages</name> - <source> - <host name="iscsi.example.com"/> - <device path="iqn.2013-06.com.example:iscsi-pool"/> - <auth type='chap' username='myuser'> - <secret usage='libvirtiscsi'/> - </auth> - </source> - <target> - <path>/dev/disk/by-path</path> - </target> - </pool>+<pool type="iscsi"> + <name>virtimages</name> + <source> + <host name="iscsi.example.com"/> + <device path="iqn.2013-06.com.example:iscsi-pool"/> + <auth type='chap' username='myuser'> + <secret usage='libvirtiscsi'/> + </auth> + </source> + <target> + <path>/dev/disk/by-path</path> + </target> +</pool>
- <volume> - <name>sparse.img</name> - <allocation>0</allocation> - <capacity unit="T">1</capacity> - <target> - <path>/var/lib/virt/images/sparse.img</path> - <permissions> - <owner>107</owner> - <group>107</group> - <mode>0744</mode> - <label>virt_image_t</label> - </permissions> - </target> - </volume>+<volume> + <name>sparse.img</name> + <allocation>0</allocation> + <capacity unit="T">1</capacity> + <target> + <path>/var/lib/virt/images/sparse.img</path> + <permissions> + <owner>107</owner> + <group>107</group> + <mode>0744</mode> + <label>virt_image_t</label> + </permissions> + </target> +</volume>
- <volume> - <name>MyLuks.img</name> - <capacity unit="G">5</capacity> - <target> - <path>/var/lib/virt/images/MyLuks.img</path> - <format type='raw'/> - <encryption format='luks'> - <secret type='passphrase' uuid='f52a81b2-424e-490c-823d-6bd4235bc572'/> - </encryption> - </target> - </volume> +<volume> + <name>MyLuks.img</name> + <capacity unit="G">5</capacity> + <target> + <path>/var/lib/virt/images/MyLuks.img</path> + <format type='raw'/> + <encryption format='luks'> + <secret type='passphrase' uuid='f52a81b2-424e-490c-823d-6bd4235bc572'/> + </encryption> + </target> +</volume>