[xen-tools-discuss] Fwd: Re: xen-tools doesnt show correct harddrive space usage after creating an domu

bobbisanchez at gmx.de bobbisanchez at gmx.de
Mon Jul 28 14:19:41 CEST 2014


ok sorry i will begin from beginning again cause stupid lines should now be fixed.
to shorten the test in time i reduzed the FULL image size to 10GB


SYSTEM-INFORMATIONS---START--->

uname -a
Linux dag 3.15.2 #2 SMP PREEMPT Sun Jun 29 17:16:11 CEST 2014 x86_64 GNU/Linux


sudo xl info
host                   : dag
release                : 3.15.2
version                : #2 SMP PREEMPT Sun Jun 29 17:16:11 CEST 2014
machine                : x86_64
nr_cpus                : 2
max_cpu_id             : 3
nr_nodes               : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 2530
hw_caps                : bfebfbff:20000800:00000000:00000900:0008e39d:00000000:00000001:00000000
virt_caps              :
total_memory           : 2293
free_memory            : 291
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
xen_major              : 4
xen_minor              : 5
xen_extra              : -unstable
xen_version            : 4.5-unstable
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : Fri Jun 27 15:56:05 2014 +0100 hg:937cf82a4936
xen_commandline        : placeholder
cc_compiler            : gcc (Debian 4.7.2-5) 4.7.2
cc_compile_by          : benutzer
cc_compile_domain      :
cc_compile_date        : Sun Jun 29 18:26:52 CEST 2014
xend_config_format     : 4

xen-create-image --version
xen-create-image release 4.4

(compiled from GIT)


sudo blkid | grep sda1 | awk '{print $3}'
TYPE="ext4"


a part from the xen-tools.conf
#
##
#  Disk and Sizing options.
##
#
size   = 80G       # Root disk, suffix (G, M, k) required
memory = 128M     # Suffix (G, M, k) required
#maxmem = 256M     # Suffix (G, M, k) optional
swap   = 128M     # Suffix (G, M, k) required
# noswap = 1      # Don't use swap at all for new systems.
fs     = ext3     # Default file system for any disk
dist   = `xt-guess-suite-and-mirror --suite`
                   # Default distribution is determined by Dom0's distribution
image  = full   # Specify sparse vs. full disk images (file based images only)

SYSTEM-INFORMATIONS---END--->

...

BEFORE CREATING THE IMAGE in FULL Mode ----->

df -hm /home/
Dateisystem    1M-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
/dev/sda9         137268   22805    107468   18% /home


now i try to create the image (FULL not SPARSE)----->

General Information
--------------------
Hostname       :  rtsp
Distribution   :  wheezy
Mirror         :  http://ftp.de.debian.org/debian/
Partitions     :  swap            128M  (swap)
                   /               10G   (ext3)
Image type     :  full
Memory size    :  128M
Kernel path    :  /boot/vmlinuz-3.15.2
Initrd path    :  /boot/initrd.img-3.15.2
----8<----cutted-----


cat /var/log/xen-tools/rtsp.log
----8<----cutted-----
Creating partition image: /home/xen/domains/rtsp/swap.img
1024+0 records in
1024+0 records out
134217728 bytes (134 MB) copied, 1.36507 s, 98.3 MB/s
Done

Creating swap on /home/xen/domains/rtsp/swap.img
Setting up swapspace version 1, size = 131068 KiB
no label, UUID=ef6931db-ce95-46c4-8c93-60abb5e82692
Done

Creating partition image: /home/xen/domains/rtsp/disk.img
1024+0 records in
1024+0 records out
10737418240 bytes (11 GB) copied, 177.787 s, 60.4 MB/s
Done

Creating ext3 filesystem on /home/xen/domains/rtsp/disk.img
mke2fs 1.42.5 (29-Jul-2012)
Discarding device blocks:    4096/2621440............... 528384/2621440...............1052672/2621440...............157
6960/2621440...............2101248/2621440...............               ...............done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
655360 inodes, 2621440 blocks
131072 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2684354560
80 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
         32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables:  0/80..... 1/80..... 2/80..... 3/80..... 4/80..... 5/80..... 6/80..... 7/80..... 8/80..... 9/8
