]> git.proxmox.com Git - pve-storage.git/commitdiff
allow disk with LVM for journal devices
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 29 May 2019 13:48:05 +0000 (15:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 31 May 2019 09:41:33 +0000 (11:41 +0200)
With this, users can select disks with LVM on it for journal/db devices,
which will be necessary for ceph nautilus, since there
journals/db/wal will be put on an LV

of course when creating an osd, we have to detect if that
is ok (probably based on the vg name on it)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Disks.pm

index e335a13f6260fe5522a669e7037f463a171b9ead..ce4acee01be53cf2abb0df06307b67ccf65e485a 100644 (file)
@@ -137,7 +137,7 @@ __PACKAGE__->register_method ({
            my $entry = $disks->{$disk};
            if ($type eq 'journal_disks') {
                next if $entry->{osdid} >= 0;
-               next if !$entry->{gpt};
+               next if !$entry->{gpt} && $entry->{used} ne 'LVM';
            } elsif ($type eq 'unused') {
                next if $entry->{used};
            } elsif ($type ne '') {