File gone, btrfs can't help

Hi There
So, it happened. First time i lose something.
But it’s not just a file, it’s an entire VM!
I had this win7 VM under VBox running, shut it down, and at the next boot boot attempt VBox complained that the machine was unaccessible.
And he was right. The entide ~/Vbox VMs/ is empty. WTF?! The VM was running since 1 minute before, it was more of a reboot than a shutdown!

But i tought, i’m on BtrFS here, shouldn’t have any problem as home is a subvolume and should get snapshotted right?

Nope. All the snapshot i wnet into that have somethin in /home have the same Vbox VMs folder empty?

How is that possible? How can i try to recover?

I’m on 3.11.10-21-desktop #1 SMP PREEMPT Mon Jul 21 15:28:46 UTC 2014 (9a9565d) i686 i686 i386 GNU/Linux

please…

On Wed 26 Nov 2014 01:16:01 PM CST, gattotrino wrote:

Hi There
So, it happened. First time i lose something.
But it’s not just a file, it’s an entire VM!
I had this win7 VM under VBox running, shut it down, and at the next
boot boot attempt VBox complained that the machine was unaccessible.
And he was right. The entide ~/Vbox VMs/ is empty. WTF?! The VM was
running since 1 minute before, it was more of a reboot than a shutdown!

But i tought, i’m on BtrFS here, shouldn’t have any problem as home is a
subvolume and should get snapshotted right?

Nope. All the snapshot i wnet into that have somethin in /home have the
same Vbox VMs folder empty?

How is that possible? How can i try to recover?

I’m on 3.11.10-21-desktop #1 SMP PREEMPT Mon Jul 21 15:28:46 UTC 2014
(9a9565d) i686 i686 i386 GNU/Linux

please…

Hi
Sure the file isn’t somewhere else on the system? Strange just one file
disappearing, disk ok (smartctl).

Unless you specifically create your own snapshots with snapper, by
default btrfs subvolumes are excluded, note it’s snapper that does
this, not related to the filesystem…


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

The disk seems fine to me. Sure it tells me about read errors, but no bad blocks on the list.
I’v looked everywhere with find, the entire subdir containing the VM is gone. At this point i’m thinking i could have probably deleted it by mistake.

Regarding snapper and snapshots, i still am not familiar with it. I have to study. Tought that btrfs was taking snapshots regularly of all the subtree, but as i can see it is clearly only about the root filesystem untill you expressly instruct it otherwise.

Thanks.

“Tought that btrfs was taking snapshots regularly of all the subtree”.

/home folder tree is excluded as default. But you can add it - provided that/home uses btrfs; not xfs (xfs is the default for a separate /home partition).