0.....10/80.....11/80.....12/80.....13/80.....14/80.....15/80.....16/80.....17/80.....18/80.....19/80.....20/80.....21/
80.....22/80.....23/80.....24/80.....25/80.....26/80.....27/80.....28/80.....29/80.....30/80.....31/80.....32/80.....33
/80.....34/80.....35/80.....36/80.....37/80.....38/80.....39/80.....40/80.....41/80.....42/80.....43/80.....44/80.....4
5/80.....46/80.....47/80.....48/80.....49/80.....50/80.....51/80.....52/80.....53/80.....54/80.....55/80.....56/80.....
57/80.....58/80.....59/80.....60/80.....61/80.....62/80.....63/80.....64/80.....65/80.....66/80.....67/80.....68/80....
.69/80.....70/80.....71/80.....72/80.....73/80.....74/80.....75/80.....76/80.....77/80.....78/80.....79/80.....     ...
..done
Writing inode tables:  0/80..... 1/80..... 2/80..... 3/80..... 4/80..... 5/80..... 6/80..... 7/80..... 8/80..... 9/80..
...10/80.....11/80.....12/80.....13/80.....14/80.....15/80.....16/80.....17/80.....18/80.....19/80.....20/80.....21/80.
....22/80.....23/80.....24/80.....25/80.....26/80.....27/80.....28/80.....29/80.....30/80.....31/80.....32/80.....33/80
.....34/80.....35/80.....36/80.....37/80.....38/80.....39/80.....40/80.....41/80.....42/80.....43/80.....44/80.....45/8
0.....46/80.....47/80.....48/80.....49/80.....50/80.....51/80.....52/80.....53/80.....54/80.....55/80.....56/80.....57/
80.....58/80.....59/80.....60/80.....61/80.....62/80.....63/80.....64/80.....65/80.....66/80.....67/80.....68/80.....69
/80.....70/80.....71/80.....72/80.....73/80.....74/80.....75/80.....76/80.....77/80.....78/80.....79/80.....     .....d
one
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:  0/80..... 1/80..... 2/80..... 3/80..... 4/80..... 5/80.....
  6/80..... 7/80..... 8/80..... 9/80.....10/80.....11/80.....12/80.....13/80.....14/80.....15/80.....16/80.....17/80....
.18/80.....19/80.....20/80.....21/80.....22/80.....23/80.....24/80.....25/80.....26/80.....27/80.....28/80.....29/80...
..30/80.....31/80.....32/80.....33/80.....34/80.....35/80.....36/80.....37/80.....38/80.....39/80.....40/80.....41/80..
...42/80.....43/80.....44/80.....45/80.....46/80.....47/80.....48/80.....49/80.....50/80.....51/80.....52/80.....53/80.
....54/80.....55/80.....56/80.....57/80.....58/80.....59/80.....60/80.....61/80.....62/80.....63/80.....64/80.....65/80
.....66/80.....67/80.....68/80.....69/80.....70/80.....71/80.....72/80.....73/80.....74/80.....75/80.....76/80.....77/8
0.....78/80.....79/80.....     .....done

Done
----8<----cutted-----


AFTER CREATING THE IMAGE in FULL Mode ----->

df -hm /home/
Dateisystem    1M-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
/dev/sda9         137268   22920    107354   18% /home

/home/xen/domains/rtsp$ ls -hal /home/xen/domains/rtsp/
insgesamt 1,1G
drwxr-xr-x 2 root     root     4,0K Jul 28 13:57 .
drwxrwxrwx 5 benutzer benutzer 4,0K Jul 28 11:36 ..
-rw------- 1 root     root      10G Jul 28 14:12 disk.img
-rw------- 1 root     root     128M Jul 28 13:57 swap.img

du -m /home/xen/domains/rtsp/disk.img
981	/home/xen/domains/rtsp/disk.img

sudo file -s  /home/xen/domains/rtsp/disk.img
/home/xen/domains/rtsp/disk.img: Linux rev 1.0 ext3 filesystem data, UUID=c9496f25-d58f-4b45-855c-87e083213a0b (large files)


