- Red Hat Enterprise Linux 6
- reported on kernel 2.6.32-279.el6
- kernels prior to kernel-2.6.32-358.18.1.el6 likely affected
- Any ext4 filesystem that stores metadata in files with the SYNC flags set.
- This issue has been observed on bare metal as well as virtual guests under KVM.
- Data loss when a system loses power for any application storing information/metadata in files on an ext4 filesystem.
- Due to several bugs in the ext4 code, data integrity system calls did not always properly persist data on the disk. Therefore, the unsynchronized data in the ext4 file system could have been lost after the system's unexpected termination. A series of patches has been applied to the ext4 code to address this problem, including a fix that ensures proper usage of data barriers in the code responsible for file synchronization. Data loss no longer occurs in the described situation.
- While files are open files for writing (with o_sync) and fsync commits to disk.
- Power is lost during this operation.
- After reboot data loss has been observed.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.