Changes

Jump to: navigation, search

OPS235 Lab 5 - CentOS7 - VMware

189 bytes removed, 07:30, 8 June 2016
no edit summary
== Part 21: Monitoring Disk Space ==
[[Image:disk_usage.png|thumb|500px|right|The '''df''' and '''du''' commands are useful tools for Linux system administrators to flag disk space issues and investigate their causes.]]
Another essential duty of a Linux system administrator is to anticipate problems and take preventative measures to avoid computer system problems <u>before</u> that occur.
'''Answer the Part 2 observations / questions in your lab log book.'''
 ==Part 32: Automating Running Shell Scripts Via Crontab)==
{|width="40%" align="right" cellpadding="10"
|- valign="top"
<li>Issue the following command to setup a crontab entry for root:<br><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;font-size:1.2em;">crontab -e</span></code></b></li><li>Enter the following line in order to run at 6:00 on the first day of every month:<br><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;font-size:1.2em;">0 6 1 * * /root/monitor-disk-space.bash #Runs first day of each month (6:00 am)</span></code></b></li><li>'''Save''' the crontab entry.</li><li>Confirm that the entry was properly saved by issuing the following command:<br><b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;font-size:1.2em;">crontab -l</span></code></b></li></ol>
'''Answer Part 3 INVESTIGATION 1 observations / questions in your lab log book.''' 
=INVESTIGATION 12: MANAGING FILE-SYSTEMS USING LVM=
{| width="40%" align="right" cellpadding="10"
|- valign="top"
'''Answer Part 1 observations / questions in your lab log book.'''
===Part 2: Managing LVM Via Command Line & Adding Virtual Hard Drives===
'''Answer == Part 2 observations / questions in your lab log book.'''3: Mounting and Un-mounting Partitions ==
We take for granted that a file-system must be mounted (for example the root partition) in order for a Linux system to be usable upon system start-up. This was create automatically for the '''/archive''' mount point automatically when we used the system-config-lvm utility in the previous investigation. We need to learn now to do this manually by editing or adding an entry in the ''/etc/fstab'' file. The '''/etc/fstab''' (file system table) contains entries to mount various file systems automatically upon start-up of the Linux system.
The Linux system administrator also has the ability to manually '''mount''' (connect) and '''un-mount''' (disconnect) partitions in order to perform maintenance on the file system (for example un-mounting the '''/home''' partition to install software and prevent users from logging in during that process).
 
== Part 1: Mounting and Un-mounting Partitions ==
[[Image:mount.png|thumb|700px|right|Using the '''mount''' command with no arguments displays file-systems that are already mounted. The Linux system administrator can use the '''mount''' and '''umount''' commands to connect and disconnect different partitions from the file-system to perform maintenance.]]
# Perform this part in your '''centos3''' VM.
# '''A curious question''': If root needs to unmount the '''/home''' directory for maintenance but we had to first login in graphically as a regular user, then su to "root", isn't our regular user still logged in so we can't un-mount the /home directory?!? How can we as a Linux System Administrator get around the problem (hint: you already learned it somewhere in lab3!!! Wow, using what we already taught can pay-off in the future ... lol!).
'''Answer the INVESTIGATION 2 observations / questions in your lab log book.'''
 
'''Answer the Part 1 observations / questions in your lab log book.'''
= LAB 5 SIGN-OFF (SHOW INSTRUCTOR) =
13,420
edits

Navigation menu