[Anaconda-devel] Re: lorax: fstrim by default for image installs

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


>But the Oz situation does seem to be a problem because I can consistently get the images smaller by manually trimming them.

# mount /dev/mapper/loop0p3 /mnt/
# ls -ls
5129956 -rw-r--r--. 1 root root 13958643712 Jul 22 15:03 Fedora-Workstation-Rawhide-20220721.n.0.aarch64.raw
# fstrim -v /mnt
/mnt: 8.5 GiB (9149927424 bytes) trimmed
# ls -ls
3293292 -rw-r--r--. 1 root root 13958643712 Jul 22 15:04 Fedora-Workstation-Rawhide-20220721.n.0.aarch64.raw

~1.75 GiB  of garbage in the raw file being trimmed away. So whether the fstrim didn't run, or ran and failed, the existing logging doesn't let us know.

Ok this is suspicious

<disk device="disk" type="file">
<target dev="vda" bus="virtio"/>
<source file="Fedora-Workstation-Rawhide-20220721.n.0.aarch64.raw-xz"/>
<driver name="qemu" type="raw-xz"/>

This might be affecting the VM used to create the image, and lacking the option to set discard=unmap, the fstrim isn't passed down to the host/sparse file.

Chris Murphy
Anaconda-devel mailing list -- anaconda-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to anaconda-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/anaconda-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux