How to Disable Swap in Linux for Kubernetes

How to Disable Swap in Linux for Kubernetes

Part of the official requirements for Kubernetes is to disable swap space completely before attempting to launch Kubernetes. In some recent patch notes, Kubernetes has begun implementing support for swap space in some scenarios, but it is not fully supported. The official reason for not supporting swap space is because it is hard to predict how a pod might utilize memory when swap is enabled.

Read more

How to use disk quota on Linux with examples

How to use disk quota on Linux with examples

Implementing a disk quota will prevent users or groups from using too much storage space on a Linux system. This is very useful on systems such as file servers that allow many users to connect and store data, as it ensures that no particular user can utilize an unexpected amount of storage and interrupt storage or processes on the server by making it run out of disk space. Linux administrators should always put a quota on the maximum storage usage for users, as well as other user environment limits like max number of processes and open files.

Read more

Bash script to test hard drive transfer speed

Bash script to test hard drive transfer speed

The Linux operating system gives us many ways to measure the performance of our computer, including individual components such as the hard drive. There are multiple tools for the job, and it is also possible to use built in tools and create our own test to measure real results. In this tutorial, we will see how to use a Bash script to test the transfer speed of a hard drive on a Linux system. We will also learn about some other tools which can supplement our Bash script and give us and give us additional data points when it comes to the transfer speed of our hard drive, including read and write speed.

Read more

Resolving the 'No Space Left on Device' Error on Linux

Resolving the ‘No Space Left on Device’ Error on Linux

The No Space Left on Device error on a Linux system means that the partition you are trying to write data to or save files on lacks sufficient space for the operation. There are several things that users can do to resolve the error, all of which involve either freeing up additional space on the partition or extending the total size of available space. In this tutorial, we will show you how to resolve the No Space Left on Device, and go over some basic Linux commands that can help us to identify the problem.

Read more

Clone partition on Linux

Clone partition on Linux

Making a clone of a disk partition is a great way to make a complete backup. This type of backup would preserve all your system and personal files on that particular partition. Cloning and restoring a disk partition is relatively easy, even if you are cloning the partition on to a completely different storage device.

Read more

MBR/DOS vs GPT partition scheme for Linux

MBR/DOS vs GPT partition scheme for Linux

When partitioning a hard disk or other storage device, you have a choice on what type of partition scheme to use. By far, the two most common partition schemes to use are MBR (Master Boot Record, sometimes also referred to as msdos) and GPT (GUID Partition Table). When preparing to partition and format your hard drive, it is important to understand the differences between these two schemes in order to choose which one is ideal for your situation.

Read more

Extend LEDE/OpenWRT system storage with USB

How to Extend LEDE/OpenWRT System Storage with an USB Device

LEDE/OpenWRT is a Linux-based operating system which can be used as an alternative to proprietary firmwares on a wide range of routers.

Installing it provides increased security, let us tweak our router and give us a wide range of software packages to install from the system repositories.

Installing packages is
very easy, thanks to the opkg package manager, but often the available
space on common routers is quite limited. In this tutorial we will see how to
extend the available system space using an USB device.

Read more