Bug 1461767 - Trying to resize xfs filesystem without libguestfs-xfs installed fails with no warning or error message.
Summary: Trying to resize xfs filesystem without libguestfs-xfs installed fails with n...
Keywords:
Status: CLOSED DUPLICATE of bug 1204063
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-15 09:39 UTC by Juan Jimenez
Modified: 2017-06-15 09:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-15 09:56:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Juan Jimenez 2017-06-15 09:39:31 UTC
Description of problem:

If I have an image that is being expanded, and I want to expand an xfs filesystem in the process, but libguestfs-xfs is not installed, the expansion fails witb no warning or error message.

Version-Release number of selected component (if applicable):

virt-resize 1.28.1

How reproducible:

Double the size of a working image into a new image file, then try to resize both the vdisk and the root filesystem.

Steps to Reproduce:
1. qemu-img create -f qcow2 -o preallocation=metadata <new_image>.qcow2 32G
2. virt-resize --expand /dev/sda2 --LV-expand /dev/centos/root  <old_image>.qcow2 <new.image>.qcow2

Actual results:

Device image expanded, filesystem specified does not change.

Expected results:

Device image expanded, filesystem also expanded.

Additional info:

Resolution is to install libguestfs-xfs but should give error or warning if not installed.

Comment 1 Pino Toscano 2017-06-15 09:56:07 UTC
Since virt-resize 1.31.21 there is a new option --unknown-filesystems to tweak the behaviour of virt-resize when resizing filesystems without a known method to expand them (possibly because the tools for it are missing).
The option takes three values:
- ignore: do nothing, not even print any message
- warn: do not expand, but print a warning message about the unexpanded filesystem
- error: error out when trying to expand a filesystem without valud method for it

The default is "warn", so it means you will see a warning by default.

Comment 2 Pino Toscano 2017-06-15 09:58:33 UTC
Ah, I missed this was already reported as bug 1204063.

*** This bug has been marked as a duplicate of bug 1204063 ***


Note You need to log in before you can comment on or make changes to this bug.