Linux Capacity Planning
Linux Training Architect II in Content
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.
Linux Capacity Planning
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
Learn a little more about the training architect, Matthew Pearson.
Measure and Troubleshoot Resource Usage (200.1)
Measure CPU and Disk Usage (iostat)
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)
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.
sysstat is not active, use the
systemctl start sysstat command.
Measure Memory Usage (free)
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)
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)
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)
In this lesson, we will cover three commands that allow us to view the processes running on the system:
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)
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)
In this lesson, we will be covering two commands,
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.
Predict Future Resource Needs (200.2)
Using Tools to Monitor and Measure IT Infrastructure Usage
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.
apt install collectd apache2
systemctl restart collectd
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
<Directory /var/www/html/collection3/> AllowOverride None Options +ExecCGI AddHandler cgi-script .cgi .pl Require all granted </Directory>
systemctl restart apache2View resource statistics by hitting
hostname/collection3/bin/index.cgi(the hostname should be the hostname of your cloud playground server)
Capacity Planning and Prediction
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
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.
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