[Bug 1244662] Re: growpart reverses changes because of partx failure

Scott Moser smoser at ubuntu.com
Tue Jan 14 14:51:10 UTC 2014


** No longer affects: cloud-utils (Ubuntu)

** Changed in: util-linux (Ubuntu)
       Status: Confirmed => In Progress

-- 
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:
  In Progress

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