Results 1 to 4 of 4

Thread: File gone, btrfs can't help

  1. #1

    Default 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...

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    27,127
    Blog Entries
    15

    Default Re: File gone, btrfs can't help

    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!


  3. #3

    Default Re: File gone, btrfs can't help

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Sure the file isn't somewhere else on the system? Strange just one file
    disappearing, disk ok (smartctl).
    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.

  4. #4

    Default Re: File gone, btrfs can't help

    "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).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •