The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by an77ar.prs, 2019-06-14 19:02:08

Apress.Pro.Ubuntu.Server.Administration

Apress.Pro.Ubuntu.Server.Administration

Keywords: Ubuntu,server

CHAPTER 4 N

86 CHAPTER 4 N

CHAPTER 4 N

88 CHAPTER 4 N

CHAPTER 4 N

90 CHAPTER 4 N

CHAPTER 4 N

92 CHAPTER 4 N

CHAPTER 4 N

94 CHAPTER 4 N

CHAPTER 4 N

96 CHAPTER 4 N

CHAPTER 4 N

98 CHAPTER 4 N

CHAPTER 4 N

100 CHAPTER 4 N

CHAPTER 4 N

102 CHAPTER 4 N

CHAPTER 4 N

104 CHAPTER 4 N

CHAPTER 4 N

106 CHAPTER 4 N

CHAPTER 4 N

CHAPTER 5

Advanced File System
Management
Getting the Best Out of Your
File Systems

File system management is among the first things that you do when you start using

Ubuntu Server. When you installed Ubuntu Server, you had to select a default file system.
At that time, you probably didn’t consider advanced file system options. If you didn’t, this
chapter will help you to configure those options. This chapter first provides an in-depth
look at the way a server file system is organized, so that you understand what tasks your
file system has to perform. This discussion also considers key concepts such as journaling
and indexing. Following that, you’ll learn how to tune and optimize the relevant Ubuntu
file systems.

Understanding File Systems

A file system is the structure that is used to access logical blocks on a storage device. For
Linux, different file systems are available, of which Ext2, Ext3, XFS, and, to some extent,
ReiserFS are the most important. All have in common the way in which they organize log-
ical blocks on the storage device. Another commonality is that inodes and directories play
a key role in allocating files on all four file systems. Despite these common elements, each
file system has some properties that distinguish it from the others. In this section you will
read both about the properties that all file systems have in common and about the most
important differences.

109

110 CHAPTER 5 N

CHAPTER 5 N

112 CHAPTER 5 N

CHAPTER 5 N

114 CHAPTER 5 N

CHAPTER 5 N

116 CHAPTER 5 N

CHAPTER 5 N

118 CHAPTER 5 N

CHAPTER 5 N

120 CHAPTER 5 N

CHAPTER 5 N

122 CHAPTER 5 N

CHAPTER 5 N

124 CHAPTER 5 N

CHAPTER 5 N

126 CHAPTER 5 N

CHAPTER 5 N

128 CHAPTER 5 N

CHAPTER 5 N

130 CHAPTER 5 N

CHAPTER 6

Network Monitoring
Knowing When It Goes Wrong
Without Watching It

As an administrator, it is your responsibility to know when things are about to go

wrong. You can, of course, go sit by your server all day and figure out if everything is going
all right, but you probably have better things to do. Nagios offers services to monitor the
network for you. In this chapter you’ll learn how to install and use Nagios.

Starting with Nagios

Nagios is a network-wide monitoring tool. In this chapter you’ll learn how to set it up
on your servers. Once it is set up, you can watch the status of servers in your network via
a web browser. Don’t want to watch a web browser all time? That’s fine, because you can
configure Nagios to send relevant security alerts to some specified users on the network if
something goes wrong. Nagios allows you to monitor local server events, such as running
out of disk space, as network events.

Before you install Nagios, make sure that you have a web server configured (you can
read more about configuring Apache Web Server in Chapter 11 of my book Beginning
Ubuntu Server Administration, from Apress) and running. Nagios uses a web interface to
show its information, so you can’t do without that. Once you have confirmed it is up and
running, install the j]ceko packages:
]lp)cap ejop]hh j]ceko. j]ceko)l hqcejo j ]ceko) ei]cao

This command installs about 40 MB of data on your server. Once that is done, you
have to complete the installation by setting up authentication. Nagios uses the file

131

132 CHAPTER 6 N

CHAPTER 6 N

134 CHAPTER 6 N

CHAPTER 6 N


Click to View FlipBook Version