Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase main disk size for uyuni BVs #1399

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

maximenoel8
Copy link
Contributor

@maximenoel8 maximenoel8 commented Oct 1, 2024

Context

Repo synchronization is failing for uyuni BV because of disk space shortage.

uyuni-bv-master-server:/var/lib/containers/storage # df -h
Filesystem                                   Size  Used Avail Use% Mounted on
devtmpfs                                     4.0M  4.0K  4.0M   1% /dev
tmpfs                                         20G   92K   20G   1% /dev/shm
tmpfs                                        7.9G  1.2M  7.9G   1% /run
tmpfs                                        4.0M     0  4.0M   0% /sys/fs/cgroup
/dev/vda3                                     15G  2.0G   13G  14% /
/dev/vda3                                     15G  2.0G   13G  14% /root
/dev/vda4                                    5.1G  4.6G  106M  98% /var
overlay                                      5.1G  4.6G  106M  98% /etc
tmpfs                                         20G  1.1M   20G   1% /tmp
/dev/vda2                                     20M  3.0M   17M  15% /boot/efi
/dev/vda3                                     15G  2.0G   13G  14% /.snapshots
/dev/vda3                                     15G  2.0G   13G  14% /boot/grub2/i386-pc
/dev/vda3                                     15G  2.0G   13G  14% /boot/grub2/x86_64-efi
/dev/vda3                                     15G  2.0G   13G  14% /boot/writable
/dev/vda3                                     15G  2.0G   13G  14% /home
/dev/vda3                                     15G  2.0G   13G  14% /opt
/dev/vda3                                     15G  2.0G   13G  14% /srv
/dev/vda3                                     15G  2.0G   13G  14% /usr/local
overlay                                      5.1G  4.6G  106M  98% /var/lib/overlay/1/sync/etc
/dev/vdb1                                    3.0T  250G  2.6T   9% /srv/spacewalk_storage
/dev/vdc1                                    147G   30G  110G  22% /srv/pgsql_storage
minima-mirror-ci-bv.mgr.suse.de:/srv/mirror  5.9T  2.9T  3.1T  49% /srv/mirror
overlay                                      5.1G  4.6G  106M  98% /var/lib/containers/storage/overlay/529c2e95e225e8166ba8d8b8b3ffb1cb6ccacc0cb76188599da179bc08d1b012/merged
uyuni-bv-master-server:/var/lib/containers/storage # lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
vda    253:0    0   20G  0 disk 
├─vda1 253:1    0    2M  0 part 
├─vda2 253:2    0   20M  0 part /boot/efi
├─vda3 253:3    0   15G  0 part /usr/local
│                               /srv
│                               /opt
│                               /home
│                               /boot/writable
│                               /boot/grub2/x86_64-efi
│                               /boot/grub2/i386-pc
│                               /.snapshots
│                               /root
│                               /
└─vda4 253:4    0    5G  0 part /var/lib/containers/storage/overlay
                                /var
vdb    253:16   0    3T  0 disk 
└─vdb1 253:17   0    3T  0 part /srv/spacewalk_storage
vdc    253:32   0  150G  0 disk 
└─vdc1 253:33   0  150G  0 part /srv/pgsql_storage

This shortage is explained because the host storage and default container data are sharing the same disk ( 20 Go ). I can see that the host is taking about 15 GB space and so only 5 GB is left for the container space ( excluding var-spacewalk and var-pgsql ).

Solution

Increase the main disk to give enough space for the host and the container default storage. I want 20 GB for the container and 20 GB for the host

@maximenoel8 maximenoel8 self-assigned this Oct 1, 2024
@maximenoel8 maximenoel8 requested a review from a team October 1, 2024 21:18
@maximenoel8 maximenoel8 changed the title Increase main disk size for uyuni BV Increase main disk size for uyuni BVs Oct 1, 2024
@maximenoel8
Copy link
Contributor Author

maximenoel8 commented Oct 2, 2024

After increasing the main disk to 40 GB, the synchronization is working correctly.

suma-bv-50-server:~ # df -h
Filesystem                                   Size  Used Avail Use% Mounted on
devtmpfs                                     4.0M  8.0K  4.0M   1% /dev
tmpfs                                         20G   92K   20G   1% /dev/shm
tmpfs                                        7.9G  1.3M  7.9G   1% /run
tmpfs                                        4.0M     0  4.0M   0% /sys/fs/cgroup
/dev/vda3                                     15G  1.9G   13G  13% /
/dev/vda3                                     15G  1.9G   13G  13% /root
/dev/vda4                                     26G  6.5G   19G  27% /var
overlay                                       26G  6.5G   19G  27% /etc
tmpfs                                         20G   16K   20G   1% /tmp
/dev/vda2                                     20M  3.0M   17M  15% /boot/efi
/dev/vda3                                     15G  1.9G   13G  13% /.snapshots
/dev/vda3                                     15G  1.9G   13G  13% /boot/grub2/i386-pc
/dev/vda3                                     15G  1.9G   13G  13% /boot/grub2/x86_64-efi
/dev/vda3                                     15G  1.9G   13G  13% /boot/writable
/dev/vda3                                     15G  1.9G   13G  13% /home
/dev/vda3                                     15G  1.9G   13G  13% /opt
/dev/vda3                                     15G  1.9G   13G  13% /srv
/dev/vda3                                     15G  1.9G   13G  13% /usr/local
overlay                                       26G  6.5G   19G  27% /var/lib/overlay/4/sync/etc
/dev/vdb1                                    3.0T  541G  2.3T  19% /srv/spacewalk_storage
/dev/vdc1                                    147G   47G   93G  34% /srv/pgsql_storage
minima-mirror-ci-bv.mgr.suse.de:/srv/mirror  5.9T  2.9T  3.1T  49% /srv/mirror
overlay                                       26G  6.5G   19G  27% /var/lib/containers/storage/overlay/a4a64fd674cbd0a2c522141cdb9fd3de8ae44af00547dd12f3e8bbb4ba4e3690/merged
tmpfs                                        4.0G     0  4.0G   0% /run/user/0
suma-bv-50-server:~ # lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sr0     11:0    1  382K  0 rom  
vda    253:0    0   40G  0 disk 
├─vda1 253:1    0    2M  0 part 
├─vda2 253:2    0   20M  0 part /boot/efi
├─vda3 253:3    0   15G  0 part /usr/local
│                               /srv
│                               /opt
│                               /home
│                               /boot/writable
│                               /boot/grub2/x86_64-efi
│                               /boot/grub2/i386-pc
│                               /.snapshots
│                               /root
│                               /
└─vda4 253:4    0   25G  0 part /var/lib/containers/storage/overlay
                                /var
vdb    253:16   0    3T  0 disk 
└─vdb1 253:17   0    3T  0 part /srv/spacewalk_storage
vdc    253:32   0  150G  0 disk 
└─vdc1 253:33   0  150G  0 part /srv/pgsql_storage

@maximenoel8 maximenoel8 merged commit 1f406d3 into SUSE:master Oct 2, 2024
1 check passed
@maximenoel8 maximenoel8 deleted the increase_main_disk_uyuni_bv branch October 2, 2024 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants