Add external HDD for second HDD on eve-ng

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

Post Reply
antohind83
Posts: 17
Joined: Fri Nov 16, 2018 1:48 pm

Add external HDD for second HDD on eve-ng

Post by antohind83 » Sun Apr 21, 2019 7:48 pm

Hi all,

I have attached an external HDD to my Eve-ng virtual machine but i can't see it is registering within the eve-ng VM see below

Filesystem Size Used Avail Use% Mounted on
udev 9.6G 0 9.6G 0% /dev
tmpfs 2.0G 15M 2.0G 1% /run
/dev/mapper/eve--ng--vg-root 31G 19G 11G 64% /
tmpfs 9.6G 0 9.6G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 9.6G 0 9.6G 0% /sys/fs/cgroup
/dev/sda1 472M 83M 365M 19% /boot

Is it possible to get eve-ng to mount an external hdd it is a 1TB drive and does register when I add it via the usb setting with vsphere web interface

Thanks

Anthony

antohind83
Posts: 17
Joined: Fri Nov 16, 2018 1:48 pm

Re: Add external HDD for second HDD on eve-ng

Post by antohind83 » Sun Apr 21, 2019 8:09 pm

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: EAA22875-5150-42DE-928B-D698B3CEBAD1

antohind83
Posts: 17
Joined: Fri Nov 16, 2018 1:48 pm

Re: Add external HDD for second HDD on eve-ng

Post by antohind83 » Sun Apr 21, 2019 8:14 pm

root@eve-ng:~# mkdir /media/Ehdd
root@eve-ng:~# mount /dev/sda /media/Ehdd

This fails with the below error

mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try
dmesg | tail or so.

antohind83
Posts: 17
Joined: Fri Nov 16, 2018 1:48 pm

Re: Add external HDD for second HDD on eve-ng

Post by antohind83 » Sun Apr 21, 2019 8:25 pm

root@eve-ng:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 9.6G 0 9.6G 0% /dev
tmpfs 2.0G 15M 2.0G 1% /run
/dev/mapper/eve--ng--vg-root 31G 19G 11G 64% /
tmpfs 9.6G 0 9.6G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 9.6G 0 9.6G 0% /sys/fs/cgroup
/dev/sdb1 472M 83M 365M 19% /boot
/dev/sda2 932G 54G 879G 6% /media/Ehdd


OK i managed to mount the drive will this now automatically make use of this extra space ??

Thanks

Anthony

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

Re: Add external HDD for second HDD on eve-ng

Post by Uldis (UD) » Sun Apr 21, 2019 9:14 pm

it is very bad idea use external drive for that.
I will guarantee to 80% your eve will crash or work totally bad

antohind83
Posts: 17
Joined: Fri Nov 16, 2018 1:48 pm

Re: Add external HDD for second HDD on eve-ng

Post by antohind83 » Sun Apr 21, 2019 10:02 pm

Really :( I don't have much space yet on my server so the only solution is to increase the physical disk space on my server ?

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

Re: Add external HDD for second HDD on eve-ng

Post by Uldis (UD) » Mon Apr 22, 2019 6:22 am

I warned you :) what would happen if to use external HDD..
So no complaints after

:)

antohind83
Posts: 17
Joined: Fri Nov 16, 2018 1:48 pm

Re: Add external HDD for second HDD on eve-ng

Post by antohind83 » Wed Apr 24, 2019 3:04 pm

OK Is it OK to just remove/unmount the External drive or will that cause issues now ?

Thanks

Anthony

Post Reply