Re: [ceph-users] CephFS Snapshots in Mimic
On Tue, Jul 31, 2018 at 9:23 AM, Kenneth Waegeman wrote: > Thanks David and John, > > That sounds logical now. When I did read "To make a snapshot on directory > “/1/2/3/”, the client invokes “mkdir” on “/1/2/3/.snap” directory > (http://docs.ceph.com/docs/master/dev/cephfs-snapshots/)" it didn't come to > mind I should create subdirectory immediately. That does sound unclear to me as well. Here's a proposed docs change: https://github.com/ceph/ceph/pull/23353 - Ken ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] CephFS Snapshots in Mimic
Thanks David and John, That sounds logical now. When I did read "To make a snapshot on directory “/1/2/3/”, the client invokes “mkdir” on “/1/2/3/.snap” directory (http://docs.ceph.com/docs/master/dev/cephfs-snapshots/)" it didn't come to mind I should create subdirectory immediately. Thanks, it works now! K On 31/07/18 17:06, John Spray wrote: On Tue, Jul 31, 2018 at 3:45 PM Kenneth Waegeman wrote: Hi all, I updated an existing Luminous cluster to Mimic 13.2.1. All daemons were updated, so I did ceph osd require-osd-release mimic, so everything seems up to date. I want to try the snapshots in Mimic, since this should be stable, so i ran: [root@osd2801 alleee]# ceph fs set cephfs allow_new_snaps true enabled new snapshots Now, when I try to create a snapshot, it is not working: [root@osd2801 ~]# mkdir /mnt/bla/alleee/aaas [root@osd2801 ~]# mkdir /mnt/bla/alleee/aaas/.snap mkdir: cannot create directory ‘/mnt/bla/alleee/aaas/.snap’: File exists I tried this using ceph-fuse and the kernel client, but always get the same response. The .snap directory always exists. To create a snapshot, you create subdirectory of .snap with a name of your choice. John Should I enable something else to get snapshots working ? Thank you! Kenneth ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] CephFS Snapshots in Mimic
On Tue, Jul 31, 2018 at 3:45 PM Kenneth Waegeman wrote: > > Hi all, > > I updated an existing Luminous cluster to Mimic 13.2.1. All daemons were > updated, so I did ceph osd require-osd-release mimic, so everything > seems up to date. > > I want to try the snapshots in Mimic, since this should be stable, so i ran: > > [root@osd2801 alleee]# ceph fs set cephfs allow_new_snaps true > enabled new snapshots > > Now, when I try to create a snapshot, it is not working: > > [root@osd2801 ~]# mkdir /mnt/bla/alleee/aaas > [root@osd2801 ~]# mkdir /mnt/bla/alleee/aaas/.snap > mkdir: cannot create directory ‘/mnt/bla/alleee/aaas/.snap’: File exists > > I tried this using ceph-fuse and the kernel client, but always get the > same response. The .snap directory always exists. To create a snapshot, you create subdirectory of .snap with a name of your choice. John > Should I enable something else to get snapshots working ? > > > Thank you! > > > Kenneth > > ___ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] CephFS Snapshots in Mimic
Hi Kenneth, On Tue, 31 Jul 2018 16:44:36 +0200, Kenneth Waegeman wrote: > Hi all, > > I updated an existing Luminous cluster to Mimic 13.2.1. All daemons were > updated, so I did ceph osd require-osd-release mimic, so everything > seems up to date. > > I want to try the snapshots in Mimic, since this should be stable, so i ran: > > [root@osd2801 alleee]# ceph fs set cephfs allow_new_snaps true > enabled new snapshots > > Now, when I try to create a snapshot, it is not working: > > [root@osd2801 ~]# mkdir /mnt/bla/alleee/aaas > [root@osd2801 ~]# mkdir /mnt/bla/alleee/aaas/.snap > mkdir: cannot create directory ‘/mnt/bla/alleee/aaas/.snap’: File exists > > I tried this using ceph-fuse and the kernel client, but always get the > same response. > > Should I enable something else to get snapshots working ? It looks as though you're just missing the snapshot name in the mkdir request: rapido1:/# cd /mnt/cephfs rapido1:/mnt/cephfs# echo "before snap" >> data rapido1:/mnt/cephfs# mkdir -p .snap/mysnapshot rapido1:/mnt/cephfs# echo "after snap" >> data rapido1:/mnt/cephfs# cat .snap/mysnapshot/data before snap rapido1:/mnt/cephfs# cat data before snap after snap Cheers, David ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
[ceph-users] CephFS Snapshots in Mimic
Hi all, I updated an existing Luminous cluster to Mimic 13.2.1. All daemons were updated, so I did ceph osd require-osd-release mimic, so everything seems up to date. I want to try the snapshots in Mimic, since this should be stable, so i ran: [root@osd2801 alleee]# ceph fs set cephfs allow_new_snaps true enabled new snapshots Now, when I try to create a snapshot, it is not working: [root@osd2801 ~]# mkdir /mnt/bla/alleee/aaas [root@osd2801 ~]# mkdir /mnt/bla/alleee/aaas/.snap mkdir: cannot create directory ‘/mnt/bla/alleee/aaas/.snap’: File exists I tried this using ceph-fuse and the kernel client, but always get the same response. Should I enable something else to get snapshots working ? Thank you! Kenneth ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com