-
Bug
-
Resolution: Unresolved
-
Blocker
-
rhel-9.6, rhel-10.0
-
python-blivet-3.10.0-16.el10_0
-
No
-
Critical
-
rhel-sst-storage-management
-
ssg_platform_storage
-
30
-
31
-
1
-
False
-
-
Yes
-
None
-
Approved Blocker
-
Bug Fix
-
-
Done
-
Unspecified
-
Unspecified
-
Unspecified
-
None
What were you trying to do that didn't work?
fstrim doesn't work on `/` partition for ostree based deployments installed by anaconda/blivet.
The fstrim is enabled by default for a long time by /etc/crypttab, however, given the fact that ostree based systems won't build initrd on system the systemd-cryptsetup-generator will not know about it when opening a root LUKS and won't set the discard option correctly.
What is the impact of this issue to you?
The system with these conditions:
- LUKS partition on `/` mount
- SSD drive
- ostree based system
will not have working fstrim.
That means that after unspecified number of IO operations your system might became completely unresponsive.
Please provide the package NVR for which the bug is seen:
All the ostree based systems are impacted. This bug is impacting all ostree based systems deployed by anaconda/blivet.
How reproducible is this bug?:
Always
Steps to reproduce
- Install ostree based system
- In the installed system run `sudo fstrim -av`
- If you see "fstrim: /: the discard operation is not supported" the system is impacted
Expected results
The fstrim command should work on `/` mount.
Actual results
The fstrim command raise error on `/` mount.
Notes
This could be fixed on newly installed systems but we can't fix this on already installed systems as there are security implications. To fix this on existing system you need to run:
cryptsetup --allow-discards --persistent refresh <luks device>
where the luks device could be read from `lsbkl` or `/dev/mapper/luks-*`.
The system might require a reboot to make the changes working.
- clones
-
RHEL-82430 RHEL-9: ostree-based systems deployed with blivet can't fstrim LUKS-encrypted partitions of SSD hard drive by default
-
- Release Pending
-
- is blocked by
-
RHEL-82885 RHEL-10: libblockdev: ostree-based systems deployed with blivet can't fstrim LUKS-encrypted partitions of SSD hard drive by default
-
- Release Pending
-
- is cloned by
-
RHEL-82885 RHEL-10: libblockdev: ostree-based systems deployed with blivet can't fstrim LUKS-encrypted partitions of SSD hard drive by default
-
- Release Pending
-
- links to
-
RHBA-2024:138641 python-blivet bug fix and enhancement update
The release note looks good to me, thank you Jirka.