[Bug 906722] Re: root partition is not being grown

Steve Langasek steve.langasek at canonical.com
Tue Dec 20 17:34:35 UTC 2011


Doesn't look to me like any changes to util-linux are called for here.
I think cloud-init should just have a versioned dependency on util-linux
(>= 2.20) and call sfdisk with the --no-reread option, since that's what
you want.  (You know that the disk is always going to be mounted in this
case, and that you always want to resize if necessary, so this check
doesn't seem to serve any purpose here.)

If that doesn't work for whatever reason, feel free to reopen against
util-linux of course.

** Changed in: util-linux (Ubuntu)
       Status: New => Invalid

-- 
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/906722

Title:
  root partition is not being grown

Status in “cloud-initramfs-tools” package in Ubuntu:
  Confirmed
Status in “util-linux” package in Ubuntu:
  Invalid

Bug description:
  Upon booting an openstack instance of precise-i386-20111219-failed-console.log, I found that the root filesystem had not been resized as it normally would have been.
  This occurred on both i386 and amd64.

  Kernel output contains something like:
  Begin: Running /scripts/local-bottom ... [    1.852884] FDC 0 is a S82078B
  [    1.862945] 8139cp 0000:00:03.0: eth0: RTL-8139C+ at 0xf840a000, 02:16:3e:21:8a:47, IRQ 11
  [    1.877189] 8139too: 8139too Fast Ethernet driver 0.9.28
  ***** WARNING: Resize failed, attempting to revert ******
  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 ****
  GROWROOT: FAILED: failed to resize
  Re-reading the partition table ...
  done.
  done.
  Begin: Running /scripts/init-bottom ... done.

  
  It should show something like:

  Begin: Running /scripts/local-bottom ... [    1.314676] 8139cp 0000:00:03.0: eth0: RTL-8139C+ at 0xf840a000, 02:16:3e:3e:94:65, IRQ 11
  [    1.320377] FDC 0 is a S82078B
  [    1.335493] 8139too: 8139too Fast Ethernet driver 0.9.28
  GROWROOT: CHANGED: partition=1 start=16065 old: size=4176900 end=4192965 new: size=20948760,end=20964825
  [    1.372287]  vda: vda1
  [    1.398773] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
  done.
  done.
  Begin: Running /scripts/init-bottom ... done.

  This worked as recently as ubuntu-precise-daily-i386-server-20111213.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: cloud-initramfs-growroot 0.2ubuntu1
  ProcVersionSignature: User Name 3.2.0-5.11-virtual 3.2.0-rc5
  Uname: Linux 3.2.0-5-virtual x86_64
  ApportVersion: 1.90-0ubuntu1
  Architecture: amd64
  Date: Tue Dec 20 05:25:48 2011
  Ec2AMI: ami-0000011f
  Ec2AMIManifest: FIXME
  Ec2AvailabilityZone: nova
  Ec2InstanceType: m1.small
  Ec2Kernel: unavailable
  Ec2Ramdisk: unavailable
  PackageArchitecture: all
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: cloud-initramfs-tools
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-initramfs-tools/+bug/906722/+subscriptions




More information about the foundations-bugs mailing list