-
Notifications
You must be signed in to change notification settings - Fork 131
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
lvm(ext4) + samba (vfs objects = snapper) -> snapshots not mounted - not visible as shadow copies #397
Comments
I will be grateful for the information from the developers, whether the situation described above is a normal behavior resulting from the current state of application development, or if I am doing something wrong. As a temporary workaround I made two shell scripts. snapsmount
snapsumount
Of course the better solution would be an option in snapper's config that cause mounting the created snapshots immediately and mounting them on boot (e.g. ALWAYS_MOUNT). |
Thanks for the report. The Samba vfs_snapper currently only works with btrfs backed shares. I'll raise a bug to track this on bugzilla.samba.org, as this restriction should at least be documented in the vfs_snapper(8) man page. |
Automatically mounting snapshots might be possible using autofs. Mounting of all snapshots at startup might also be possible but so far snapper is not run during the boot process. Anyway, since SUSE if fixated on btrfs these feature will likely have to be provided by someone else. |
I also have issues with vfs_snapper and a btrfs backed share. Debian-12.5 snapper 0.10.4flags btrfs,lvm,no-ext4,xattrs,rollback,btrfs-quota,no-selinux I might open a new issue ... |
Please do. If you think the bug is Samba / vfs_snapper related then feel free to open a ticket at bugzilla.samba.org |
#917 ... I think at first the ACL-topic has to be fixed. thanks |
Hi,
I have Ubuntu 16.04.3 LTS (kernel 4.4.0-101-generic) with samba 4.9.0pre1-GIT-ffcc367 (installed/compiled from "git clone", because Ubuntu's version does not contain snapper.so module).
Snapper is installed (according to instruction at snapper.io) from deb http://download.opensuse.org/repositories/filesystems:/snapper/xUbuntu_16.04/
(snapper 0.5.4 - flags btrfs,lvm,no-ext4,xattrs,no-rollback,no-btrfs-quota,no-selinux).
I have configured LVM Thin Provisioning pool and volumes with ext4 filesystem.
For each volume I have created snapper config:
sudo snapper -c name create-config -f "lvm(ext4)" /thin/name
Then I set the permissions:
sudo snapper -c name set-config ALLOW_USERS=username
sudo snapper -c name set-config SYNC_ACL=yes
In smb.conf I have defined shares:
[Name]
hide files = /lost+found/
path = /thin/name
valid users = username
vfs objects = snapper
write list = username
Everything seems to work as it should except of Shadow Copy - when trying to see "previous versions" from Windows client, then:
I can enter (as Windows client) /thin/name/.snapshots and see appropriate numbers, entering this numbers I see snapshot folder and info.xml file. For both access is denied (owner is root with no permission for others).
So snapper has set appropriate ACL permissions as I previously configured, but snapshot is not visible at given snapshot folder.
After giving a command:
sudo snapper -c name mount number
snapshot with given number is mounted and then it is accessible for Windows client in "snapshot" folder and in "previous versions" (Shadow Copy).
I think that snapper should mount/umount these snapshots on demand but it does not do it.
Or even if the snapshot was mounted for the whole its timelife it would work properly.
Is there any solution to mount these snapshots on demand or permanently?
Of course then the snapper should umount them when trying to delete (cleanup).
I think this is a bug or I have missconfigured something, because in this case users cannot access snapshots at all (with or without using shadow copy), assuming they have no shell access (cannot use snapper command).
The text was updated successfully, but these errors were encountered: