d-i allocates all disk space to /home
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | MAAS |
Undecided
|
Unassigned | ||
| | partman-auto (Ubuntu) |
Medium
|
Unassigned | ||
Bug Description
I have a series of compute nodes, where d-i with the regular partman recipe, has gone and allocated most of the disk space on the boxes to /home:
ubuntu@maas:~⟫ for i in $(seq 0 2); do juju ssh nova-compute/$i df -h; done
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.1G 3.1G 5.6G 36% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 378G 4.0K 378G 1% /dev
tmpfs 76G 1.0M 76G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 378G 0 378G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda6 80G 56M 75G 1% /home
Connection to compute01 closed.
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.1G 2.1G 6.6G 24% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 378G 4.0K 378G 1% /dev
tmpfs 76G 1008K 76G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 378G 0 378G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda6 80G 56M 75G 1% /home
Connection to compute03 closed.
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.1G 2.1G 6.6G 24% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 378G 4.0K 378G 1% /dev
tmpfs 76G 1008K 76G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 378G 0 378G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda6 80G 56M 75G 1% /home
Connection to compute02 closed.
I've booted a single m1.small instance in my cloud and see:
"Disk Usage: Used 20GB of 27GB "
...in horizon.
MAAS version: 1.5.4+bzr2294-
| Jonathan Davies (jpds) wrote : | #1 |
| tags: | added: openstack |
| Andres Rodriguez (andreserl) wrote : | #2 |
This is an strange issue for MAAS. MAAS has not changed the default preseed in a long long time.
MAAS does not do any custom partition nor creates a partition for the /home. MAAS takes the whole disk and puts the root partition. If this is happening, maybe there's a bug in partman, or you are using a custom partitioning preseed. Example partition mlayoute on a maas installed node:
ubuntu@
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 240233144 3185492 224821392 2% /
none 4 0 4 0% /sys/fs/cgroup
udev 1011108 4 1011104 1% /dev
tmpfs 204932 504 204428 1% /run
none 5120 0 5120 0% /run/lock
none 1024656 0 1024656 0% /run/shm
none 102400 0 102400 0% /run/user
| Changed in maas: | |
| status: | New → Incomplete |
| Andres Rodriguez (andreserl) wrote : | #3 |
Do we have any example preseeds?
| Andres Rodriguez (andreserl) wrote : | #4 |
Machine deployed with Debian Installer and the default preseed:
ubuntu@node01:~$ sudo df -l
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/vda1 7608792 1188780 6010464 17% /
none 4 0 4 0% /sys/fs/cgroup
udev 240040 4 240036 1% /dev
tmpfs 50180 380 49800 1% /run
none 5120 0 5120 0% /run/lock
none 250896 0 250896 0% /run/shm
none 102400 0 102400 0% /run/user
| Kevin Metz (pertinent) wrote : | #5 |
Example preseed for setting swap size with volume groups
# Partitioning
d-i partman/
d-i partman-
d-i partman-auto/method string regular
d-i partman-
d-i partman-lvm/confirm boolean true
d-i partman-
d-i partman/
d-i partman-auto/method string lvm
d-i partman-
d-i partman-
d-i partman-
d-i partman-
test :: \
285 10 286 ext4 \
. \
11000 50 12000 ext4 \
. \
11000 15000 -1 ext4 \
. \
4000 50000 4100 linux-swap \
.
d-i partman-
d-i partman/
d-i partman-lvm/confirm boolean true
d-i partman/
d-i partman/
d-i partman/confirm boolean true
| Jonathan Davies (jpds) wrote : | #6 |
Just a quick note, Kevin's talking about a different environment.
| Jonathan Davies (jpds) wrote : | #7 |
I've provisioned a brand new compute node on the cluster I'm working on, and it came up with similiar partitioning, note that we have not done any customer partitioning in MAAS:
ubuntu@compute09:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.1G 1.3G 7.4G 15% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 378G 4.0K 378G 1% /dev
tmpfs 76G 996K 76G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 378G 0 378G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda6 80G 56M 75G 1% /home
ubuntu@compute09:~$ free -g
total used free shared buffers cached
Mem: 755 5 750 0 0 0
-/+ buffers/cache: 4 750
Swap: 3 0 3
ubuntu@compute09:~$ sudo fdisk -l
Disk /dev/sda: 100.0 GB, 99994337280 bytes
255 heads, 63 sectors/track, 12156 cylinders, total 195301440 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk identifier: 0x0009f6a0
Device Boot Start End Blocks Id System
/dev/sda1 * 512 19531263 9765376 83 Linux
/dev/sda2 19531774 195300863 87884545 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5 19531776 26638847 3553536 82 Linux swap / Solaris
/dev/sda6 26639360 195300863 84330752 83 Linux
| Jonathan Davies (jpds) wrote : | #8 |
Preseed file taken from MAAS "View preseed" UI:
# MAAS - Ubuntu Server Installation
# * Minimal install
# * Cloud-init for bare-metal
# * Cloud-init preseed data
# Locale
d-i debian-
# No splash
d-i debian-
# Keyboard layout
d-i console-
d-i console-
d-i console-
# Network configuration
d-i netcfg/
d-i netcfg/
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string
d-i netcfg/
# Local clock (set to UTC and use ntp)
d-i clock-setup/utc boolean true
d-i clock-setup/ntp boolean true
d-i clock-setup/
d-i time/zone string Etc/UTC
# Partitioning
d-i partman/
d-i partman-
d-i partman-auto/method string regular
d-i partman-
d-i partman-lvm/confirm boolean true
d-i partman-
d-i partman/
d-i partman/
d-i partman/confirm boolean true
d-i partman/
d-i partman/
# Enable this if you want to override to a specific kernel, such as
# linux-generic-
# on the boot kernel.
#d-i base-installer/
# User Setup
d-i passwd/root-login boolean false
d-i passwd/make-user boolean true
d-i passwd/
d-i passwd/username string ubuntu
d-i passwd/
d-i passwd/user-uid string
d-i user-setup/
d-i user-setup/
d-i passwd/
# APT
d-i mirror/country string manual
d-i mirror/
d-i mirror/
d-i mirror/http/proxy string http://
# By default the installer requires that repositories be authenticated
# using a known gpg key. This setting can be used to disable that
# authentication. Warning: Insecure, not recommended.
d-i debian-
# Lang
d-i pkgsel/
d-i pkgsel/
d-i pkgsel/updatedb boolean true
# Boot-loader
d-i grub-installer/skip boolean false
d-i lilo-installer/skip boolean false
d-i grub-installer/
d-i grub-installer/
d-i finish-
d-i finish-
# Eject cdrom
d-i cdrom-detect/eject boolean true
...
| Ante Karamatić (ivoks) wrote : | #9 |
Uniqness of this machine is that it had a lot more RAM than disk. partman-auto couldn't deploy 'atomic' recipe and went with next one, which was 'home'. This can happen with regular d-i, without MAAS.
| tags: | added: cts |
| Launchpad Janitor (janitor) wrote : | #10 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in partman-auto (Ubuntu): | |
| status: | New → Confirmed |
I see no immediate reason why things would fallback to the home recipe like this, default indeed seems like it should be atomic anyway. Furthermore, seeing as explicitly specifying atomic seems to fix it, I'm not sure what to think of this bug report. Please provide /var/log/
The behavior here certainly has nothing to do with the amount of RAM on the system, and atomic looks like it should be fine down to about 2GB size disks.
| Changed in partman-auto (Ubuntu): | |
| status: | Confirmed → Incomplete |
| importance: | Undecided → Medium |
| Jonathan Davies (jpds) wrote : | #12 |
IRC chat from the day we debugged this:
< cjwatson> It's clearly considering the atomic recipe ineligible for some reason.
< cjwatson> Probably because it thinks that its computed minimum size is greater than the free size.
< ivoks> how much memory do this machines have?
< ivoks> i suspect more than disk
< ivoks> maybe partman doesn't handle that very well
< cjwatson> I'm looking into that
< jpds> ivoks: 780GB.
< cjwatson> Odd alignment here. Seems to have put the first partition starting at 256KiB.
< cjwatson> Yeah that's going to be a problem
< cjwatson> The home recipe works because it has its minimum size set to 96 rather than 100% (of RAM)
< cjwatson> But because atomic has it set to 100%, it decides that it's too big to fit on the disk
< jpds> $ free -m: Mem total: 774023.
< cjwatson> As a quick solution I would suggest using an expert recipe
| Jonathan Davies (jpds) wrote : | #13 |
| summary: |
- MAAS allocates all disk space to /home (d-i installer) + d-i allocates all disk space to /home |
| Changed in maas: | |
| status: | Incomplete → Invalid |
| t-readyroc (t-readyroc) wrote : | #15 |
I've just deployed a 16-node compute cluster via Foreman & experienced the same issue. Each of the nodes has a 20GB disk and 64GB memory. Here's the result (same as what's been reported above):
root@pn00:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 5.1G 4.0G 858M 83% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 32G 4.0K 32G 1% /dev
tmpfs 6.3G 396K 6.3G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 32G 0 32G 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda6 14G 36M 13G 1% /home


It looks fixable by adding:
d-i partman- auto/choose_ recipe select atomic
...to the default preseed.