Monitoring your server with netdata

People including me love netdata

In this tutorial I am going to show you how to install netdata on your linux server.

Installing netdata is quite easy. To get started login into SSH and run the following command:

bash <(curl -Ss https://my-netdata.io/kickstart.sh)

you might have to press enter or “y” a couple times but when you are done it should show:

 --- We are done! ---

  ^
  |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-
  |   '-'   '-'   '-'   '-'   '-'   is installed and running now!  -'   '-'
  +----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->

it might also ask you to enable KSM (memory improvements). To do that run

    echo 1 >/sys/kernel/mm/ksm/run
    echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs

And then visit your monitoring panel at http://yourserverip:19999.

That was it! Easy huh? In a coming tutorial I will show you how to have netdata notify you about issues on discord or slack.

Adding a new disk to LVM

Hi, in this tutorial i will be showing you how to add a new disk to your (solusvm) LVM pool.
First, run

lsblk

This will show the disks that Linux has found. If this does not contain your newly added disk make sure that it is connected correctly and added to the RAID configuration. For this tutorial, we will be using /dev/sdb1 as an example but this will differ per system, make sure that this is the new disk. We recommend using SSD or SAS drive if you are going to run a lot of VMs.

To turn the disk into a format that LVM can understand run

pvcreate /dev/sdb1

This might prompt if you want to remove the ext4 signature. If it does click “yes”. To add this disk to your LVM run:

vgextend openvz /dev/sdb1
lvextend /dev/openvz/vz /dev/sdb1

This will first add your disk to the new volume group and then to the actual logical volume. The space is already added but to make sure that it shows up correctly in your filesystem:

resize2fs /dev/openvz/vz

And voilá, your new disk is now added to your LVM pool and ready to be used.

If you have a dedicated server or colocation with Ferox Hosting you can also always ask our support and they will do this setup for you.

TIP: to create a thin pool, run

lvcreate -L 15G --thinpool thinpool vg0

TIP: Thin provisioning required thin-provisioning-tools

Een Minecraft Server Icon maken [2024 tutorial]

EDIT Juli 2020: Check onze server icon generator tool!

https://feroxhosting.nl/minecraft-server-icon

Als je deze tool gebruikt hebt kan je direct naar de upload stap gaan.

default minecraft server icon
Het standaard minecraft icoontje

Je minecraft server icon klaarmaken.

In deze tutorial ga ik jullie laten zien hoe je een Minecraft server icon toevoegt aan je server. Als voorbeeld gebruiken we deze foto:

Ferox raket logo
ons mooie logotje

Allereerst ga je naar https://resizeimage.net/ en upload je daar de foto die je als icon wil. Dan ga je naar 4. Resize en zet je hem naar 64×64 pixels.

Verander hem naar PNG en klik op resize image en daarna download.

Uploaden

minecraft server icon toevoegen
filemanager

Het enige wat je daarna nog hoeft te doen is de foto naar je filemanager of filezilla te slepen en te renamen naar server-icon.png en je server te opnieuw op te starten. Als je iets niet kan vinden kan je altijd naar de bovenstaande video gaan en hem helemaal bekijken.

Als het goed is heb je nu een mooi plaatje naast je server staan.

Bonus: MOTD

De MOTD van je server kan je aanpassen in de server.properties.
Kleuren-codes kan je vinden op de volgende pagina: http://minecraft.tools/en/color-code.php
onder motd= kan je je motd toevoegen met de kleuren codes in het formaat van \u00A7c
een voorbeeld:
motd=\u00A7cdit is een hele mooie rode tekst

Als je motd ideeen wil kan je die hier vinden: https://hypixel.net/threads/general-motd-designs.314744/
Hierin moet je “&” replacen met \u00A7
De & color codes die je waarschijnlijk wel van essentials kent zijn daar een alias van.

Dan weet je nu hoe je je server icon instelt op minecraft. Deze methode werkt op alle huidige versies [vanaf 2019] en zal waarschijnlijk ook nog in de toekomst werken.

Adv: Wil je een nieuwe minecraft server kopen? Neem een kijkje bij Ferox Hosting!