[lvm driver] should use lvextend capabilities
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
Goutham Pacha Ravi |
Bug Description
Currently, the lvm driver uses commands of the form 'lvextend -L <size> -n <device-name>' to extend the logical volume size, then calls 'resize2fs' to make a corresponding change to the filesystem in the logical volume.
We should not use the '-n' argument, which tells lvextend to skip file system checks. The checks are very fast if they are not needed and it is unsafe to skip them if they are.
Additionally, lvextend can take an option '-r' wherein it takes responsibility itself for resizing the filesystem built on the logical volume. We should use it since it is more atomic than and involves less external size judgment for the file system resize than processing the file system resize separately.
Changed in manila: | |
importance: | Undecided → Medium |
assignee: | nobody → Tom Barron (tpb) |
milestone: | none → victoria-2 |
Changed in manila: | |
status: | New → In Progress |
tags: | added: driver lvm |
Changed in manila: | |
assignee: | Tom Barron (tpb) → Goutham Pacha Ravi (gouthamr) |
Fix proposed to branch: stable/ussuri /review. opendev. org/741488
Review: https:/