From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpK4Q-00032H-LD for qemu-devel@nongnu.org; Mon, 23 Jan 2012 08:36:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpK4H-0001At-8v for qemu-devel@nongnu.org; Mon, 23 Jan 2012 08:36:26 -0500 Received: from mail-iy0-f173.google.com ([209.85.210.173]:44432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpK4H-0001Ak-5p for qemu-devel@nongnu.org; Mon, 23 Jan 2012 08:36:17 -0500 Received: by iahk25 with SMTP id k25so2610464iah.4 for ; Mon, 23 Jan 2012 05:36:16 -0800 (PST) Sender: Paolo Bonzini Message-ID: <4F1D6248.3010005@redhat.com> Date: Mon, 23 Jan 2012 14:36:08 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1326731457-9056-1-git-send-email-pbonzini@redhat.com> <20120118073902.GA2265@localhost.localdomain> <4F183C7A.9070603@redhat.com> In-Reply-To: <4F183C7A.9070603@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 00/15] SCSI s/g + SCSI migration + virtio-scsi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , Hu Tao On 01/19/2012 04:53 PM, Paolo Bonzini wrote: >> I found a problem that a virtio-scsi disk gets offline during mkfs. >> The scsi disk is of 100G or bigger, and the corresponding image >> is a freshly created qcow2 image. If the disk is small enough, or >> not freshly created, the problem doesn't appear. > > Hi Hu, > > I cannot reproduce this with a 100G qcow2 image (created with "qemu-img > create scsi.qcow2 100G" just before launching the host), with a > partition starting at sector 2048 and extending to the end of the disk. > mkfs (ext4) takes less than 1 minute and extends the qcow2 file to a > little less than 2 gigs. > > Can you send the partition table ("file -s /dev/sda" should be enough) > and any output you get from the dmesg? I cannot reproduce this even with a 3T qcow2 image. mkfs takes 30 minutes and creates a 50G image. What kernel driver are you using? Paolo