RHEV does not seem to be actually thin provisioning RHEVM 3.1

Latest response

Hi all, Thin provisioning does not seem to be happening. I created some VMs and assigned them thin provisioned disks in the GUI. The images on my NFS are the full size of the specified volume and the command line used to spawn the qemu process specifies a raw disk image. Am I missing something? Thanks, Andrew 

 

Responses

 

[root@kvm001 20980]# ls -l /rhev/data-center/3ecf6306-3fa6-11e2-b544-00215e253fcc/b2a3daf4-7315-4cd8-a076-4ab005db7410/images/8c3541ea-9b89-4837-b98a-ae97feae6765/c90ceaf1-9c3a-42e6-b1a2-939fc1403fcb

-rw-rw----+ 1 vdsm kvm 107374182400 2012-12-07 12:11 /rhev/data-center/3ecf6306-3fa6-11e2-b544-00215e253fcc/b2a3daf4-7315-4cd8-a076-4ab005db7410/images/8c3541ea-9b89-4837-b98a-ae97feae6765/c90ceaf1-9c3a-42e6-b1a2-939fc1403fcb

[root@kvm001 20980]# cat cmdline
/usr/libexec/qemu-kvm-S-Mrhel6.3.0-cpuSandyBridge-enable-kvm-m4096-smp4,sockets=4,cores=1,threads=1-namecheese03-uuidd782ef0b-07c6-4950-873d-def2acde8d82-smbiostype=1,manufacturer=Red Hat,product=RHEV Hypervisor,version=6.3-20121121.0.el6_3,serial=32333536-3030-5A43-3232-32383046375A_E4:11:5B:62:F1:18,uuid=d782ef0b-07c6-4950-873d-def2acde8d82-nodefconfig-nodefaults-chardevsocket,id=charmonitor,path=/var/lib/libvirt/qemu/cheese03.monitor,server,nowait-monchardev=charmonitor,id=monitor,mode=control-rtcbase=2012-12-06T22:33:31,driftfix=slew-no-shutdown-devicepiix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2-devicevirtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x4-driveif=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,serial=-deviceide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0-drivefile=/rhev/data-center/3ecf6306-3fa6-11e2-b544-00215e253fcc/b2a3daf4-7315-4cd8-a076-4ab005db7410/images/8c3541ea-9b89-4837-b98a-ae97feae6765/c90ceaf1-9c3a-42e6-b1a2-939fc1403fcb,if=none,id=drive-virtio-disk0,format=raw,serial=8c3541ea-9b89-4837-b98a-ae97feae6765,cache=none,werror=stop,rerror=stop,aio=threads-devicevirtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0-netdevtap,fd=26,id=hostnet0,vhost=on,vhostfd=27-devicevirtio-net-pci,netdev=hostnet0,id=net0,mac=00:00:00:00:03:00,bus=pci.0,addr=0x3,bootindex=1-chardevsocket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/cheese03.com.redhat.rhevm.vdsm,server,nowait-devicevirtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm-chardevsocket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/cheese03.org.qemu.guest_agent.0,server,nowait-devicevirtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0-chardevspicevmc,id=charchannel2,name=vdagent-devicevirtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0-spiceport=5900,tls-port=5901,addr=0,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir-ken-us-vgaqxl-globalqxl-vga.vram_size=67108864-devicevirtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6

Can you delete comments?

Instead of "ls", please check the acutal image size using "du -sch".

Ah, that looks a bit better.

Is there any documentation on how RHEV handles all this? Is this Qcow2?

Thanks,

Andrew

to verify the file format, use qemu-img info /path/to/filename

 

RHEV uses RAW for preallocated, flat images, and QCOW2 for thin provisioned images and snapshots

thanks :)

Hey Andrew, and thanks for contributing to our Groups! User can't delete their own comments at this time, but we generally stay on top of these things to delete duplicate comments, etc, when needed. Don't hesitate to email me at hhutton@redhat.com if I can provide assistance.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.