i hope now its an clear email without crazy line breaks. if not i attached an .txt file about this email

Best Regards
Bobbi



-------------- next part --------------
ok sorry i will begin from beginning again cause stupid lines should now be fixed.
to shorten the test in time i reduzed the FULL image size to 10GB


SYSTEM-INFORMATIONS---START--->

uname -a
Linux dag 3.15.2 #2 SMP PREEMPT Sun Jun 29 17:16:11 CEST 2014 x86_64 GNU/Linux


sudo xl info
host                   : dag
release                : 3.15.2
version                : #2 SMP PREEMPT Sun Jun 29 17:16:11 CEST 2014
machine                : x86_64
nr_cpus                : 2
max_cpu_id             : 3
nr_nodes               : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 2530
hw_caps                : bfebfbff:20000800:00000000:00000900:0008e39d:00000000:00000001:00000000
virt_caps              :
total_memory           : 2293
free_memory            : 291
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
xen_major              : 4
xen_minor              : 5
xen_extra              : -unstable
xen_version            : 4.5-unstable
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p 
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : Fri Jun 27 15:56:05 2014 +0100 hg:937cf82a4936
xen_commandline        : placeholder
cc_compiler            : gcc (Debian 4.7.2-5) 4.7.2
cc_compile_by          : benutzer
cc_compile_domain      : 
cc_compile_date        : Sun Jun 29 18:26:52 CEST 2014
xend_config_format     : 4

xen-create-image --version
xen-create-image release 4.4

(compiled from GIT)


sudo blkid | grep sda1 | awk '{print $3}'
TYPE="ext4"


a part from the xen-tools.conf
#
##
#  Disk and Sizing options.
##
#
size   = 80G       # Root disk, suffix (G, M, k) required
memory = 128M     # Suffix (G, M, k) required
#maxmem = 256M     # Suffix (G, M, k) optional
swap   = 128M     # Suffix (G, M, k) required
# noswap = 1      # Don't use swap at all for new systems.
fs     = ext3     # Default file system for any disk
dist   = `xt-guess-suite-and-mirror --suite`
                  # Default distribution is determined by Dom0's distribution
image  = full   # Specify sparse vs. full disk images (file based images only)

SYSTEM-INFORMATIONS---END--->

...

BEFORE CREATING THE IMAGE in FULL Mode ----->

df -hm /home/
Dateisystem    1M-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
/dev/sda9         137268   22805    107468   18% /home


now i try to create the image (FULL not SPARSE)----->

General Information
--------------------
Hostname       :  rtsp
Distribution   :  wheezy
Mirror         :  http://ftp.de.debian.org/debian/
Partitions     :  swap            128M  (swap)
                  /               10G   (ext3)
Image type     :  full
Memory size    :  128M
Kernel path    :  /boot/vmlinuz-3.15.2
Initrd path    :  /boot/initrd.img-3.15.2
----8<----cutted-----


cat /var/log/xen-tools/rtsp.log
----8<----cutted-----
Creating partition image: /home/xen/domains/rtsp/swap.img
1024+0 records in
1024+0 records out
134217728 bytes (134 MB) copied, 1.36507 s, 98.3 MB/s
Done

Creating swap on /home/xen/domains/rtsp/swap.img
Setting up swapspace version 1, size = 131068 KiB
no label, UUID=ef6931db-ce95-46c4-8c93-60abb5e82692
Done

Creating partition image: /home/xen/domains/rtsp/disk.img
1024+0 records in
1024+0 records out
10737418240 bytes (11 GB) copied, 177.787 s, 60.4 MB/s
Done

