I had a file on an XFS filesystem which size was about 200 GB. It was a QCOW2 image containing a virtual disk of a KVM-driven virtual machine. Something went wrong (maybe it was some glitch of qemu-kvm, I'm not sure), the virtual machine had crashed and now I have a file that looks like that:
191090708 -rwxr--r--. 1 root root 737571587400425984 Oct 10 10:03 973d10e0-a5e3-4a59-9f98-4b9b9f072ade
So, it still occupies 191090708 blocks, but
ls shows it as 656 petabytes.
Moreover, I have another file with the same pre-history, but on another filesystem (not XFS, but GFS2):
410855320 -rwxr--r--. 1 root root 7493992262336241664 Dec 13 2014 ac2cb28f-09ac-4ca0-bde1-471e0c7276a0
It occupies 410855320 blocks, but
ls shows it as ~6.6 exabytes.
What do you think, is it safe to remove these files? Thank you!
P.S. It's so good to have snapshots taken on a regular basis! :) I don't know what I would do without them.