Skip to main content

On This Page

Linux System Administration: Process & Storage Management

2 min read
Share

These articles are AI-generated summaries. Please check the original sources for full details.

Linux System Administration: Process & Storage Management

Jayanth Dasari, a 2nd year B.Sc. Computer Science & Cloud Computing student, detailed a hands-on exploration of Linux system administration, focusing on process management, system monitoring, and disk management. The article highlights practical commands for managing server health and storage.

Why This Matters

While cloud providers abstract much of the underlying infrastructure, a solid understanding of Linux fundamentals is crucial for effective troubleshooting and optimization. Idealized cloud models often mask the reality of resource contention and process failures. Ignoring these realities can lead to performance bottlenecks, application crashes, and increased operational costs – potentially impacting thousands of users.

Key Insights

  • ps aux command, 1980s: This command, originating from early Unix systems, remains a foundational tool for process monitoring.
  • fdisk for partitioning: While modern tools like parted offer more features, fdisk remains a common and reliable method for creating disk partitions.
  • Mounting disks for persistence: Attaching and mounting storage volumes is essential for providing persistent data storage in cloud environments, mirroring the process of adding EBS volumes to EC2 instances.

Working Example

# List available block devices
lsblk

# Partition a disk (e.g., /dev/xvdf)
sudo fdisk /dev/xvdf

# Format the partition with ext4
sudo mkfs.ext4 /dev/xvdf1

# Create a mount point
sudo mkdir /mnt/mydrive

# Mount the disk
sudo mount /dev/xvdf1 /mnt/mydrive

Practical Applications

  • AWS EC2: System administrators use these techniques to add and manage EBS volumes for persistent storage.
  • Pitfall: Using kill -9 without attempting a graceful shutdown can lead to data corruption or inconsistent application state.

References:

Continue reading

Next article

EC2, ECS, EKS, and Lambda: Understanding AWS Compute Options

Related Content