growpart reverses changes because of partx failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
util-linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
growpart is failing to resize my virtual servers because partx fails to reload the partition table:
root@pierce:~# growpart /dev/vda 3
failed [pt_update:1] pt_update /dev/vda 3
partx: /dev/vda: error updating partition 3
FAILED: pt_resize failed
***** WARNING: Resize failed, attempting to revert ******
Re-reading the partition table ...
BLKRRPART: Device or resource busy
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 ****
root@pierce:~# partx --update 3 /dev/vda
partx: /dev/vda: error updating partition 3
Apparently it tries to delete the partition, which fails because it's in use:
ioctl(3, BLKPG, {BLKPG_
partprobe doesn't do this, and it works fine, so when I edit pt_update() like this:
#partx --update "$part" "$dev"
partprobe "$dev"
... everything works as expected.
Version numbers:
cloud-guest-utils: 0.27-0ubuntu4
Description: Ubuntu 13.10
Release: 13.10
Related branches
tags: | added: patch |
no longer affects: | cloud-utils (Ubuntu) |
Changed in util-linux (Ubuntu): | |
status: | Confirmed → In Progress |
Could you please provide the layout of /dev/vda before running growpart ?
I can't reproduce this locally.