Re: snapshots on CephFS

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

 



Dieter,

Creating snapshots using cephfs is quite simple...all you need to do is create a directory (mkdir) inside the hidden '.snap' directory.

After that you can list (ls) and remove them (rm -r) just as you would any other directory:

smiley@server1:/mnt/cephfs$ cd .snap

smiley@server1:/mnt/cephfs/.snap$ ls
snap1  snapshot-10-13-2013

smiley@theneykov:/mnt/cephfs/.snap$ mkdir right_now


smiley@theneykov:/mnt/1/.snap$ ls -l
total 0
drwxrwxrwx 1 root root 0 Oct 13 14:38 snap1
drwxrwxrwx 1 root root 0 Oct 16 11:16 right_now
drwxrwxrwx 1 root root 0 Oct 16 11:16 snapshot-10-13-2013


Shain

Shain Miley | Manager of Systems and Infrastructure, Digital Media | smiley@xxxxxxx | 202.513.3649

________________________________________
From: ceph-users-bounces@xxxxxxxxxxxxxx [ceph-users-bounces@xxxxxxxxxxxxxx] on behalf of Kasper Dieter [dieter.kasper@xxxxxxxxxxxxxx]
Sent: Wednesday, October 16, 2013 11:01 AM
To: Gregory Farnum
Cc: ceph-users@xxxxxxxxxxxxxx
Subject:  snapshots on CephFS

Hi Greg,

on http://comments.gmane.org/gmane.comp.file-systems.ceph.user/1705
I found a statement from you regarding snapshots on cephfs:

---snip---
Filesystem snapshots exist and you can experiment with them on CephFS
(there's a hidden ".snaps" folder; you can create or remove snapshots
by creating directories in that folder; navigate up and down it, etc).
---snip---

Can you please explain in more detail or with example CMDs how to create/list/remove snapshots in CephFS ?
I assume they will be created on a directory level ?
How will the CephFS snapshots cohere with the underlaying pools ?
(e.g. using cephfs /mnt/cephfs/dir-1/dir2 set_layout -p 18)


Thanks,
-Dieter
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[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