Professional Documents
Culture Documents
Objectives
Establish a Linux backup strategy Configure and review system log files Understand the use of kernel modules and the features of a high-end kernel Upgrade and recompile the Linux kernel
Backup media
Item that holds backed-up data
Restore data
Copy from backup media to file system
The Complete Guide to Linux System Administration 4
Differential backup stores only files that changed since full backup Incremental backup stores files that changed since most recent incremental backup or differential backup
10
Can reuse same set of level 1 weekly tape cartridges each month starting with oldest one
The Complete Guide to Linux System Administration 11
12
13
14
15
16
19
RAID-Linear
Combine multiple physical devices into single logical device Not truly RAID level
20
RAID-1
Mirrors data across multiple hard disks
RAID-3
Stripes data across multiple hard disks Provides additional protection against failure by using parity
The Complete Guide to Linux System Administration 21
22
Duplexing
Mirrored hard disks on separate controller cards
Parity
Technique that allows corrupted data to be reconstructed using extra information created as data stored
The Complete Guide to Linux System Administration 23
Write caching stores information in memory until it can be written to multiple hard disks without degrading performance overall
24
25
26
27
28
Log files
System Logs
/var/log/messages
Many different programs write messages
Message
Description of what is happening within program Uses standard format
whatis command
Looks at database of program descriptions Prints one-line description of program
The Complete Guide to Linux System Administration 29
klogd
Kernel log daemon Watches for messages submitted by kernel Logs kernel messages to /var/log/messages
30
31
32
33
Some aspects of configuration file syntax not obvious even after reading about facilities and actions After changing syslog.conf configuration file, service syslog restart
34
35
36
37
38
39
Timekeeping in Linux
Hardware clock
Electronic clock with small battery Maintains correct time even when computer is off
System clock
Internal clock in kernel Maintained internally as single number
Number of seconds since January 1, 1970
40
hwclock command
See current date and time from hardware clock
sysctl command
Preferred method of viewing and updating many kernel parameters Operates on values stored in /proc/sys
The Complete Guide to Linux System Administration 42
43
44
45
Explore source code files in directory /usr/src/linux-26.5-1.358 Patch file Patch command
Insert and change lines based on patch file
46
make command
Programming utility uses instructions in configuration file to execute series of instructions
The Complete Guide to Linux System Administration 47
Requires between 30 minutes and 3 hours Example: make dep; make bzimage; make modules; make modules_install
48
Summary
Backup plan creates orderly system for backing up data on regular basis and restoring lost data as needed Log files record activities of Linux programs System clock in Linux kernel maintains time and date for system events RAID systems improve speed and fault tolerance
49
Summary (continued)
/proc file system
View details about
Kernel Running processes Other system information
Linux kernel sometimes updated by Linux vendors via new rpm file
50