CentOS
Cent Operating System
Articles
firewall-cmd: List All Rules and Useful firewalld Examples
To list all firewall rules with firewall-cmd, run firewall-cmd --list-all. It prints every rule of the default zone, which is normally the zone of your network...
ifconfig command not found on CentOS 7 Minimal installation
ifconfig belongs to the old net-tools package, which minimal installations of Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9 no longer include. Use the ip...
ip Command Cheat Sheet for Linux: Addresses, Interfaces, Routes and ARP with Examples
The ip command from iproute2 shows and changes IP addresses, network interfaces, routes and the ARP (neighbour) table. It replaces the old ifconfig, route and arp...
iscsiadm Discovery Timeout with Two or More Network Interfaces
On a server with two or more network interfaces, iscsiadm -m discovery can hang and then fail with a timeout, although the storage answers on one of the interfaces....
lvmetad Was Removed: What Replaced It in Current LVM
On CentOS 7 and similar older systems, the lvmetad daemon cached LVM metadata, and guides often told you to disable it (use_lvmetad = 0 in lvm.conf) for clusters,...
mlock failed: Cannot allocate memory, LVM lvcreate Error Explained
While LVM changes device-mapper devices, it locks its own memory in RAM with the mlock() system call, so that it can never be swapped out while disk I/O is paused. The...
pvcreate Fails With Error: Device mpatha Not Found (or Ignored By Filtering)
pvcreate command fails while using multipath device with below error even when the device is present.
# fdisk -l /dev/mapper/mpatha
Disk /dev/mapper/mpatha: 51.6...
pvcreate error: Cannot open sdx exclusively. Mounted filesystem?
So, here is the situation, pvcreate and vgcreate command throws errors shown below.
# pvcreate /dev/sdd1
Can't open /dev/sdd1 exclusively. Mounted filesystem?
#...
resize2fs: Permission denied to resize filesystem, How to Fix It
When you grow a mounted ext4 file system, resize2fs asks the kernel to do the online resize. If the kernel refuses, resize2fs only says:
resize2fs: Permission denied...
rsyslog.conf: Setup a Filter to Discard or Redirect Messages
rsyslog can drop unwanted messages or send them to a separate file, based on their content or program name.
Examples
Create /etc/rsyslog.d/10-filters.conf:
# discard...
rtkit in Linux: What RealtimeKit Does and How to Disable It
rtkit (RealtimeKit, the rtkit-daemon service) is a small system service that lets normal user programs, mainly audio software such as PipeWire and PulseAudio, give...
sysctl Setting Not Applied After Reboot: How to Make It Permanent
A kernel parameter set with sysctl can be lost at reboot for two reasons: it was only set at runtime, or another tool sets it again later in the boot. These steps...
systemd Alternatives to the service, chkconfig and init Commands
CentOS 6 and older systems managed services with service, chkconfig and SysV init runlevels. Since CentOS 7, and on every current distribution, systemd does this job...
vsftpd FTP Server Setup on Red Hat, AlmaLinux and Rocky Linux
To set up an FTP server on Red Hat Enterprise Linux, AlmaLinux or Rocky Linux, install vsftpd with dnf install vsftpd, require TLS, lock each FTP user into their own...
vsftpd Will Not Start: How to Find and Fix the Error
When vsftpd does not start, systemctl only reports that the job failed. The real reason is a one-line message that starts with 500 OOPS:. This guide shows how to see...
yum Logs and dnf Logs: File Locations and dnf history Output
On AlmaLinux, Rocky Linux and RHEL 8 to 10, the yum log is /var/log/dnf.rpm.log: yum is the same program as dnf there, and every package it installs, upgrades or...
Sentora Control Panel in 2026: Project Status and Supported Alternatives
Sentora is a free, open-source web hosting control panel for Linux, a community continuation of the older ZPanel. It manages websites, databases, mail, DNS and FTP for...