]> git.proxmox.com Git - pve-storage.git/commit
fix #2046 add volume_size_info to LVMPlugin
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 4 Jan 2019 13:06:24 +0000 (14:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 15 Jan 2019 08:43:07 +0000 (09:43 +0100)
commit955c1f2cf7e358c03e9ee8e5245195010223172a
tree4e407ddce6d90ba38837d5e8b108e6e9344484bf
parent4b3088a0a80afcacff258b5e1e04fb9d78edf60a
fix #2046 add volume_size_info to LVMPlugin

Without volume_size_info a Storage plugin falls back to the Implementation
in PVE/Storage/Plugin.pm, which relies on `qemu-img info`.

`qemu-img info` returns wrong results on a node in the case of shared volume
groups (e.g. when sharing disks via iSCSI), if a disk was resized on another
node (it lseeks to the end of the block-device, and this yields the old size).

Using lvs directly fixes the issue, since the LVM metadata gets updated when
invoking lvs.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PVE/Storage/LVMPlugin.pm