Re: CephFS snapshots with samba shadowcopy

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

 



Hi,

I am providing CephFS snapshots via Samba with the shadow_copy2 VFS object. I am running CentOS 7 with smbd 4.10.16 for which ceph_snapshots is not available AFAIK.

Snapshots are created by a cronjob above the root of my shares with
  export TZ=GMT
  mkdir /cephfs/path/.snap/`date +@GMT-%Y.%m.%d-%H.%M.%S`
i.e. the exported shares are subfolders of the folder in which I create snapshots.

Samba configuration is:
  [global]
  ...
  shadow:snapdir = .snap
  shadow:snapdirseverywhere = yes
  shadow:format = _@GMT-%Y.%m.%d-%H.%M.%S_some-inode-number
  ...
  [sharename]
  ...
  path = /cephfs/path_to_main_root/share
  vfs object = shadow_copy2
  ...
  [other_share_with_different_root]
  ...
  path = /cephfs/path_to_different_root/other_share
  vfs object = shadow_copy2
  shadow:format = _@GMT-%Y.%m.%d-%H.%M.%S_other-inode-number

The inode numbers in the configuration are of course the inode numbers of the directory containing the snapshots.

Cheers
Sebastian

On 13.07.22 02:08, Bailey Allison wrote:
Hi All,

Curious if anyone is making use of samba shadowcopy with CephFS snapshots
using the vfs object ceph_snapshots?

I've had wildly different results on an Ubuntu 20.04 LTS samba server where
the snaps just do not appear at all within shadowcopy, and a Rocky Linux
samba server where the snaps do appear within shadowcopy but when opening
them they contain absolutely no files at all.

Both the Ubuntu and Rocky samba server are sharing out kernel cephfs mount
via samba, ceph version is 17.2.1 and samba version is 4.13.7 for Ubuntu
20.04 and 4.15.5 for Rocky Linux.

I have also tried using a samba fuse mount with vfs_ceph with the same
results.

More so just curious to see if anyone on the list has had success with
making use of the ceph_snapshots vfs object and if they can share how it has
worked for them.

Included below is the share config for both Ubuntu and Rocky if anyone is
curious:

Ubuntu 20.04 LTS

[public]

         force group = nogroup

         force user = nobody

         guest ok = Yes

         path = /mnt/cephfs/public

         read only = No

         vfs objects = ceph_snapshots

Rocky Linux

[public]

         force group = nogroup

         force user = nobody

         guest ok = Yes

         path = /mnt/cephfs/public

         read only = No

         vfs objects = ceph_snapshots

Regards,

Bailey

_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx

--
Dr. Sebastian Knust      | Bielefeld University
IT Administrator         | Faculty of Physics
Office: D2-110           | Universitätsstr. 25
Phone: +49 521 106 5234  | 33615 Bielefeld
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux