Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1453297[details]
patchfile
Description of problem:
The growpart command will fail if the partition start sector is the same as partition size.
Version-Release number of selected component (if applicable):
cloud-utils-growpart-0.29-2.el7
Steps to Reproduce:
- Make a partition that has same Start and Size:
[root@localhost ~]# parted /dev/sda u s p
Model: ATA QEMU HARDDISK (scsi)
Disk /dev/sda: 41943040s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 2048s 1953791s 1951744s primary ext4 boot
2 1953792s 19531250s 17577459s primary lvm
3 19531251s 39062501s 19531251s primary
- Attempt growpart:
[root@localhost ~]# growpart /dev/sda 3
failed [pt_update:1] pt_update /dev/sda 3
partx: /dev/sda: updating partition #3 failed: Invalid argument
partx: /dev/sda: error updating partition 3
partition: none, disk: /dev/sda, lower: 3, upper: 3
/dev/sda: partition table type 'dos' detected
/dev/sda: partition #3 resized
FAILED: pt_resize failed
***** WARNING: Resize failed, attempting to revert ******
Re-reading the partition table ...
BLKRRPART: Device or resource busy
sfdisk: The command to re-read the partition table failed.
Run partprobe(8), kpartx(8) or reboot your system now,
before using mkfs
***** Appears to have gone OK ****
Actual results:
growpart fails
Expected results:
growpart succeeds
Additional info:
Patch file attached
Comment 5Lars Kellogg-Stedman
2018-12-06 14:40:24 UTC
We'll need to get the patch accepted upstream first. I've opened an upstream bug and I'll submit the patch against it.
Comment 6Lars Kellogg-Stedman
2018-12-06 15:06:42 UTC
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.
https://access.redhat.com/errata/RHBA-2019:2340
Created attachment 1453297 [details] patchfile Description of problem: The growpart command will fail if the partition start sector is the same as partition size. Version-Release number of selected component (if applicable): cloud-utils-growpart-0.29-2.el7 Steps to Reproduce: - Make a partition that has same Start and Size: [root@localhost ~]# parted /dev/sda u s p Model: ATA QEMU HARDDISK (scsi) Disk /dev/sda: 41943040s Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 2048s 1953791s 1951744s primary ext4 boot 2 1953792s 19531250s 17577459s primary lvm 3 19531251s 39062501s 19531251s primary - Attempt growpart: [root@localhost ~]# growpart /dev/sda 3 failed [pt_update:1] pt_update /dev/sda 3 partx: /dev/sda: updating partition #3 failed: Invalid argument partx: /dev/sda: error updating partition 3 partition: none, disk: /dev/sda, lower: 3, upper: 3 /dev/sda: partition table type 'dos' detected /dev/sda: partition #3 resized FAILED: pt_resize failed ***** WARNING: Resize failed, attempting to revert ****** Re-reading the partition table ... BLKRRPART: Device or resource busy sfdisk: The command to re-read the partition table failed. Run partprobe(8), kpartx(8) or reboot your system now, before using mkfs ***** Appears to have gone OK **** Actual results: growpart fails Expected results: growpart succeeds Additional info: Patch file attached