Operations 13 min read

6 Common Linux Ops Issues and How to Diagnose & Fix Them

Learn a systematic Linux troubleshooting workflow and detailed solutions for six typical operational problems—including filesystem corruption, disk space exhaustion, inode depletion, lingering deleted files, too‑many‑open‑files errors, and read‑only filesystem issues—complete with command‑line examples and step‑by‑step fixes.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
6 Common Linux Ops Issues and How to Diagnose & Fix Them

As a competent Linux operations engineer, you need a clear, systematic troubleshooting mindset to quickly locate and resolve issues.

Pay attention to error messages – they often point directly to the problem.

Check log files – both system logs (/var/log) and application logs provide deeper insight.

Analyze and locate the root cause – combine error messages, logs, and contextual information.

Resolve the issue – once the cause is identified, fixing becomes straightforward.

Below are six typical Linux operational problems and step‑by‑step solutions.

Problem 1: Filesystem corruption prevents boot

The error /dev/sda6 contains a file system with errors, check forced usually stems from an unexpected power loss that leaves the filesystem inconsistent.

Fix:

# umount /dev/sda6
# fsck.ext3 -y /dev/sda6

Problem 2: "Argument list too long" error

The issue appears when the /var partition is full, often due to large mail queue files.

Typical workflow:

# df -h
# du -sh /var/* | sort -nr | head -3

Solutions include removing files with patterns, using find, or recompiling the kernel to increase MAX_ARG_PAGES:

# find /var/spool/clientmqueue -type f -exec rm -f {} \;

Problem 3: Inode exhaustion causing Oracle listener failure

Even when disk space appears sufficient, running out of inodes prevents file creation.

Check inode usage:

# df -i
# dumpe2fs -h /dev/sda3 | grep 'Inode count'

Identify and delete offending files:

# find /var/spool/clientmqueue/ -name "*" -exec rm -rf {} \;

Problem 4: Deleted file does not free space

A large /tmp/access_log file was deleted, but space remained occupied because the Apache process still held the file descriptor.

Identify locked deleted files: # lsof | grep delete Release space by truncating the file:

# echo "" > /tmp/access_log

Problem 5: "Too many open files" in a Java web app

The error indicates the process has exhausted the allowed number of file descriptors.

Check limits: # ulimit -n Ensure the www user has proper limits in /etc/security/limits.conf and restart Tomcat after adjusting:

# cat /etc/security/limits.conf | grep www
www soft nofile 65535
www hard nofile 65535

After confirming the limits, a simple Tomcat restart resolves the issue.

Problem 6: Read‑only file system error

This occurs when the filesystem detects serious inconsistencies or hardware faults and remounts as read‑only.

Typical fix sequence:

# umount /www/data
# fuser -m /dev/sdb1
# /usr/local/apache2/bin/apachectl stop
# fsck -V -a /dev/sdb1
# mount /dev/sdb1 /www/data

After repairing, the filesystem returns to normal read‑write mode.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

OperationsLinuxtroubleshootingShellSystem AdministrationFilesystem
MaGe Linux Operations
Written by

MaGe Linux Operations

Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.