Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : Question about raw kvm images



Threaded Mode | Print  

 Question about raw kvm images (7 Replies, Read 545 times)
webtel
Group: Member
Post Group: Newbie
Posts: 8
Status:
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?
IP: --   

Question about raw kvm images
asim_shaikh
Group: Virtualizor Team
Post Group: Elite Member
Posts: 342
Status:
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
IP: --   

Question about raw kvm images
webtel
Group: Member
Post Group: Newbie
Posts: 8
Status:
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
IP: --   

Question about raw kvm images
asim_shaikh
Group: Virtualizor Team
Post Group: Elite Member
Posts: 342
Status:
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
IP: --   

Question about raw kvm images
webtel
Group: Member
Post Group: Newbie
Posts: 8
Status:
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
IP: --   

Question about raw kvm images
asim_shaikh
Group: Virtualizor Team
Post Group: Elite Member
Posts: 342
Status:
Hi,

Is the VPS migrated from any other server ?


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

Question about raw kvm images
webtel
Group: Member
Post Group: Newbie
Posts: 8
Status:
No. The vps was created and always been on this server.
IP: --   

Question about raw kvm images
asim_shaikh
Group: Virtualizor Team
Post Group: Elite Member
Posts: 342
Status:
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
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is January 22, 2017, 6:00 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.697