All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Murphy <lists@colorremedies.com>
To: Thomas Schneider <74cmonty@gmail.com>
Cc: Chris Murphy <lists@colorremedies.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: No files in snapshot
Date: Wed, 4 Sep 2019 11:36:07 -0600	[thread overview]
Message-ID: <CAJCQCtRPUi3BLeSVqELopjC7ZvihOBi321_nxqcUG1jpgwq9Ag@mail.gmail.com> (raw)
In-Reply-To: <f22229eb-ab68-fecb-f10a-6e40c0b0e1ef@gmail.com>

On Wed, Aug 28, 2019 at 8:45 AM Thomas Schneider <74cmonty@gmail.com> wrote:
>
> Hi,
>
> I was thinking of this, too. But it does not apply.
> root@ld5507:~# btrfs su list -to /var/lib
> ID      gen     top level       path
> --      ---     ---------       ----
> root@ld5507:~# btrfs su list -to /var
> ID      gen     top level       path
> --      ---     ---------       ----
>
> And there are files in other directories:
> root@ld5507:~# ls -l /.snapshots/158/snapshot/var/lib/ceph/mgr/ceph-ld5507/
> insgesamt 4
> -rw-r--r-- 1 ceph ceph 61 Mai 28 14:33 keyring
>
> root@ld5507:~# ls -l /.snapshots/158/snapshot/var/lib/ceph/mon/ceph-ld5507/
> insgesamt 12
> -rw------- 1 ceph ceph  77 Mai 28 14:33 keyring
> -rw-r--r-- 1 ceph ceph   8 Mai 28 14:33 kv_backend
> -rw-r--r-- 1 ceph ceph   3 Aug 23 09:41 min_mon_release
> drwxr-xr-x 1 ceph ceph 244 Aug 26 18:37 store.db
>
> Only this directories
> /.snapshots/158/snapshot/var/lib/ceph/osd/ceph-<id>/ are empty:
> root@ld5507:~# ls -l /.snapshots/158/snapshot/var/lib/ceph/osd/ceph-219/
> insgesamt 0
>
> To create a snapshot I run this command:
> snapper create --type single --description "validate
> /var/lib/ceph/osd/ceph-<n>"
>

I don't really know how snapper works.

The way 'btrfs subvolume snapshot' works,  you must point it to a
subvolume. It won't snapshot a regular directory and from what you
posted above, there are no subvolumes in /var or /var/lib which means
trying to snapshot /var/lib/ceph/osd/ceph-....  would fail. So maybe
it's failing but snapper doesn't show the error. I'm not really sure.

-- 
Chris Murphy

  reply	other threads:[~2019-09-04 17:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-27  9:33 No files in snapshot Thomas Schneider
2019-08-27 22:24 ` Chris Murphy
2019-08-28 14:45   ` Thomas Schneider
2019-09-04 17:36     ` Chris Murphy [this message]
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=CAJCQCtRPUi3BLeSVqELopjC7ZvihOBi321_nxqcUG1jpgwq9Ag@mail.gmail.com \
    --to=lists@colorremedies.com \
    --cc=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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.