Page 1 of 1

How to Expand the File System Manually

Posted: Fri Aug 11, 2017 1:39 pm
by votive
I put 1TB of disk space via vsphere for EVE-NG, thinking it would partition evenly. I only have few images and it's already getting crowded.

How can I resize /dev/mapper/eve--ng--vg-root to much large please? I've done it once but can't find the link. Thanks.
root@eve-ng:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 24G 0 24G 0% /dev
tmpfs 4.8G 17M 4.8G 1% /run
/dev/mapper/eve--ng--vg-root 24G 8.3G 14G 38% /
tmpfs 24G 0 24G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 24G 0 24G 0% /sys/fs/cgroup
/dev/sda1 472M 108M 340M 25% /boot
root@eve-ng:/#

Re: How to Expand the File System Manually

Posted: Fri Aug 11, 2017 1:56 pm
by ecze
Because it is too dangerous

The new way is to add disk , EVE will detect and expand / filesystems

E.

Re: How to Expand the File System Manually

Posted: Fri Aug 11, 2017 10:36 pm
by votive
Thanks. So, I already allocated 1TB. As may know, you cant resize. If not true in vsphere, let me know pls.

So, is there a manual way to do it? I found a site but can't find it now of course.

I've already lost everything due to messing with disk size so this install is fresh -no worries if it get messed up.

Re: How to Expand the File System Manually

Posted: Sat Aug 12, 2017 10:59 am
by votive
So, I just added 200GB which I didn't want to do but wanted to try. The result is no change in the original disk size.

All that space in /dev/sda1 472M 108M 340M 25% /boot will never be used right? And you can't resize it.
root@eve-ng:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 24G 0 24G 0% /dev
tmpfs 4.8G 16M 4.8G 1% /run
/dev/mapper/eve--ng--vg-root 219G 8.4G 202G 4% /
tmpfs 24G 0 24G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 24G 0 24G 0% /sys/fs/cgroup
/dev/sda1 472M 108M 340M 25% /boot
root@eve-ng:~#

Re: How to Expand the File System Manually

Posted: Sat Aug 12, 2017 12:34 pm
by votive
Canx, I don't want to wast disk space so I'm just going start again by saving "add-ons" directory to local pc.

This time, I'll keep the default EVE-NG disk size and add another disk and see how that goes.

Re: How to Expand the File System Manually

Posted: Sun Aug 13, 2017 5:20 pm
by votive
Even though I just re-installed, I forgot to share the link I found again for the more experienced Linux folks.

http://www.geoffstratton.com/expand-har ... ubuntu-lvm

It is still a good way to learn what's under the hood.

Re: How to Expand the File System Manually

Posted: Mon Aug 14, 2017 8:29 am
by Chris929
Expanding the original-EVE-Disk can be dangerous if you don't know what you're doing.
However expanding a LVM is relatively easy - anyway you should stick to the intended way and just add another disk that will be used by eve.
If you need more space after that, just add another harddisk and so on.
Usually I boot EVE with 30G and add a new disk with 6TB just to be on the safe side ;)