Skip to content

Commit

Permalink
[build] Increase size of dockerfs ramdisk to accomodate more containe…
Browse files Browse the repository at this point in the history
…rs (#4666)

Images built from master branch and installed on devices where we mount /var/lib/docker in RAM (because the HDD is small) were failing to boot properly. The Docker service failed to start because /var/lib/docker was filled to 100%. This is due to the increase in total number of containers in the image.

As of today, /var/lib/docker contains 1.3 GB of data. Therefore, this PR increases the size of the ramdisk to 1.5 GB to accommodate all the containers. Example output below from an Arista-7050-QX32 SKU:

```
admin@sonic:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
...
tmpfs           1.5G  1.3G  172M  89% /var/lib/docker
...
```
  • Loading branch information
jleveque authored May 29, 2020
1 parent 8cfb3a0 commit 9863b76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion onie-image-arm64.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FILESYSTEM_DOCKERFS=dockerfs.tar.gz
DOCKERFS_DIR=docker

## docker ramfs disk space
DOCKER_RAMFS_SIZE=900M
DOCKER_RAMFS_SIZE=1500M

## Output file name for onie installer
OUTPUT_ONIE_IMAGE=target/sonic-$TARGET_MACHINE.bin
Expand Down
2 changes: 1 addition & 1 deletion onie-image-armhf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FILESYSTEM_DOCKERFS=dockerfs.tar.gz
DOCKERFS_DIR=docker

## docker ramfs disk space
DOCKER_RAMFS_SIZE=900M
DOCKER_RAMFS_SIZE=1500M

## Output file name for onie installer
OUTPUT_ONIE_IMAGE=target/sonic-$TARGET_MACHINE.bin
Expand Down
2 changes: 1 addition & 1 deletion onie-image.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FILESYSTEM_DOCKERFS=dockerfs.tar.gz
DOCKERFS_DIR=docker

## docker ramfs disk space
DOCKER_RAMFS_SIZE=900M
DOCKER_RAMFS_SIZE=1500M

## Output file name for onie installer
OUTPUT_ONIE_IMAGE=target/sonic-$TARGET_MACHINE.bin
Expand Down

0 comments on commit 9863b76

Please sign in to comment.