[pve-devel] ceph osd over zfs volume

Paul Penev ppquant at gmail.com
Wed Apr 16 15:22:16 CEST 2014


I imagine that using ceph OSD on top of a ZFS zvol is a configuration
that might be unusual.

However, it is something that fits properly in my use case and there
is some effort in ceph for using some of the native features of zfs
(like snapshotting).

It seems that pveceph createosd is locked down to using only real
disks and zfs zvols do not pass the checks for "real device".

I have a small patch for CephTools.pm which relaxes the requirements
for a volume and allows the use of other types of volume, even if only
for testing purposes.

I hope this can be incorporated in proxmox
-------------------------

diff --git a/PVE/CephTools.pm b/PVE/CephTools.pm
index 7f66d20..6931fda 100644
--- a/PVE/CephTools.pm
+++ b/PVE/CephTools.pm
@@ -251,7 +251,7 @@ sub list_disks {
        return if $dev =~ m|^sr\d+$|; # skip CDs

        my $devdir = "/sys/block/$dev/device";
-       return if ! -d $devdir;
+       $devdir = "_unknown_" if ! -d $devdir;

        my $size = file_read_firstline("/sys/block/$dev/size");
        return if !$size;

-----------------------------

Paul



More information about the pve-devel mailing list