ZFS on Linux: Unlistable and disappearing files
1–10 of 168 posts
Re: ZFS on Linux: Unlistable and disappearing files
#2https://github.com/zfsonlinux/zfs/issues/7401#issuecomment-3...
Re: ZFS on Linux: Unlistable and disappearing files
#3Re: ZFS on Linux: Unlistable and disappearing files
#4Re: ZFS on Linux: Unlistable and disappearing files
#5However, it also does not reproduce on Ubuntu 4.4.0-116-generic running the ZFS stuff from Ubuntu.
Re: ZFS on Linux: Unlistable and disappearing files
#6Re: ZFS on Linux: Unlistable and disappearing files
#7Wow that's an old Kernel! https://linux.slashdot.org/story/16/01/31/0424221/linux-kern...
Re: ZFS on Linux: Unlistable and disappearing files
#8Re: ZFS on Linux: Unlistable and disappearing files
#9The regression makes it so that creating a new file could fail with ENOSPC after which files created in that directory could become orphaned. Existing files seem okay, but I have yet to confirm that myself and I cannot speak for what others know. It is incredibly difficult to reproduce on systems running coreutils 8.23 or later. So far, reports have only come from people using coreutils 8.22 or older. The directory size actually gets incremented for each orphaned file, which makes it wrong after orphan files happen.
We will likely have some way to recover the orphaned files (like ext4’s lost+found) and fix the directory sizes in the very near future. Snapshots of the damaged datasets are problematic though. Until we have a subcommand to fix it (not including the snapshots, which we would have to list), the damage can be removed from a system that has it either by rolling back to a snapshot before it happened or creating a new dataset with 0.7.6 (or another release other than 0.7.7), moving everything to the new dataset and destroying the old. That will restore things to pristine condition.
It should also be possible to check for pools that are affected, but I have yet to finish my analysis to be certain that no false negatives occur when checking, so I will avoid saying how for now.
Re: ZFS on Linux: Unlistable and disappearing files
#10Is this ZOL tip or Linux specific? FWIW, the bug does not seem to reproduce on FreeBSD-current (r332158). However, it also does not reproduce on Ubuntu 4.4.0-116-generic running the ZFS stuff from Ubuntu.
Reverting this commit causes the bug to stop reproducing:
https://github.com/zfsonlinux/zfs/commit/cc63068e95ee725cce0...
[edit]
An inspection of the following makes me think this is ZoL specific.
https://github.com/freebsd/freebsd/blob/58941b0245fd8d3d5861...