Creating ext3 filesystem on /home/xen/domains/rtsp/disk.img
mke2fs 1.42.5 (29-Jul-2012)
Discarding device blocks:    4096/2621440............... 528384/2621440...............1052672/2621440...............157
6960/2621440...............2101248/2621440...............               ...............done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
655360 inodes, 2621440 blocks
131072 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2684354560
80 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables:  0/80..... 1/80..... 2/80..... 3/80..... 4/80..... 5/80..... 6/80..... 7/80..... 8/80..... 9/8
0.....10/80.....11/80.....12/80.....13/80.....14/80.....15/80.....16/80.....17/80.....18/80.....19/80.....20/80.....21/
80.....22/80.....23/80.....24/80.....25/80.....26/80.....27/80.....28/80.....29/80.....30/80.....31/80.....32/80.....33
/80.....34/80.....35/80.....36/80.....37/80.....38/80.....39/80.....40/80.....41/80.....42/80.....43/80.....44/80.....4
5/80.....46/80.....47/80.....48/80.....49/80.....50/80.....51/80.....52/80.....53/80.....54/80.....55/80.....56/80.....
57/80.....58/80.....59/80.....60/80.....61/80.....62/80.....63/80.....64/80.....65/80.....66/80.....67/80.....68/80....
.69/80.....70/80.....71/80.....72/80.....73/80.....74/80.....75/80.....76/80.....77/80.....78/80.....79/80.....     ...
..done
Writing inode tables:  0/80..... 1/80..... 2/80..... 3/80..... 4/80..... 5/80..... 6/80..... 7/80..... 8/80..... 9/80..
...10/80.....11/80.....12/80.....13/80.....14/80.....15/80.....16/80.....17/80.....18/80.....19/80.....20/80.....21/80.
....22/80.....23/80.....24/80.....25/80.....26/80.....27/80.....28/80.....29/80.....30/80.....31/80.....32/80.....33/80
.....34/80.....35/80.....36/80.....37/80.....38/80.....39/80.....40/80.....41/80.....42/80.....43/80.....44/80.....45/8
0.....46/80.....47/80.....48/80.....49/80.....50/80.....51/80.....52/80.....53/80.....54/80.....55/80.....56/80.....57/
80.....58/80.....59/80.....60/80.....61/80.....62/80.....63/80.....64/80.....65/80.....66/80.....67/80.....68/80.....69
/80.....70/80.....71/80.....72/80.....73/80.....74/80.....75/80.....76/80.....77/80.....78/80.....79/80.....     .....d
one
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:  0/80..... 1/80..... 2/80..... 3/80..... 4/80..... 5/80.....
 6/80..... 7/80..... 8/80..... 9/80.....10/80.....11/80.....12/80.....13/80.....14/80.....15/80.....16/80.....17/80....
.18/80.....19/80.....20/80.....21/80.....22/80.....23/80.....24/80.....25/80.....26/80.....27/80.....28/80.....29/80...
..30/80.....31/80.....32/80.....33/80.....34/80.....35/80.....36/80.....37/80.....38/80.....39/80.....40/80.....41/80..
...42/80.....43/80.....44/80.....45/80.....46/80.....47/80.....48/80.....49/80.....50/80.....51/80.....52/80.....53/80.
....54/80.....55/80.....56/80.....57/80.....58/80.....59/80.....60/80.....61/80.....62/80.....63/80.....64/80.....65/80
.....66/80.....67/80.....68/80.....69/80.....70/80.....71/80.....72/80.....73/80.....74/80.....75/80.....76/80.....77/8
0.....78/80.....79/80.....     .....done

Done
----8<----cutted-----


AFTER CREATING THE IMAGE in FULL Mode ----->

df -hm /home/
Dateisystem    1M-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
/dev/sda9         137268   22920    107354   18% /home

/home/xen/domains/rtsp$ ls -hal /home/xen/domains/rtsp/
insgesamt 1,1G
drwxr-xr-x 2 root     root     4,0K Jul 28 13:57 .
drwxrwxrwx 5 benutzer benutzer 4,0K Jul 28 11:36 ..
-rw------- 1 root     root      10G Jul 28 14:12 disk.img
-rw------- 1 root     root     128M Jul 28 13:57 swap.img

du -m /home/xen/domains/rtsp/disk.img 
981	/home/xen/domains/rtsp/disk.img

sudo file -s  /home/xen/domains/rtsp/disk.img 
/home/xen/domains/rtsp/disk.img: Linux rev 1.0 ext3 filesystem data, UUID=c9496f25-d58f-4b45-855c-87e083213a0b (large files)


i hope now its an clear email without crazy line breaks. if not i attached an .txt file about this email 

Best Regards
Bobbi





More information about the xen-tools-discuss mailing list