
On Tuesday, March 8, 2016 3:44:46 PM, SATHEESARAN wrote:
Hi All,
When I tried to create preallocated image with gluster , I am unable to create one The image gets created but not preallocated.
[root@ ]# qemu-img create -f qcow2 -o preallocation=full gluster://host1.lab.eng.blr.redhat.com/rep3vol/vm3.img 3G Formatting 'gluster://dhcp37-61.lab.eng.blr.redhat.com/rep3vol/newvm3.img', fmt=qcow2 size=3221225472 encryption=off cluster_size=65536 preallocation='full' Unknown option 'preallocation'
Is it a known issue ?
PFA, As discussed, I'm able to create this without any issue (built qemu from source 'master'), If you are compiling it from source, make sure you configure it with option '--enable-glusterfs', which enables gluster related full/metedata preallocation mode related API's. # qemu-img create -f qcow2 -o preallocation=metadata gluster://10.70.1.86/sample/test_metadata.qcow2 512M 2>&1 | tee test_metadata.log # qemu-img create -f qcow2 -o preallocation=full gluster://10.70.1.86/sample/test_full.qcow2 512M 2>&1 | tee test_full.log #/mnt $ ls -lh total 8.6G -rw------- 1 root root 513M Mar 9 08:19 test_full.qcow2 -rw------- 1 root root 513M Mar 9 08:19 test_metadata.qcow2 #/mnt $ du -sh ./* 513M ./test_full.qcow2 268K ./test_metadata.qcow2 In case if you are using pre-built binaries make sure they are built with above option -- Prasanna
-- Satheesaran S