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

Bug#876352: marked as done (Package: installation-report for Debian9)



Your message dated Fri, 21 Aug 2020 04:58:02 +0200
with message-id <[🔎] 20200821045802.07acb7c9ded347064600db2d@mailbox.org>
and subject line Re: Mass-closing old installation-report bugs  ---  round 5
has caused the Debian Bug report #876352,
regarding Package: installation-report for Debian9
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
876352: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876352
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: installation-report


Worth knowing if you use VirtualBox with Debian9 guests? :


The rubyv3 guest is a fresh install of Debian9 from a CD including graphics and intended as a workstation.
The rubyv4 guest is a fresh install of Debian9 from a network install CD with no optional software and intended to be built as a server.
The rubyv5 guest is a fresh install of Ubuntu Server with no optional software.
All are Virtualbox virtual machines.
The underlying hardware OS is the same Debian9 with a 6TB array of five hard disks.

  File Sizes:        rubyv3(debian w/s)  rubyv4(debian srv)  rubyv5(ubuntu srv)
System use inside VM   3,071,064,000       1,189,448,000      1,554,552,000

reported by 'ls -l'
.vdi size              4,942,987,264     109,515,374,592      4,632,608,768
.ova size              1,569,787,904     110,322,772,480      4,482,602,496

Why the difference in the .vdi and .ova file sizes for rubyv4, as compared to the files for rubyv3 and ruby5?  All the file sizes for rubyv3 are reasonable, but ...
... requiring a 110GB .ova backup file for a 1.2GB install for rubyv4 is not!

The reason for this appears to lie in the Debian install process and its interaction with Virtualbox.  rubyv3 was installed onto an ext4 partition; rubyv4 was installed onto an encrypted LVM partition where the
dynamic 110GB .vdi file was zeroed(with random numbers?) to its full size.  Ubuntu server, using an encrypted LVM, dynamic 100GB partition layout, does not do the same(no zeroing of free space) but the compression algorithm achieves next to nothing in producing the .ova file.

The desire to
completely 'zero' a hardware disk before installing a new operating system is sensible but doing the same to a dynamic virtual disk that is encrypted is questionable.

Compacting Virtualbox .vdi files:
> dd if=/dev/zero of=zerofillfile status=progress bs=1M
until the disk fills, then
> rm zerofillfile
and all free space is zeroed. Do not use 'if=/dev/urandom' in the 'dd' command!!
> VBoxManage modifyhd <path/file.vdi> --compact

https://unix.stackexchange.
cat /etc/crypttab   issue_discards = 1
sda3_crypt UUID=[...] none luks,discard
cat /etc/lvm/lvm.conf
# [...]
devices  {
      # [ ... ]
      issue_discards = 1
      # [ ... ]
   }
# [...]
To test the setup I just did 'sudo fstrim -v /' which resulted in /: [...] bytes were trimmed
Doing this again resulted in /: 0 bytes were trimmed which seems to make sense and indicated that TRIM seems to work.However then I did this test:
dd if=/dev/urandom of=tempfile count=100 bs=512k oflag=direct
Note 'urandom'

https://www.virtualbox.org/
'The --compact option, can be used to compact disk images, i.e. remove blocks that only contains zeroes[and not the output of 'urandom'!!].'

'compacting is currently only available for VDI images. A similar effect can be achieved by zeroing[not urandom!!] out free blocks and then cloning the disk to any other dynamically allocated format.'

In my tests I failed to achieve a .vdi compaction, including by cloning.


Further tests :
  File Sizes:         rubyv4(debian srv)
                       8GB virtualdisk
System use inside VM     876,928,000
reported by 'ls -l'
.vdi size               8,498,708,480 
.ova size               8,508,642,304 
   resize to 20GB using VBoxManage modifyhd ruby4.vdi --resize 20000
Before starting         8,498,708,480  reported as 19.53GB in VB
After run and shutdown  8,498,708,480 

  File Sizes:         rubyv6(debian srv)
                       8GB virtualdisk
Debian install zeroing of free disk space halted by escaping the zero procedure
System use inside VM     867,948,000
reported by 'ls -l'
.vdi size               1,809,842,176
.ova size               1,636,825,000
   resize to 20GB using VBoxManage modifyhd ruby6.vdi --resize 20000
Before starting         1,809,842,176  reported as 19.53GB in VB
After run and shutdown  1,809,842,176   which is what it should be


Conclusions :
1:After installing Debian9 to a large dynamic Virtualbox virtual disk, the .vdi file goes to full size as the disk is zeroed (with random numbers?) and wi
ll not compress into the .ova file or clone.
2: Best to escape the Debian install zeroing of free space or use Ubuntu server.
3: If free space zeroing is required, use the dd command in the running server, but it will take the .vdi file up to full size.
4: Dynamic file expansion will negate the zeroing, unless the zeroing is repeated.
5: Virtualbox .
vdi file compaction still seems problematic.

Recomendation :
Add a clear warning in the Debian install process about zeroing free space in large Virtualbox virtual disks.  The
resulting .vdi file bloat is, for current purposes, irreversible.

####


--- End Message ---
--- Begin Message ---
Hi,

Holger Wansing <hwansing@mailbox.org> wrote:
> 
> I'm closing the reports below.
> 
> That's installation-reports for Debian 7 with
> - undefined errors
> - problems which are likely to have been fixed in the meantime
> - successful installation
> 
> Because of the age, there is no chance to analyse them further and therefore
> they are no longer relevant or of any use for current releases:

And thank you for filing these installation bug reports, they have been very 
useful at the time they were filed!
If you know, that the issue you reported (and gets closed here) is still existing
in recent installation images, please file a new report for that!

round 5 (for Debian 7 / 8 / 9 / pre-buster ):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=706219
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739299
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741206
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742647
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798896
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799570
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805342
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738865
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790708
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804154
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851429
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851432
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851539
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851740
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852779
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853187
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854087
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854428
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854455
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854857
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=856178
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857048
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857179
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857695
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857839
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858139
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858181
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858299
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859233
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860286
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860478
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860809
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861015
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861083
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861380
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861469
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862010
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862025
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=862521
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863178
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863241
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863613
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864935
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864991
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865473
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865811
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866240
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866597
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866681
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=866966
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867064
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867066
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=867285
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868085
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868338
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868942
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868994
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869118
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869895
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870331
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871323
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871569
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872764
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874314
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874385
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875788
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876352
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=877467
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879514
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879659
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879688
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879987
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880021
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880054
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880104
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880947
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882732
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884348
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=885026
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886023
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886025
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886970
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887670
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889673
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889717
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889993
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890192
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890404
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891973
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=892405
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893432
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893748
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894059
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894169
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894231
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894270
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895700
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=897559
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899251
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899321
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900609
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900666
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900738
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901851
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903047
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903244
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904421
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905827
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906093
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907575
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909294
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909918
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910023
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915368
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916068
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916381
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916386
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917350
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917940
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919842
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921264
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921861
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922115
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923252
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923524
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=924179
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=924563
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925537
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926111
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926448
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926538
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926975
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926980
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927811
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928192
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928413
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928414
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928490
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929243
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929476
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931241
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931587
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931918
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944285
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944762




-- 
Holger Wansing <hwansing@mailbox.org>
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076

--- End Message ---

Reply to: