Closed japokorn closed 3 months ago
blockdev.lvm.pvresize(self.pv.device)
with blockdev.lvm.pvresize(self.pv.device, 0)
grow_to_fill
a property that cannot be set unless the device is resizable (raises DeviceFormatError
)formats/__init__.py
that will prevent bypassing of resize when new size is the same as old one if device is type lvmpv
with grow_to_fill
set to True
Storage role requires support for a case when PV has to be resized to fill all available space when its device's size changes (usually on VM).
A new flag
grow_to_fill
was added, which marks the device for size expansion (all available space it taken). Proper size is determined by LVM, avoiding inaccurate size calculations in blivet.