Upgrade fails from Centos 7 to Rocky Linux 8 via leapp

We are trying to upgrade from Centos & to Rocky Linux 8 via Leapp “How to Migrate CentOS 7 to Rocky Linux 9 | phoenixNAP KB” we were successfull in few servers but we are facing error in one of our server which shows no error while running sudo leapp preupgrade.

While running sudo leapp upgrade it shows

At least 1875MB more space needed on the / filesystem.

while i have plenty of space available

df -h

Filesystem Size Used Avail Use% Mounted on 
devtmpfs 3.7G 0 3.7G 0% /dev tmpfs 3.7G 0 3.7G 0% 
/dev/shm tmpfs 3.7G 8.7M 3.7G 1% 
/run tmpfs 3.7G 0 3.7G 0% 
/sys/fs/cgroup 
/dev/sda1 100G 38G 63G 38% / 
/dev/dm-1 10G 3.9G 6.2G 39% /var/lib/docker/devicemapper/mnt/7a62323caf0b48695ed4f91d556ba060517a189dde4440965175c935bc0a4c9f 
/dev/dm-2 10G 6.3G 3.8G 63% /var/lib/docker/devicemapper/mnt/005cc7abf761035cd9c956967f9c06824ff7d950b256e18140a56cad45646951 shm 64M 0 64M 0% /var/lib/docker/containers/73eb51b45f1c6e4ee120f6051c191d3e8ff2383ad84890088659ecfceca9d771/shm shm 64M 0 64M 0% /var/lib/docker/containers/5bc97e41aa8d774ea400d54f056aa8511a44cd5ee1ce8b7cb4a4a6e981f32d41/shm 
tmpfs 748M 0 748M 0% /run/user/1074

I have tried various method of applying exprot LEAPP_OVL_SIZE=30720 and sudo --preserve-env leapp upgrade but the error is same, Can someone help please?

I saw the post on mattermost as well, it could well be that your filesystem ran out of inodes as suggested there, so you can check with:

df -i

also, perhaps try restarting your machine first. It may also be wise to stop the docker containers running on the system prior to attempting an upgrade.

Hey @iwalker , Thanks for the reply.

Here is the output for the above command, also i have stopped all dockers. Now i see different error.

I am not sure what to do next

df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
devtmpfs 503737 314 503423 1% /dev
tmpfs 505620 1 505619 1% /dev/shm
tmpfs 505620 466 505154 1% /run
tmpfs 505620 16 505604 1% /sys/fs/cgroup
/dev/sda1 16113456 212733 15900723 2% /
tmpfs 505620 1 505619 1% /run/user/0
tmpfs 505620 1 505619 1% /run/user/1074

error : 2024-05-10 13:04:12.380121 [ERROR] Actor: dnf_transaction_check
Message: Not enough space available for creating required disk images in /var/lib/leapp/scratch. Needed: 4096 MiB

Can you help

Well it is definitely a weird one, especially since approx 63GB available.

You would be better migrating your apps/data from the system and creating a new Rocky 9 install. Upgrades are not supported, even more so from CentOS 7.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.