Re: No files in snapshot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 28, 2019 at 8:45 AM Thomas Schneider <74cmonty@xxxxxxxxx> 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



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux