Re: [pve-devel] [PATCH storage 2/2] rbd: volume resize: avoid passing floating point value to rbd

2023-06-07 Thread Fiona Ebner
Am 06.06.23 um 19:37 schrieb Thomas Lamprecht: > Am 28/04/2023 um 14:32 schrieb Fiona Ebner: >> >> -my $cmd = $rbd_cmd->($scfg, $storeid, 'resize', '--size', >> ($size/1024/1024), $name); >> +my $cmd = $rbd_cmd->($scfg, $storeid, 'resize', '--size', >> ceil($size/1024/1024), $name); >

Re: [pve-devel] [PATCH storage 2/2] rbd: volume resize: avoid passing floating point value to rbd

2023-06-06 Thread Thomas Lamprecht
Am 28/04/2023 um 14:32 schrieb Fiona Ebner: > which causes an error "the argument for option '--size' is invalid". > Just round up to the nearest integer to have at least the requested > size. This is similar to what is done for ZFS with d3e3e5d ("When > resizing a ZFS volume, align size to 1M")

[pve-devel] [PATCH storage 2/2] rbd: volume resize: avoid passing floating point value to rbd

2023-04-28 Thread Fiona Ebner
which causes an error "the argument for option '--size' is invalid". Just round up to the nearest integer to have at least the requested size. This is similar to what is done for ZFS with d3e3e5d ("When resizing a ZFS volume, align size to 1M") and makes commands like 'qm resize 102 scsi1 +0.01G'