public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: Andreas Reichel <andreas.reichel.ext@siemens.com>
Cc: "Maxim Yu. Osipov" <mosipov@ilbers.de>, <isar-users@googlegroups.com>
Subject: Re: qemu test with start_vm fails
Date: Mon, 3 Dec 2018 14:11:04 +0100	[thread overview]
Message-ID: <20181203141104.5ff860b0@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <20181130100639.065d5a14@md1za8fc.ad001.siemens.net>

Am Fri, 30 Nov 2018 10:06:39 +0100
schrieb "[ext] Henning Schild" <henning.schild@siemens.com>:

> Am Thu, 29 Nov 2018 13:20:17 +0100
> schrieb Andreas Reichel <andreas.reichel.ext@siemens.com>:
> 
> > On Wed, Nov 28, 2018 at 08:34:58PM +0300, Maxim Yu. Osipov wrote:  
> > > Hi Andreas,
> > > 
> > > I would suggest to double check your statements before blaming
> > > that something is not working
> > >     
> > Hi,
> > 
> > well unfortunately I was correct. There is an error in Isar:
> > the offline cache is included in the root file system :)
> > 
> > There is a /base-apt in the resulting .ext4.img.
> > 
> > This way I got a rootfs of 720 MB with no free space, despite the
> > 64M extra space. (file system overhead).  
> 
> I think we now have a fix because we do not include the cache into the
> image anymore. But that actually just hides the bug we have in the
> ext4 class, next time someone builds a 700M image the same thing will
> happen again.
> 
> So we will also need a patch that prepares the ext4 for that case.
> Things that could be done
>  - mkfs -m 1 (instead of default 5)
>  - multiply the size with an ext4 specific overhead factor
>  - df assert the EXTRA while still mounted
>  - double check what wic is doing, maybe use wic instead of ext4

In addition the "cp -r" will drop a lot of file attributes and should
be "cp -a". In fact it would be best to "mkfs.ext4 -d", like wic.
Using wic would result in a disk and not in a partition image, but that
should not be a problem. Older mkfs.ext4 versions do not support "-d",
maybe we need to finally drop that old raspbian ... 

Henning

> Henning
> 
> > In your CI you obviously do not use the offline cache feature,
> > that's why in CI this did not happen.
> > 
> > vG
> > Andreas  
> 


      reply	other threads:[~2018-12-03 13:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-28 16:25 Andreas Reichel
2018-11-28 17:00 ` Henning Schild
2018-11-28 17:34 ` Maxim Yu. Osipov
2018-11-28 17:44   ` Jan Kiszka
2018-11-29 12:20   ` Andreas Reichel
2018-11-29 14:25     ` Maxim Yu. Osipov
2018-11-29 14:28       ` Jan Kiszka
2018-11-30  9:06     ` Henning Schild
2018-12-03 13:11       ` Henning Schild [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181203141104.5ff860b0@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=andreas.reichel.ext@siemens.com \
    --cc=isar-users@googlegroups.com \
    --cc=mosipov@ilbers.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox