root partition may not be grown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-utils |
Fix Released
|
High
|
Scott Moser | ||
cloud-initramfs-tools (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
cloud-utils (Ubuntu) |
Fix Released
|
High
|
Scott Moser |
Bug Description
Not a dupe of bug 906722, but it seems very similar.
Occasionally on openstack clouds, we're seeing the root partition not being/grown on first-boot as it should be.
This was reported, and I have observed it on precise alpha-2 and will attach console logs. It happens sporadically.
The output of the relevant section of initramfs in the failed case looks like this:
| Begin: Running /scripts/
| Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
| Begin: Running /scripts/
| [ 0.940836] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
| Begin: Running /scripts/
| [ 1.012874] vda: vda1
| GROWROOT: WARNING: resize failed: FAILED: failed to resize
| ***** 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 ****
| [ 1.114017] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
| done.
| done.
| Begin: Running /scripts/
In the successful case, it looks like this:
| Begin: Running /scripts/
| Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
| Begin: Running /scripts/
| [ 1.035664] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
| Begin: Running /scripts/
| [ 1.094201] vda: vda1
| [ 1.135831] vda: vda1
| GROWROOT: CHANGED: partition=1 start=16065 old: size=4176900 end=4192965 new: size=20948760,
| [ 1.164067] Refined TSC clocksource calibration: 2532.595 MHz.
| [ 1.202383] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
| done.
| done.
| Begin: Running /scripts/
The code that is running here is growroot/
Other relevant info, in at least one case, a reboot got the partition resized.
--
[1] http://
[2] http://
Related bugs:
* bug 942788: sfdisk without --no-reread is likely to cause race conditions
description: | updated |
Changed in cloud-utils: | |
assignee: | nobody → Scott Moser (smoser) |
importance: | Undecided → High |
status: | New → Fix Committed |
Changed in cloud-initramfs-tools (Ubuntu): | |
importance: | Undecided → High |
status: | In Progress → Fix Released |
Changed in cloud-utils (Ubuntu): | |
assignee: | nobody → Scott Moser (smoser) |
importance: | Undecided → High |
milestone: | none → ubuntu-12.04-beta-1 |
status: | New → In Progress |
tags: | added: canonistack |
Changed in cloud-utils: | |
status: | Fix Committed → Fix Released |
This attachment does the following to a given block device input
* create a partition table for the block device with first partition using roughly half disk space
* mkfs first partition
* mount partition
* run growpart --dry-run
* umount partition
* run growpart
If you run it in a loop, it will most likely fail over 50 runs: i=0;i<50; i++)); do sudo ./go-sfdisk-crazy /dev/vdb; done
for((
I've tested/developed this on openstack instance pointing it at ephemeral disk (/dev/vdb).