[pve-devel] applied: [PATCH storage 1/2] allow disk with LVM for journal devices
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri May 31 12:05:54 CEST 2019
Am 5/29/19 um 3:48 PM schrieb Dominik Csapak:
> 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 at proxmox.com>
> ---
> PVE/API2/Disks.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/PVE/API2/Disks.pm b/PVE/API2/Disks.pm
> index e335a13..ce4acee 100644
> --- a/PVE/API2/Disks.pm
> +++ b/PVE/API2/Disks.pm
> @@ -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 '') {
>
applied, thanks!
More information about the pve-devel
mailing list