[pve-devel] [PATCH v3 storage/manager] Cephfs storage plugin

Alwin Antreich a.antreich at proxmox.com
Mon Jun 11 11:31:26 CEST 2018


This patch series is an update and adds the Cephfs to our list of storages.
You can mount the storage through the kernel or fuse client. The plugin for
now allows all content formats, but this needs further testing.

Config and keyfile locations are the same as in the RBD plugin.

Example entry:
cephfs: cephfs0
	monhost 192.168.1.2:6789
	path /mnt/pve/cephfs0
	content iso,backup,images,vztmpl,rootdir
	subdir /blubb
	fuse 0
	username admin

Comments and tests are very welcome. ;)

Changes in V3:
After some testing, I decided to remove the image/rootfs option from the
plugin in this version.

Also cephfs incorrectly propagates sparse files to the stat() system call, as
cephfs doesn't track which part is written. This will confuse users looking at
their images, files and directories with tools such as du.

The series also merges some of the cephfs & rbd code into CephStorageTools.pm.
Thus adding a very basic content check on the keyring/secret file.

Alwin Antreich (7):
Add missing dependency to ceph common
 debian/control | 1 +
 1 file changed, 1 insertion(+)

Cephfs storage wizard
 www/manager6/Makefile              |  1 +
 www/manager6/Utils.js              | 10 ++++++
 www/manager6/storage/CephFSEdit.js | 71 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 82 insertions(+)
 create mode 100644 www/manager6/storage/CephFSEdit.js

Add cephfs to allowed storages for vzdump backup
 PVE/VZDump.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Cephfs storage plugin
 PVE/API2/Storage/Config.pm  |   2 +-
 PVE/Storage.pm              |   2 +
 PVE/Storage/CephFSPlugin.pm | 225 ++++++++++++++++++++++++++++++++++++++++++++
 PVE/Storage/Makefile        |   2 +-
 PVE/Storage/Plugin.pm       |   1 +
 debian/control              |   1 +
 6 files changed, 231 insertions(+), 2 deletions(-)
 create mode 100644 PVE/Storage/CephFSPlugin.pm

Merge RBD and CephFS code into a helper module
 PVE/CephStorageTools.pm | 55 +++++++++++++++++++++++++++++++++++++++++++++++++
 PVE/Makefile            |  1 +
 2 files changed, 56 insertions(+)
 create mode 100644 PVE/CephStorageTools.pm

Call methods from CephStorageTools package
 PVE/Storage/RBDPlugin.pm | 55 +++++-------------------------------------------
 1 file changed, 5 insertions(+), 50 deletions(-)

Add simple keyring check for cephfs rbd
 PVE/CephStorageTools.pm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

-- 
2.11.0





More information about the pve-devel mailing list