EVE-NG free space issue after node image remove

Moderator: mike

Post Reply
hasan_28
Posts: 3
Joined: Mon Aug 05, 2019 8:48 am

EVE-NG free space issue after node image remove

Post by hasan_28 » Mon Aug 05, 2019 9:37 am

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

Uldis (UD)
Posts: 5067
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

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

Post by Uldis (UD) » Mon Aug 05, 2019 1:23 pm

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

hasan_28
Posts: 3
Joined: Mon Aug 05, 2019 8:48 am

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

Post by hasan_28 » Mon Aug 05, 2019 2:32 pm

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
You do not have the required permissions to view the files attached to this post.

Uldis (UD)
Posts: 5067
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

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

Post by Uldis (UD) » Mon Aug 05, 2019 7:42 pm

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

hasan_28
Posts: 3
Joined: Mon Aug 05, 2019 8:48 am

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

Post by hasan_28 » Mon Aug 05, 2019 8:10 pm

Thanks for your reply... I will do that

Regards,

User avatar
NitrousOxyde
Posts: 59
Joined: Sun Oct 15, 2017 4:54 pm
Location: Baku

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

Post by NitrousOxyde » Wed Sep 11, 2019 10:44 pm

Thanks for the info,mate,I cleaned 5GB of unused files from /opt/unetlab/tmp/0/ folder
CCIE R&S #59198
JNCIP-SP, JNCIP-ENT

User avatar
NitrousOxyde
Posts: 59
Joined: Sun Oct 15, 2017 4:54 pm
Location: Baku

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

Post by NitrousOxyde » Wed Sep 11, 2019 11:05 pm

Update - guys, DON'T DELETE that /opt/unetlab/tmp/0/ folder, it contains all your configs for devices in topology.
CCIE R&S #59198
JNCIP-SP, JNCIP-ENT

Uldis (UD)
Posts: 5067
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

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

Post by Uldis (UD) » 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 :)

User avatar
NitrousOxyde
Posts: 59
Joined: Sun Oct 15, 2017 4:54 pm
Location: Baku

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

Post by NitrousOxyde » Thu Jan 09, 2020 6:06 pm

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?
CCIE R&S #59198
JNCIP-SP, JNCIP-ENT

Post Reply