Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple subvolumes not working - howto? (gentoo - openrc) #930

Open
F1shst4le opened this issue Sep 3, 2024 · 1 comment
Open

multiple subvolumes not working - howto? (gentoo - openrc) #930

F1shst4le opened this issue Sep 3, 2024 · 1 comment

Comments

@F1shst4le
Copy link

F1shst4le commented Sep 3, 2024

Hello, i am using gentoo Linux with openrc
i installed snapper with the following code:

emerge app-backup/snapper
umount /.snapshots
rm -r /.snapshots
snapper create-config /
mount -a
sed -i 's/ALLOW_GROUPS=""/ALLOW_GROUPS="wheel"/g' /etc/snapper/configs/root
snapper -c home create-config /home
sed -i 's/ALLOW_GROUPS=""/ALLOW_GROUPS="wheel"/g' /etc/snapper/configs/home
snapper -c var create-config /var
sed -i 's/ALLOW_GROUPS=""/ALLOW_GROUPS="wheel"/g' /etc/snapper/configs/var
snapper -c usr create-config /usr
sed -i 's/ALLOW_GROUPS=""/ALLOW_GROUPS="wheel"/g' /etc/snapper/configs/usr

... some others too

my System finds the configs for the other subvolumes but only creates the snapshots for the @ (=root) subvolume.

can you give me a hint / an idea why it does not create snapshots of other subvolumes than root?

here is some tail of the snapper.log:

