You are not logged in.

#1 2023-11-09 23:09:42

QuarkZ
Member
Registered: 2023-11-09
Posts: 5

[SOLVED] Snapper is somehow snapshotting subvolumes that are separated

Hello,

I'm running EOS and had initially setup just root and home on separate subvolumes. I decided to finally expand on that and add more subvolumes to prevent the snapshot of unneeded things, so I added, /var/cache, log, tmp. Here's my current fstab

UUID=15893a4f-4744-4d40-aea8-e1ee8c2e5033   /                btrfs           subvol=@,noatime,autodefrag,compress-force=zstd                                 0 0 
UUID=15893a4f-4744-4d40-aea8-e1ee8c2e5033   /home            btrfs           subvol=@home,noatime,autodefrag,compress-force=zstd                             0 0 
UUID=15893a4f-4744-4d40-aea8-e1ee8c2e5033   /.snapshots      btrfs           subvol=@snapshots,noatime,autodefrag,compress-force=zstd                        0 0
UUID=15893a4f-4744-4d40-aea8-e1ee8c2e5033   /var/log         btrfs           subvol=@logs,noatime,autodefrag,compress-force=zstd                             0 0
UUID=15893a4f-4744-4d40-aea8-e1ee8c2e5033   /var/cache       btrfs           subvol=@cache,noatime,autodefrag,compress-force=zstd                            0 0
UUID=15893a4f-4744-4d40-aea8-e1ee8c2e5033   /var/tmp         btrfs           subvol=@tmp,noatime,autodefrag,compress-force=zstd                              0 0
UUID=15893a4f-4744-4d40-aea8-e1ee8c2e5033   /swap            btrfs           subvol=@swap,defaults                                                           0 0
/swap/swapfile                              none             swap            defaults                                                                        0 0

I then took a manual single snapshot, and realized that everything in /var was actually snapshotted too. As in, if I browse into the snapshot, I can see it there. I do see home empty, and snapshots too, but the @cache, @logs and @tmp are still full. If I mount the actual root, I can see the subvolumes, and they are acting normally. Am I missing something?

Edit, just to show the content of /var/cache

ls /.snapshots/5/snapshot/var/cache/
fontconfig  ldconfig  man  pacman  pkgfile  private  samba  swcatalog  yay

Thanks.

Edit 2: I'm just an idiot who apparently thought the folders would magically rearrange themselves. Of course, what I was seeing was the old data that was still present in the original folders and that I needed to remove!

Last edited by QuarkZ (2023-11-10 01:47:27)

Offline

Board footer

Powered by FluxBB