Softaculous


Topic : Question about raw kvm images


Posted By: webtel on January 11, 2017, 1:44 pm
I just want to confirm something.

If I create a VPS with raw filesystem and specify the drive to be about 500gb. Will the raw file take up 500gb on the host server or will it only take up the amount of space used by the VPS itself. So if I run df -h it will show drive size as 500GB and used space 50gb and available 450gb. Would this raw image file be 500gb in size on the host server or will it actually be 50gb and grow as data is added onto the vps?

Posted By: asim_shaikh on January 12, 2017, 6:37 am | Post: 1
Hi,

Quote
I just want to confirm something.

If I create a VPS with raw filesystem and specify the drive to be
about 500gb. Will the raw file take up 500gb on the host server or will
it only take up the amount of space used by the VPS itself. So if I run
df -h it will show drive size as 500GB and used space 50gb and available
450gb. Would this raw image file be 500gb in size on the host server or
will it actually be 50gb and grow as data is added onto the vps?


It will consume only the space occupied by the data inside the VPS, for example if the VPS size is 500GB and the data inside the VPS is of 50GB, then .raw file will consume only 50GB and will grow as the data will be added to the VPS.


-----------------------
Regards,
Virtualizor Team
http://www.virtualizor.com

Posted By: webtel on January 12, 2017, 8:29 am | Post: 2
Hi

I think my virtualizor is faulty then. I have a 700gb raw file but the actual data used in the vps is only 300gb. How can I fix this so that the raw file will be 300gb

Posted By: asim_shaikh on January 12, 2017, 8:44 am | Post: 3
Quote

I think my virtualizor is faulty then. I have a 700gb raw file but
the actual data used in the vps is only 300gb. How can I fix this so
that the raw file will be 300gb
   
   


May I know how are you checking the disk size ?
Can you execute "du -sh <path-to-disk/disk.raw>"  and "qemu-img info <path-to-disk/disk.raw>"and provide us the output ?


-----------------------
Regards,
Virtualizor Team
http://www.virtualizor.com

Posted By: webtel on January 12, 2017, 4:50 pm | Post: 4
On the host server:

root@web017 /vms $ du -sh  v1004-0mfv-94jlvza3oslwkxvx.raw

681G    v1004-0mfv-94jlvza3oslwkxvx.raw
root@web017/vms $ qemu-img info v1004-0mfv-94jlvza3oslwkxvx.rawimage: v1004-0mfv-94jlvza3oslwkxvx.raw
file format: raw
virtual size: 700G (751619276800 bytes)
disk size: 681G

On the vps if I run df -h
[root@backupza /]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1      682G  441G  207G  69% /
devtmpfs        2.0G    0  2.0G  0% /dev
tmpfs          2.0G    0  2.0G  0% /dev/shm
tmpfs          2.0G  25M  2.0G  2% /run
tmpfs          2.0G    0  2.0G  0% /sys/fs/cgroup
tmpfs          396M    0  396M  0% /run/user/0


You will see used space on the vps is only 441G

Posted By: asim_shaikh on January 14, 2017, 6:14 am | Post: 5
Hi,

Is the VPS migrated from any other server ?


-----------------------
Regards,
Virtualizor Team
http://www.virtualizor.com

Posted By: webtel on January 15, 2017, 4:30 am | Post: 6
No. The vps was created and always been on this server.

Posted By: asim_shaikh on January 16, 2017, 6:55 am | Post: 7
Quote
No. The vps was created and always been on this server.
   
   


We were not able to reproduce it at our end.
May I know what is the Host and the Guest OS chosen ?


-----------------------
Regards,
Virtualizor Team
http://www.virtualizor.com

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.