qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] qcow2 disk size information may be error while it is larger


From: Guozhonghua
Subject: [Qemu-devel] qcow2 disk size information may be error while it is larger than 2T capacity
Date: Thu, 21 Aug 2014 08:26:58 +0000

Hi, everyone

 

We have one qemu image file which size is 2348439044096, format is qcow2.

But as we get its information with the command qemu-img info, the disk size is 139G.

The info is as below:

 

# qemu-img info APCD-CSSJK

image: APCD-CSSJK

file format: qcow2

virtual size: 1.9T (2097152000000 bytes)

disk size: 139G

cluster_size: 2097152

backing file:  /vms/storage/APCD-JHSJK_base_0

 

# qemu-img info APCD-JHSJK_base_0

image: APCD-JHSJK_base_0

file format: qcow2

virtual size: 1.0T (1101004800000 bytes)

disk size: 34G

cluster_size: 2097152

 

# ls -al APCD-JHSJK_base_0

-rw-r--r-- 1 root root 36012294144 Aug  9 00:31 APCD-JHSJK_base_0

address@hidden: /vms/storage# ls -al APCD-CSSJK

-rw------- 1 root root 2348439044096 Aug 19 17:36 APCD-CSSJK

 

As calculated with the image size, so the information of the disk size display may be wrong:

(2348439044096 – 2*1024*1024*1024*1024) /( 1024*1024*1024) = 139.154296875 G

 

As we convert the APCD-CSSJK with –O qcow2, the destination image is larger then 500G, which is larger than 139G + 36G; and we stop the converting.

qemu-img convert -O qcow2 APCD-CSSJK apcd_csscssjk-gzh

 

# ls -al apcd* ;date

-rw-r--r-- 1 root root 483043311616 Aug 19 20:01 apcd_csscssjk-gzh

Tue Aug 19 20:01:34 CST 2014

 

# qemu-img info apcd_csscssjk-gzh

image: apcd_csscssjk-gzh

file format: qcow2

virtual size: 1.9T (2097152000000 bytes)

disk size: 469G

cluster_size: 2097152

 

Is the disk size segment is limited to 2T in qemu? Or there are some patch for it.

 

-------------------------------------------------------------------------------------------------------------------------------------
本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]