Skip to main content

Linux Capacity Planning

Course

Intro Video

Photo of Matthew Pearson

Matthew Pearson

Linux Training Architect II in Content

Matthew currently resides in Lynchburg, Virginia where his favorite things are spending time with family and friends, gaming, and campfires in the fall. During his senior year of high school and early college, Matthew performed in a sketch comedy show on public access television that was called Tomato Time. He brings this creativity and fun to the content he creates.

Length

03:16:03

Difficulty

Advanced

Videos

14

Hands-on Labs

3

Course Details

Capacity planning is the ability to analyze historical data and plan for increased resources to meet future needs. In this course, we will cover several different command line tools that will help us monitor and measure resource usage as well as troubleshoot issues on a Linux Host. In addition to these command line tools, we will learn about several monitoring solutions that can be used to store long term data for creating usage reports and capacity plans.

This is a stand-alone course, but it is also part of a learning path in order to prepare you for the LPIC-2 201-450 exam.

Syllabus

Linux Capacity Planning

Introduction

Course Introduction

00:02:38

Lesson Description:

Welcome to the Linux Capacity Planning course! In this video, we will discuss the content that will be covered in this course as well as any tools that will be made available to you.

About the Training Architect

00:00:27

Lesson Description:

Learn a little more about the training architect, Matthew Pearson.

Measure and Troubleshoot Resource Usage (200.1)

Measure CPU and Disk Usage (iostat)

00:10:49

Lesson Description:

The iostat command reports usage statistics on CPU and input/output for devices. In this lesson, we will cover the various options and flags that can be used to gain information about the host. Note: To switch to the root user on a Cloud Playground server, use the sudo -i command.

Measure CPU and Disk Usage (sar)

00:13:11

Lesson Description:

The sar command is used to collect, report, and save system activity information. In this lesson, we will learn the different options that allow us to view various system usage statistics, as well as how to view past usage reports. Note: If sysstat is not active, use the systemctl start sysstat command.

Measure Memory Usage (free)

00:06:03

Lesson Description:

The free command is used to display the amount of free and used memory in the system. In this lesson, we will discuss the memory statistics that are being reported and how we can modify what is being displayed to gain more information.

Measure Memory Usage (vmstat)

00:05:41

Lesson Description:

The vmstat command is used to report on virtual memory statistics and gives a more in-depth look at memory usage than the free command. In this lesson, we will cover the various options that can be used to change the information that is displayed and talk about what is being reported in the different categories.

Measure and Troubleshoot Open Files (lsof)

00:14:14

Lesson Description:

The lsof command is used to list open files on the system. In this lesson, we learn about the myriad of options that can be used to gain information about open files on the system and how we can use this information to troubleshoot issues.

Measure and Troubleshoot Running Processes (ps, pstree, top)

00:13:26

Lesson Description:

In this lesson, we will cover three commands that allow us to view the processes running on the system: ps, pstree, and top. The ps command provides a snapshot of the current running processes. pstree displays a visual representation of the process and how they are connected. top shows a continuous output of the resource usage of processes.

Measure and Troubleshoot Network Usage (netstat)

00:06:26

Lesson Description:

The netstat command will display information on active network connections, the kernel routing table, as well as other related statistics. In this lesson, we will learn about the various options that are used with this command to show network-related statistics.

User Information and System Availability (w, uptime)

00:03:57

Lesson Description:

In this lesson, we will be covering two commands, w and uptime. The w command shows information about who is logged onto the system and what they are doing. The uptime command shows how long the system has been up and running.

Hands-on Labs are real live environments that put you in a real scenario to practice what you have learned without any other extra charge or account to manage.

00:30:00

Hands-on Labs are real live environments that put you in a real scenario to practice what you have learned without any other extra charge or account to manage.

00:30:00

Predict Future Resource Needs (200.2)

Using Tools to Monitor and Measure IT Infrastructure Usage

00:12:14

Lesson Description:

Being able to monitor infrastructure usage provides an administrator with knowledge for future needs. In this lesson, we learn how to use tools to continually gather data about resource usage on our host. Installation steps:apt install collectd apache2 vim /etc/collectd/collectd.conf systemctl restart collectd cd /usr/share/doc/collectd/examples/ cp -r collection3/ /var/www/html/ apt install librrds-perl libconfig-general-perl libhtml-parser-perl libregexp-common-perl libcgi-session-perl ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/ Add the following to /etc/apache2/apache2.conf:

<Directory /var/www/html/collection3/>
    AllowOverride None
    Options +ExecCGI
    AddHandler cgi-script .cgi .pl
    Require all granted
</Directory>
systemctl restart apache2 View resource statistics by hitting hostname/collection3/bin/index.cgi (the hostname should be the hostname of your cloud playground server)

Capacity Planning and Prediction

00:09:54

Lesson Description:

An important role of a system administrator is the ability to anticipate and plan for future resource needs. In this lesson, we discuss how historical data can be used to plan for future requirements, a process known as capacity planning.

Awareness of Monitoring Solutions

00:03:47

Lesson Description:

There are many command-line tools that allow us to monitor and diagnose issues on our host. In this lesson, we cover several monitoring solutions that can be used to monitor hosts in real-time and provide long-term data to help with capacity planning.

Hands-on Labs are real live environments that put you in a real scenario to practice what you have learned without any other extra charge or account to manage.

00:30:00

Conclusion

Next Steps

00:03:09

Lesson Description:

Congratulations on completing the Linux Capacity Planning course! Now that you have completed this course, you may be asking yourself the question, “What do I do next?”. In this video, I will discuss some recommended courses for you to continue your learning journey.

Take this course and learn a new skill today.

Transform your learning with our all access plan.

Start 7-Day Free Trial