Disksize is only 2GB, expected in 10GB

Bug #1740176 reported by Jarl
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
Confirmed
Undecided
Unassigned

Bug Description

Upon creation of new vagrant box:

vagrant init ubuntu/artful32
vagrant up

I look inside the box and see strange disk capacity. fdisk claims it is size 10GB. but the file system 2.2 GB.

vagrant@ubuntu-artful:~$ cat /etc/cloud/build.info
build_name: server
serial: 20171220
vagrant@ubuntu-artful:~$ sudo fdisk -l /dev/sda
Disk /dev/sda: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5e4defa6

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 20971486 20969439 10G 83 Linux
vagrant@ubuntu-artful:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1000M 0 1000M 0% /dev
tmpfs 202M 3.2M 199M 2% /run
/dev/sda1 2.2G 1.3G 849M 61% /
tmpfs 1007M 0 1007M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1007M 0 1007M 0% /sys/fs/cgroup
tmpfs 202M 0 202M 0% /run/user/1000

Revision history for this message
Dan Watkins (oddbloke) wrote : Re: [Bug 1740176] [NEW] Disksize is only 2GB, expected in 10GB

Hi Jarl,

Thanks for the bug report! Resizing of the partition happens during
boot. It's _possible_ that you could be able to access the machine
before it completes. Could you confirm that you still see this issue
once the machine has been up for a few minutes?

Thanks,

Dan

Revision history for this message
Chris Glass (tribaal) wrote :

It seems resizing of the partition does indeed not work on artful32/64, resize2fs complains that the filesystem is mounted and blows up.

The relevant cloud-init log failure: https://pastebin.ubuntu.com/26312692/

Revision history for this message
Balint Reczey (rbalint) wrote :

I observed the same behaviour running vagrant on Zesty with the latest box:

vagrant@ubuntu-artful:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 494M 0 494M 0% /dev
tmpfs 100M 3.2M 97M 4% /run
/dev/sda1 2.2G 857M 1.3G 40% /
tmpfs 500M 0 500M 0% /dev/shm
...

vagrant@ubuntu-artful:~$ cat /etc/cloud/build.info
build_name: server
serial: 20180102

Changed in cloud-images:
status: New → Confirmed
Revision history for this message
Chris Glass (tribaal) wrote :

Resizing the filesystem manually once the system booted does work: https://pastebin.ubuntu.com/26312740/

Revision history for this message
Scott Moser (smoser) wrote :

I suspect a duplicate of bug 1726818.

I'm going to mark as such, if you think otherwise please feel free to un-dupe.

Revision history for this message
Jarl (jarl-dk) wrote :

I agree, it seems like a duplicate bug...

tags: added: id-5a4babf3784083ca10775249
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.