mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
5096335277
This provides better hints when trying to resize the fs on top of an LV. Also needs a3f6d2f593a4d278daf9ba3a1ba30bae38d8396a for proper operation. ❯ lvs -o name,size vg/swap lv_name lv_size swap 60.00m Before: ❯ lvextend -L72m vg/swap Size of logical volume vg/swap changed from 60.00 MiB (15 extents) to 72.00 MiB (18 extents). Logical volume vg/swap successfully resized. ❯ lvreduce -L60m vg/swap File system swap found on vg/swap. File system device usage is not available from libblkid. ❯ lvreduce -L50m vg/swap Rounding size to boundary between physical extents: 52.00 MiB. File system swap found on vg/swap. File system device usage is not available from libblkid. After: ❯ lvextend -L72m vg/swap Size of logical volume vg/swap changed from 60.00 MiB (15 extents) to 72.00 MiB (18 extents). Logical volume vg/swap successfully resized. ❯ lvreduce -L60m vg/swap File system swap found on vg/swap. File system size (60.00 MiB) is equal to the requested size (60.00 MiB). File system reduce is not needed, skipping. Size of logical volume vg/swap changed from 72.00 MiB (18 extents) to 60.00 MiB (15 extents). Logical volume vg/swap successfully resized. ❯ lvreduce -L50m vg/swap Rounding size to boundary between physical extents: 52.00 MiB. File system swap found on vg/swap. File system size (60.00 MiB) is larger than the requested size (52.00 MiB). File system reduce is required and not supported (swap).