Docker Community Forums

Share and learn in the Docker community.

Space / Partitioning Issues on Fedora 27 Atomic Host


(Bzowk) #1

Hey Guys -

Hope I’m posting this in the correct category :slight_smile:

I’m fairly new to Docker and am learning it by running a Fedora 27 Atomic host at home on a dedicated system. I currently have about 5 containers installed including one for Handbrake which watches for and encodes media automatically. I am confused about Docker’s partitioning so wanted to post and ask to see what was up.

When uploading a ~15gb file to test this container earlier, I started having tons of issues as all commands resulted in me being out of space however I shouldn’t be close to it. After digging a bit, it seems as though my partitioning is set up to where Docker only has 15G to work with although the physical disk is an 80gb SSD.

It seems that /dev/sda is reporting as 80gb which is all taken by one 1gb and one 79gb partition. However, you can see that Docker’s root is set for 15gb and the swap to 4gb. I ran “du -hs” against individual folders in the root and it seems as though all of it adds up to being just under 15gb. It’s been a few weeks since I installed Atomic, but am 90% sure I let it auto partition assuming it would use 100% of the disk.

So - with the 15gb root and 4gb swap aside, where is the other ~60gb? Is it possible to map/partition that so I can use it? Thanks!!

Below are some of the stats retrieved…
# fdisk -l

Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772160 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: 0xec0e0e0a

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 2099199 2097152 1G 83 Linux
/dev/sda2 2099200 167772159 165672960 79G 8e Linux LVM

Disk /dev/mapper/fedora–atomic_kndockerhost**-root: 15 GiB**, 16106127360 bytes, 31457280 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

Disk /dev/mapper/fedora–atomic_kndockerhost-swap: 4 GiB, 4278190080 bytes, 8355840 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

# df -h

Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 2.0G 908K 2.0G 1% /run
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/mapper/fedora–atomic_kndockerhost-root 15G 13G 2.5G 84% /sysroot
/dev/sda1 976M 134M 776M 15% /boot
tmpfs 395M 0 395M 0% /run/user/0
overlay 15G 13G 2.5G 84% /var/lib/docker/overlay2/7b598a02745898c18be22b5135725958f1a6789959a8f4a636341bbd8b4a4a09/merged
shm 64M 0 64M 0% /var/lib/docker/containers/90f8137eb6f0065c29ed5c02876c7f4acc567b25f03d0941e61b9776e5e2677f/shm
overlay 15G 13G 2.5G 84% /var/lib/docker/overlay2/030c9c77a7a56bf1850b22d00647578f15852aafab153bdd29f11f83a8627e2d/merged
shm 64M 0 64M 0% /var/lib/docker/containers/2da698f83bf79d642aae8cc5040921441185cc4fd9709674350e940bdafb7665/shm