[Bug 1244662] Re: growpart reverses changes because of partx failure
Launchpad Bug Tracker
1244662 at bugs.launchpad.net
Tue Jan 14 16:56:23 UTC 2014
This bug was fixed in the package util-linux - 2.20.1-5.1ubuntu12
---------------
util-linux (2.20.1-5.1ubuntu12) trusty; urgency=medium
* partx/partx.c: apply upstream commit 84ac311212c0696 for fixing bug
with 'partx --update' when used with partitions other than 1 or out of
order partition table. (LP: #1244662)
-- Scott Moser <smoser at ubuntu.com> Tue, 14 Jan 2014 10:06:30 -0500
** Changed in: util-linux (Ubuntu)
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1244662
Title:
growpart reverses changes because of partx failure
Status in “util-linux” package in Ubuntu:
Fix Released
Bug description:
growpart is failing to resize my virtual servers because partx fails
to reload the partition table:
root at 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 at 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_DEL_PARTITION, flags=0, datalen=148, {start=0,
length=0, pno=3, devname="", volname=""}}) = -1 EBUSY (Device or
resource busy)
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1244662/+subscriptions
More information about the foundations-bugs
mailing list