Changes

Qemu native GlusterFS integration

1,172 bytes added, 06:32, 4 August 2013
;<code>disk-type</code>:has to be <code>network</code> instead of <code>file</code>
;<code>source</code>:has now a <code>protocol</code> and a <code>name</code> instead of a <code>file</code> attribute as well as a new subelement <code>host</code>, where the <code>name</code> is the filename without <code>/var/</code>
 
= Test =
 
== qemu-img info ==
 
<pre>
foss-cloud-node-01 ~ # qemu-img info gluster://10.1.120.11:24007/virtualization/vm-templates/5b77d2f6-061f-410c-8ee7-9e61da6f1927/f3d87cf9-f7d8-4224-b908-cc9fc6c8fcd4.qcow2
image: gluster://10.1.120.11:24007/virtualization/vm-templates/5b77d2f6-061f-410c-8ee7-9e61da6f1927/f3d87cf9-f7d8-4224-b908-cc9fc6c8fcd4.qcow2
file format: qcow2
virtual size: 10G (10737418240 bytes)
disk size: 874M
cluster_size: 65536
</pre>
 
== qemu-img create ==
 
<pre>
foss-cloud-node-01 ~ # qemu-img create -f qcow2 gluster://10.1.120.11/virtualization/foo.qcow2 20G
Formatting 'gluster://10.1.120.11/virtualization/foo.qcow2', fmt=qcow2 size=21474836480 encryption=off cluster_size=65536 lazy_refcounts=off
foss-cloud-node-01 ~ # stat /var/virtualization/foo.qcow2
File: ‘/var/virtualization/foo.qcow2’
Size: 197120 Blocks: 385 IO Block: 131072 regular file
Device: 1ch/28d Inode: 11101537565691465327 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2013-08-04 07:37:01.814422718 +0200
Modify: 2013-08-04 08:31:51.968884606 +0200
Change: 2013-08-04 08:31:51.968884606 +0200
Birth: -
</pre>
[[Category:Snippets]]
Bureaucrat, administrator
425
edits