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>"
Am 28.08.2019 um 00:24 schrieb Chris Murphy:
On Tue, Aug 27, 2019 at 3:33 AM Thomas Schneider <74cmo...@gmail.com> wrote:
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.
Snapshots are not recursive on Btrfs. The snapshot will not extend
into nested subvolumes. Check to see if you are snapshotting the
proper subvolume.
# btrfs sub list -to /var/lib
# btrfs sub list -to /var/
In some sense these are redundant, I'm not sure if your /var/lib is a
subvolume or not. Also please include the exact snapshot command
you're making.