2024-09-04 00:01:00 MIL libsnapper(14133) snapperd.cc(main):283 - Requesting DBus name 2024-09-04 00:01:00 MIL libsnapper(14133) snapperd.cc(main):298 - Loading snapper configs 2024-09-04 00:01:00 MIL libsnapper(14133) Snapper.cc(getConfigs):355 - Snapper get-configs 2024-09-04 00:01:00 MIL libsnapper(14133) Snapper.cc(getConfigs):356 - libsnapper version 0.11.0 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/conf.d/snapper 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SNAPPER_CONFIGS value:root snapper.conf home user var var-log opt tmp usr VMs 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/root 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/ 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/snapper.conf 2024-09-04 00:01:00 WAR libsnapper(14133) AsciiFile.cc(None):143 - THROW: fopen '/etc/snapper/configs/snapper.conf' for reading failed, errno:2 (No such file or directory) 2024-09-04 00:01:00 WAR libsnapper(14133) Snapper.cc(getConfigs):374 - CAUGHT: fopen '/etc/snapper/configs/snapper.conf' for reading failed, errno:2 (No such file or direc> 2024-09-04 00:01:00 ERR libsnapper(14133) Snapper.cc(getConfigs):376 - reading config 'snapper.conf' failed 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/home 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/home 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/user 2024-09-04 00:01:00 WAR libsnapper(14133) AsciiFile.cc(None):143 - THROW: fopen '/etc/snapper/configs/user' for reading failed, errno:2 (No such file or directory) 2024-09-04 00:01:00 WAR libsnapper(14133) Snapper.cc(getConfigs):374 - CAUGHT: fopen '/etc/snapper/configs/user' for reading failed, errno:2 (No such file or directory) 2024-09-04 00:01:00 ERR libsnapper(14133) Snapper.cc(getConfigs):376 - reading config 'user' failed 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/var 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/var 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/var-log 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/var/log 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/opt 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/opt 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/tmp 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/tmp 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/usr 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/usr 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/VMs 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/VMs 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_USERS value: 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_GROUPS value:wheel 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_USERS value: 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_GROUPS value:wheel 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_USERS value: 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_GROUPS value:wheel 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_USERS value: 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_GROUPS value:wheel 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_USERS value: 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_GROUPS value:wheel 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_USERS value: 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_GROUPS value:wheel 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_USERS value: 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_GROUPS value:wheel 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_USERS value: 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:ALLOW_GROUPS value:wheel 2024-09-04 00:01:00 MIL libsnapper(14133) snapperd.cc(main):311 - Listening for method calls and signals 2024-09-04 00:01:00 MIL libsnapper(14133) Snapper.cc(Snapper):97 - Snapper constructor 2024-09-04 00:01:00 MIL libsnapper(14133) Snapper.cc(Snapper):98 - snapper version 0.11.0 2024-09-04 00:01:00 MIL libsnapper(14133) Snapper.cc(Snapper):99 - libsnapper version 7.4.3 2024-09-04 00:01:00 MIL libsnapper(14133) Snapper.cc(Snapper):100 - config_name:root root_prefix:/ disable_filters:false 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/root 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/ 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:FSTYPE value:btrfs 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:QGROUP value:1/0 2024-09-04 00:01:00 MIL libsnapper(14133) AsciiFile.cc(get_value):1076 - key:SYNC_ACL value:no 2024-09-04 00:01:00 MIL libsnapper(14133) Snapper.cc(Snapper):130 - subvolume:/ filesystem:btrfs 2024-09-04 00:01:00 MIL libsnapper(14133) Snapper.cc(loadIgnorePatterns):204 - number of ignore patterns:8 2024-09-04 00:01:00 ERR libsnapper(14133) Snapshot.cc(read):322 - snapshot check failed. not adding snapshot 1 2024-09-04 00:01:00 ERR libsnapper(14133) Snapshot.cc(read):322 - snapshot check failed. not adding snapshot 2 2024-09-04 00:01:00 ERR libsnapper(14133) Snapshot.cc(read):322 - snapshot check failed. not adding snapshot 3 2024-09-04 00:01:00 MIL libsnapper(14133) Snapshot.cc(read):340 - found 17 snapshots 2024-09-04 00:01:00 WAR libsnapper(14133) FileUtils.cc(SDir):88 - THROW: open failed path://.snapshots/20 errno:2 (No such file or directory) 2024-09-04 00:01:00 WAR libsnapper(14133) Btrfs.cc(checkSnapshot):484 - CAUGHT: open failed path://.snapshots/20 errno:2 (No such file or directory) 2024-09-04 00:01:00 WAR libsnapper(14133) FileUtils.cc(SDir):63 - THROW: open failed path:/usr/lib/snapper/plugins errno:2 (No such file or directory) 2024-09-04 00:01:00 WAR libsnapper(14133) PluginsImpl.cc(run_scripts):68 - CAUGHT: open failed path:/usr/lib/snapper/plugins errno:2 (No such file or directory) 2024-09-04 00:01:00 WAR libsnapper(14133) FileUtils.cc(SDir):63 - THROW: open failed path:/usr/lib/snapper/plugins errno:2 (No such file or directory) 2024-09-04 00:01:00 WAR libsnapper(14133) PluginsImpl.cc(run_scripts):68 - CAUGHT: open failed path:/usr/lib/snapper/plugins errno:2 (No such file or directory) 2024-09-04 00:01:00 WAR libsnapper(14133) FileUtils.cc(SDir):63 - THROW: open failed path:/usr/lib/snapper/plugins errno:2 (No such file or directory) 2024-09-04 00:01:00 WAR libsnapper(14133) PluginsImpl.cc(run_scripts):68 - CAUGHT: open failed path:/usr/lib/snapper/plugins errno:2 (No such file or directory) 2024-09-04 00:01:30 MIL libsnapper(14133) Snapper.cc(~Snapper):142 - Snapper destructor 2024-09-04 00:02:00 MIL libsnapper(14133) snapperd.cc(main):315 - Exiting

@aschnell
Copy link
Member

aschnell commented Sep 5, 2024

There are several of these errors in the log:

CAUGHT: fopen '/etc/snapper/configs/snapper.conf' for reading failed, errno:2 (No such file or direc...

I cannot explain this right now. Please check the content of /etc/snapper/configs/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants