Red Hat Bugzilla – Bug 1460692
Pass --yes flag to pvresize to force it
Last modified: 2017-08-01 18:13:55 EDT
+++ This bug was initially created as a clone of Bug #1460577 +++
Description of problem:
pvresize-size failed to resize an LVM physical volume.
Version-Release number of selected component (if applicable):
The reproducer is:
$ guestfish -N disk:10G pvcreate /dev/sda : pvresize-size /dev/sda 5G
libguestfs: error: pvresize_size: /dev/sda: /dev/sda: Requested size 5.00 GiB is less than real size 10.00 GiB. Proceed? [y/n]: [n]
Physical Volume /dev/sda not resized.
Add -v -x to the command line to see the lvm2 commands being performed.
Actually the problem is not the kernel, but the lvm2 package.
WORKING => lvm2-2.02.166-1.el7_3.4.x86_64
BROKEN => lvm2-2.02.171-4.el7.x86_64
Verified with packages:
# guestfish -N disk:10G pvcreate /dev/sda : pvresize-size /dev/sda 5G
The command finished successfully.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.