← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1732064] [NEW] growpart + resizefs doesn't work on non-root partions

 

Public bug reported:

Image is ubuntu 16.04, cloud-init version is 0.7.9 and platform is
openstack

The volume has three partitions
/dev/vda1 ---- /
/dev/vda2 ---- swap
/dev/vda3 ---- /var

I'm using cloud-init growpart config as follows:

growpart:
    mode: auto
    devices: ["/var"]
    ignore_growroot_disabled:true

after boot, 
check the partition with fdisk -l /dev/vda3 shows the part is extended as expected, 
but the df -lh shows that the fs size is still old size and not extended.

after manually execute resize2fs /dev/vda3, the output of df matched
with fdisk。

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1732064

Title:
  growpart + resizefs doesn't work on non-root partions

Status in cloud-init:
  New

Bug description:
  Image is ubuntu 16.04, cloud-init version is 0.7.9 and platform is
  openstack

  The volume has three partitions
  /dev/vda1 ---- /
  /dev/vda2 ---- swap
  /dev/vda3 ---- /var

  I'm using cloud-init growpart config as follows:

  growpart:
      mode: auto
      devices: ["/var"]
      ignore_growroot_disabled:true

  after boot, 
  check the partition with fdisk -l /dev/vda3 shows the part is extended as expected, 
  but the df -lh shows that the fs size is still old size and not extended.

  after manually execute resize2fs /dev/vda3, the output of df matched
  with fdisk。

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1732064/+subscriptions


Follow ups