Running out of space advise please

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

kiteboy
Posts: 59
Joined: Wed Feb 12, 2020 7:43 am
Location: UK
Contact:

Running out of space advise please

Post by kiteboy » Fri Jan 24, 2025 7:10 am

I'm running bare metal eve-ng starting to run out of disk space. Just had to delete a bunch of stuff.

Currently uses 2x1gb SSDs mirrored. Raid 1
I've bought 2 more. It seems like going forward, using raid 6 might be a better option as it becomes more efficient the more drives I add.

My system is fully backed up using the backup tool in eve-ng. so I have that as a fall back.

I have watched the video for the ESXi-VM. i note it really clearly say " DO NOT TRY TO EXTEND THE CURRENT DRIVE" only for experts
is the the same for bare metal? My Dell server Does have the facility to move from RAID 1 > RAID 6 without data loss.

do you advise

1) fully rebuild eve-ng from the backups
2) try to expand the current drive.
3) maybe ( I'm not a expert here ) the RAID controller will allow me to present 2 virtual drives to the OS. ... no sure if this is possible

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

Re: Running out of space advise please

Post by Uldis (UD) » Fri Jan 24, 2025 8:15 am

I would recommend option 1.
BM server supports adding new HDD and expand VM Linux partition, but I am totally not sure if this will work on existing RAID.
Non RAID Bare HDD expand was explained in our use case document
https://www.eve-ng.net/wp-content/uploa ... ystems.pdf

kiteboy
Posts: 59
Joined: Wed Feb 12, 2020 7:43 am
Location: UK
Contact:

Re: Running out of space advise please

Post by kiteboy » Fri Jan 24, 2025 9:30 am

Thanks Uldis

kiteboy
Posts: 59
Joined: Wed Feb 12, 2020 7:43 am
Location: UK
Contact:

Re: Running out of space advise please

Post by kiteboy » Thu Jan 30, 2025 3:59 pm

@Uldis

When I restore from a backup will the current configs remain on all the devices in my cases Juniper ? or will they appear wiped ?
( at least in theory )
promise I will not come back all angry if it goes wrong. :-)

Regards

Simon

kiteboy
Posts: 59
Joined: Wed Feb 12, 2020 7:43 am
Location: UK
Contact:

Re: Running out of space advise please

Post by kiteboy » Thu Jan 30, 2025 4:09 pm

On extra question
back up and restore

can backup eve-ng version 5.x >> BACKUP SERVER
rebuild my BM eve using version 6.x ( and my new drives )
BACKUP SERVER >>> eve-ng version 6.x

IS BACKUP and RESTORE required to go back onto to the same version ?

rusty725
Posts: 305
Joined: Thu Mar 29, 2018 4:19 pm

Re: Running out of space advise please

Post by rusty725 » Thu Jan 30, 2025 9:05 pm

you can backup 5.x and restore it to 6.x

kiteboy
Posts: 59
Joined: Wed Feb 12, 2020 7:43 am
Location: UK
Contact:

Re: Running out of space advise please

Post by kiteboy » Fri Jan 31, 2025 2:28 pm

Thank you, and will the state of my nodes be backed up?

kiteboy
Posts: 59
Joined: Wed Feb 12, 2020 7:43 am
Location: UK
Contact:

Re: Running out of space advise please

Post by kiteboy » Sun Feb 09, 2025 5:29 pm

I followed my own process, ( this is because in the future I would to be able to add more disks to my raid6 array with no drama.

My server running, Bare Metal Eve was out of space. This was running using 2 x 1 TB SSDs in RAID1 ( mirrored ) for redundancy.
To expand I bought 2 more identical SSDs, I decided to move to RAID 6.

Step 1 Take a backup of the EVE_NG server using Backup Manager

Step 2 Followed this process. ( non-destructive )
https://www.dell.com/support/contents/e ... 9761943001
advice is to leave the machine alone mine took 6 - 12 hours.

I was able to boot the server after this, and everything looked identical.

Step 3 follow this:
https://packetpushers.net/blog/ubuntu-e ... filesystem.
Hint if you copy and paste commands there is a typo:
resize2fs /dev/mapper/ubuntu–vg-ubuntu–lv should be
resize2fs /dev/mapper/ubuntu–-vg-ubuntu–-lv

Step 4: that’s it. The backup was not needed :-) The whole process was non-destructive.


Am I likely to see any unexpected errors ? It seems ok so far.
I could wipe and restore from my back if I needed to.

Simon



Code: Select all

Last login: Sun Feb  9 17:32:25 2025 from 172.27.233.21
root

root@eve-ng:~# 
root@eve-ng:~# df -h 
Filesystem                         Size  Used Avail Use% Mounted on
udev                               189G     0  189G   0% /dev
tmpfs                               38G  2.2M   38G   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  1.8T  867G  890G  50% /
tmpfs                              189G     0  189G   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              189G     0  189G   0% /sys/fs/cgroup
/dev/sda2                          1.5G  259M  1.1G  19% /boot
/dev/loop0                          64M   64M     0 100% /snap/core20/2379
/dev/loop1                          64M   64M     0 100% /snap/core20/2434
/dev/loop2                          45M   45M     0 100% /snap/snapd/23545
/dev/loop3                          92M   92M     0 100% /snap/lxd/29619
/dev/loop4                          45M   45M     0 100% /snap/snapd/23258
/dev/loop5                          92M   92M     0 100% /snap/lxd/24061
tmpfs                               38G     0   38G   0% /run/user/0
root@eve-ng:~# 
Last edited by kiteboy on Mon Feb 10, 2025 9:07 am, edited 1 time in total.

rusty725
Posts: 305
Joined: Thu Mar 29, 2018 4:19 pm

Re: Running out of space advise please

Post by rusty725 » Sun Feb 09, 2025 8:59 pm

You will need to backup and redo your raid then upload backup back.

kiteboy
Posts: 59
Joined: Wed Feb 12, 2020 7:43 am
Location: UK
Contact:

Re: Running out of space advise please

Post by kiteboy » Mon Feb 10, 2025 9:06 am

Code: Select all

Last login: Sun Feb  9 17:32:25 2025 from 172.27.233.21
root

root@eve-ng:~# 
root@eve-ng:~# df -h 
Filesystem                         Size  Used Avail Use% Mounted on
udev                               189G     0  189G   0% /dev
tmpfs                               38G  2.2M   38G   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv  1.8T  867G  890G  50% /
tmpfs                              189G     0  189G   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              189G     0  189G   0% /sys/fs/cgroup
/dev/sda2                          1.5G  259M  1.1G  19% /boot
/dev/loop0                          64M   64M     0 100% /snap/core20/2379
/dev/loop1                          64M   64M     0 100% /snap/core20/2434
/dev/loop2                          45M   45M     0 100% /snap/snapd/23545
/dev/loop3                          92M   92M     0 100% /snap/lxd/29619
/dev/loop4                          45M   45M     0 100% /snap/snapd/23258
/dev/loop5                          92M   92M     0 100% /snap/lxd/24061
tmpfs                               38G     0   38G   0% /run/user/0
root@eve-ng:~# 

Looks good now.

Post Reply