EVE-NG free space issue after node image remove
Moderator: mike
-
- Posts: 3
- Joined: Mon Aug 05, 2019 8:48 am
EVE-NG free space issue after node image remove
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
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
-
- Posts: 5086
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
- Contact:
Re: EVE-NG free space issue after node image remove
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
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
-
- Posts: 3
- Joined: Mon Aug 05, 2019 8:48 am
Re: EVE-NG free space issue after node image remove
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:/#
Please suggest how can I resolve it.
Thanks
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:/#
Please suggest how can I resolve it.
Thanks
You do not have the required permissions to view the files attached to this post.
-
- Posts: 5086
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
- Contact:
Re: EVE-NG free space issue after node image remove
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
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
-
- Posts: 3
- Joined: Mon Aug 05, 2019 8:48 am
Re: EVE-NG free space issue after node image remove
Thanks for your reply... I will do that
Regards,
Regards,
- NitrousOxyde
- Posts: 59
- Joined: Sun Oct 15, 2017 4:54 pm
- Location: Baku
Re: EVE-NG free space issue after node image remove
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
JNCIP-SP, JNCIP-ENT
- NitrousOxyde
- Posts: 59
- Joined: Sun Oct 15, 2017 4:54 pm
- Location: Baku
Re: EVE-NG free space issue after node image remove
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
JNCIP-SP, JNCIP-ENT
-
- Posts: 5086
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
- Contact:
Re: EVE-NG free space issue after node image remove
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
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
- NitrousOxyde
- Posts: 59
- Joined: Sun Oct 15, 2017 4:54 pm
- Location: Baku
Re: EVE-NG free space issue after node image remove
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?Uldis (UD) wrote: ↑Thu Sep 12, 2019 7:08 amCorrection,
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
CCIE R&S #59198
JNCIP-SP, JNCIP-ENT
JNCIP-SP, JNCIP-ENT