You are going to have to use "unlink" with something like this:
for file in lost_files
unlink $file
Cheers,
Miguel Afonso Oliveira
P.S.: To build a list of all your lost files you can do a rsync with the dry-run flag.
lfsck is the documented, supported method.
b.
Sorry I forgot to mention this only works if the "offending" OST still exists. If at this time you can no longer re-include the OST where these files existed then you can still
create a new one with the same index and then you can unlink.
MAO
I had a similar problem with one of my filesystems and from my experience until the actual OST, or another one with the same original index, is present, unlink will not work.
It will give the error message an it will keep on showing the reference to the file.
At the time it somehow made sense to me - an erroneous unlink on a missing file would destroy the file metadata. But now I'm not quite sure this ought to be treated as a
feature or as a bug. We can always create an OST with the index of the missing one and unlink. Seems to me a safer option but them it would require better documentation.
All the best,
MAO