Page 1 of 1

EVE-NG free space issue after node image remove

Posted: Mon Aug 05, 2019 9:37 am
by hasan_28
Hi Admin,

I am getting one wired issue - when I delete one node image like juniper QFX RE/PFE etc. from /opt/unetlab/addons/qemu/ folder, free space is not showing at all. May be I am missing something.
Appreciate if someone can help how to free up the space. Otherwise I need to delete the VM and rebuilt it.

Thanks

Re: EVE-NG free space issue after node image remove

Posted: Mon Aug 05, 2019 1:23 pm
by Uldis (UD)
not at all,
remeber if you run nodes, they creating temp dir and hdd for that node and lab..
you must clean
/opt/unetlab/tmp

all what in there keeping all you saved labs

Re: EVE-NG free space issue after node image remove

Posted: Mon Aug 05, 2019 2:32 pm
by hasan_28
hi UD,

Thanks for your quick reply. Yes there is a directory under /opt/unetlab/tmp/ and it contained almost 40Gb data. After removing that folder I can see my overall VM size is 83Gb but VMDK file size did not reduced. This is showing 122Gb excluding temporary file 25Gb.

root@eve-ng:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 12G 0 12G 0% /dev
tmpfs 2.4G 15M 2.4G 1% /run
/dev/mapper/eve--ng--vg-root 622G 83G 514G 14% /
tmpfs 12G 0 12G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 12G 0 12G 0% /sys/fs/cgroup
/dev/sda1 472M 83M 365M 19% /boot

root@eve-ng:/# du -h | tail 10
tail: cannot open '10' for reading: No such file or directory
root@eve-ng:/# du -h | tail
du: cannot access './proc/22387/task/22387/fd/4': No such file or directory
du: cannot access './proc/22387/task/22387/fdinfo/4': No such file or directory
du: cannot access './proc/22387/fd/3': No such file or directory
du: cannot access './proc/22387/fdinfo/3': No such file or directory
0 ./sys/module/drm/sections
0 ./sys/module/drm/parameters
0 ./sys/module/drm/holders
0 ./sys/module/drm/drivers
0 ./sys/module/drm
0 ./sys/module
0 ./sys/block
0 ./sys/hypervisor
0 ./sys
83G .
root@eve-ng:/#
Capture.JPG
Please suggest how can I resolve it.

Thanks

Re: EVE-NG free space issue after node image remove

Posted: Mon Aug 05, 2019 7:42 pm
by Uldis (UD)
Reinstall EVE, and assign normally HDD..
Do backup of eve and install new, from ISO

Procedure to Backup content of EVE-PRO
For backup EVE content copy following folders:
/opt/unetlab/addons/
/opt/unetlab/tmp/
/opt/unetlab/labs/

Install EVE From ISO
https://www.eve-ng.net/documentation/in ... ne-install

Re: EVE-NG free space issue after node image remove

Posted: Mon Aug 05, 2019 8:10 pm
by hasan_28
Thanks for your reply... I will do that

Regards,

Re: EVE-NG free space issue after node image remove

Posted: Wed Sep 11, 2019 10:44 pm
by NitrousOxyde
Thanks for the info,mate,I cleaned 5GB of unused files from /opt/unetlab/tmp/0/ folder

Re: EVE-NG free space issue after node image remove

Posted: Wed Sep 11, 2019 11:05 pm
by NitrousOxyde
Update - guys, DON'T DELETE that /opt/unetlab/tmp/0/ folder, it contains all your configs for devices in topology.

Re: EVE-NG free space issue after node image remove

Posted: Thu Sep 12, 2019 7:08 am
by Uldis (UD)
Correction,
opt/unetlab/tmp/0/
contains your saings of the labs!

Labs itself will survive, but if to delete this folder content all savings what you did on lab nodes will be lost
But freed space of hdd :)

Re: EVE-NG free space issue after node image remove

Posted: Thu Jan 09, 2020 6:06 pm
by NitrousOxyde
Uldis (UD) wrote:
Thu Sep 12, 2019 7:08 am
Correction,
opt/unetlab/tmp/0/
contains your saings of the labs!

Labs itself will survive, but if to delete this folder content all savings what you did on lab nodes will be lost
But freed space of hdd :)
So, if a certain lab was changed several times (adding new features etc), deleting all previous version while keeping last one should be enough, shouldn't it?