[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Xen image filesize weirdness



On Sunday May 25 2008 09:54:27 pm Christopher Isip wrote:
> I cant wrap my head around this.
>
> ls -l /mnt/VM
>
> total 13299232
> -rw-r--r-- 1 root root 4195352576 May 25 21:51 Centos-Asterisk.img
> -rw-r--r-- 1 root root 2147483648 May 25 21:51 Centos-Nagios.img
> -rw-r--r-- 1 root root 2147483648 May 25 21:51 Centos-Squid.img
>  drwx------ 2 root root 16384 Apr 4 15:02 lost+found
> -rw-r----- 1 root root 12583960576 May 25 16:40 Ubuntu-Hardy-Mysql.img
> -rw-r--r-- 1 root rootÂÂ 419430400 May 25 07:50 Ubuntu-Hardy-Mysql-swap.img
> -rw-r----- 1 root root 4194304000 May 25 07:49 Ubuntu-Hardy-Mythtv.img
>  -rw-r--r-- 1 root rootÂÂ 419430400 May 25 07:30
> Ubuntu-Hardy-Mythtv-swap.img
>
>
> du -hsc /mnt/VM/*
> 2.0GÂÂÂ /mnt/VM/Centos-Asterisk.img
> 1.1GÂÂÂ /mnt/VM/Centos-Nagios.img
> 998MÂÂÂ /mnt/VM/Centos-Squid.img
>  16KÂÂÂÂ /mnt/VM/lost+found
> 4.1GÂÂÂ /mnt/VM/Ubuntu-Hardy-Mysql.img
> 401MÂÂÂ /mnt/VM/Ubuntu-Hardy-Mysql-swap.img
> 4.0GÂÂÂ /mnt/VM/Ubuntu-Hardy-Mythtv.img
> 401MÂÂÂ /mnt/VM/Ubuntu-Hardy-Mythtv-swap.img
> 13GÂÂÂÂ total

As James suggested, they maybe sparse files - especially since the swap files 
are fully filled out. Compare the output of your 'ls -l' 
to 'ls -l -s --block-size=1'.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.