public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Schneider <74cmonty@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: No files in snapshot
Date: Tue, 27 Aug 2019 11:33:27 +0200	[thread overview]
Message-ID: <b729e524-3c63-cf90-7115-02dcf2fda003@gmail.com> (raw)

Hi,

I'm running Debian 10 with btrfs-progs=5.2.1.
Creating snapshots with snapper=0.8.2 works w/o errors.
root@ld5507:~# uname -r
5.0.18-1-pve
root@ld5508:~# btrfs fi show
Label: none  uuid: 70997a0b-a36f-46cf-9ddc-b88d47eabc9e
         Total devices 1 FS bytes used 11.17GiB
         devid    1 size 192.53GiB used 22.02GiB path /dev/sdbq3

root@ld5507:~# btrfs fi df /
Data, single: total=18.00GiB, used=10.71GiB
System, DUP: total=8.00MiB, used=16.00KiB
Metadata, DUP: total=2.00GiB, used=465.84MiB
GlobalReserve, single: total=68.03MiB, used=0.00B

However, I run into an issue and need to restore various files.

I thought that I could simply take the files from a snapshot created before.
However, the files required don't exist in any snapshot!

Therefore I have created a new snapshot manually to verify if the files 
will be included, but there's nothing.

These files are required:
root@ld5507:/usr/bin# ls -l /var/lib/ceph/osd/ceph-4/
insgesamt 56
-rw-r--r-- 1 root root 402 Jun  7 12:18 activate.monmap
-rw-r--r-- 1 ceph ceph   3 Jun  7 12:18 active
lrwxrwxrwx 1 ceph ceph  58 Jun  7 12:18 block -> 
/dev/disk/by-partuuid/3bc0c812-2c6b-4544-bbe7-e0444c3448eb
-rw-r--r-- 1 ceph ceph  37 Jun  7 12:18 block_uuid
-rw-r--r-- 1 ceph ceph   2 Jun  7 12:18 bluefs
-rw-r--r-- 1 ceph ceph  37 Jun  7 12:18 ceph_fsid
-rw-r--r-- 1 ceph ceph  37 Jun  7 12:18 fsid
-rw------- 1 ceph ceph  56 Jun  7 12:18 keyring
-rw-r--r-- 1 ceph ceph   8 Jun  7 12:18 kv_backend
-rw-r--r-- 1 ceph ceph  21 Jun  7 12:18 magic
-rw-r--r-- 1 ceph ceph   4 Jun  7 12:18 mkfs_done
-rw-r--r-- 1 ceph ceph   6 Jun  7 12:18 ready
-rw-r--r-- 1 ceph ceph   3 Aug 23 09:56 require_osd_release
-rw-r--r-- 1 ceph ceph   0 Aug 21 12:41 systemd
-rw-r--r-- 1 ceph ceph  10 Jun  7 12:18 type
-rw-r--r-- 1 ceph ceph   2 Jun  7 12:18 whoami

And there are not files in latest snapshot:
root@ld5507:/usr/bin# ls -l 
/btrfs/@snapshots/158/snapshot/var/lib/ceph/osd/ceph-4/
insgesamt 0


Why is this?

THX


             reply	other threads:[~2019-08-27  9:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-27  9:33 Thomas Schneider [this message]
2019-08-27 22:24 ` No files in snapshot Chris Murphy
2019-08-28 14:45   ` Thomas Schneider
2019-09-04 17:36     ` Chris Murphy
2019-09-04 18:02       ` Remi Gauvin
2019-09-04 19:07         ` Chris Murphy
2019-09-04 20:52           ` Oliver Freyermuth
2019-09-05  8:50             ` Thomas Schneider
2019-09-05 18:31               ` Oliver Freyermuth
2019-09-04  9:24   ` Thomas Schneider

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b729e524-3c63-cf90-7115-02dcf2fda003@gmail.com \
    --to=74cmonty@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox