Project

General

Profile

Feature #24880

ceph_volume_client: Implementation of the cp method

Added by liu shi liu 9 days ago. Updated 5 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
07/12/2018
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
mimic,luminous
Reviewed:
Affected Versions:
Component(FS):
VolumeClient
Labels (FS):

Description

Manila's cephfs driver does not support recovering data from snapshots,The driver uses the ceph_volume_client library.

If implement cephfs_volume_client's `_cp_r` method1, it useful for data recovery of manila cephfs drivers.

[1]: https://github.com/ceph/ceph/blob/master/src/pybind/ceph_volume_client.py#L1390

History

#1 Updated by John Spray 9 days ago

I just checked who wrote that "TODO" comment, and it turns out it was me, even though I have no memory of it :-)

IIRC, the hope was that there would be a "read only clone" mechanism (i.e. a clone but the new share would have a readonly flag set), that would in reality just map the new volume to the proper .snap subdirectory, and we'd only do the full copy on a writable clone. I'm not sure whether the Manila clone API ended up in a form that provides that distinction, so that would be something to check.

#2 Updated by John Spray 9 days ago

  • Project changed from Ceph to fs

#3 Updated by Patrick Donnelly 5 days ago

  • Assignee set to Ramana Raja
  • Component(FS) VolumeClient added

Also available in: Atom PDF