Corsinvest / cv4pve-barc

Backup And Restore Ceph for Proxmox VE
https://www.cv4pve-tools.com
GNU General Public License v3.0
82 stars 22 forks source link

multiple ceph cluster support #29

Open aderumier opened 6 years ago

aderumier commented 6 years ago

Hi,

currently rbd commands don't specify specifc monitors or specific ceph.conf.

That mean that it's only work with the cluster defined in /etc/pve/conf

This could be great to be able to add

1) another ceph.conf (rbd -c /path/ceph.conf) or 2) pass monitor address to command line (rbd -m ip1;ip2;ip3)

and cephx auth + keyring if supported

proxmox code is

/usr/share/perl5/PVE/Storage/RBDPlugin.pm

if ($pveceph_managed) {
    push @$cmd, '-c', $pveceph_config;
} else {
    push @$cmd, '-m', $hostlist->($scfg->{monhost}, ',');
    push @$cmd, '--auth_supported', -e $keyring ? 'cephx' : 'none';
}

if (-e $keyring) {
    push @$cmd, '-n', "client.$username";
    push @$cmd, '--keyring', $keyring;
}
franklupo commented 6 years ago

Hi, in new version.

Best regards

ndb14 commented 5 years ago

Hello,

It will be great if this update was done :)

I have 2 ceph cluster and i can't backup the second one.

PS : your script is great